matrixofdynamism
Advanced Member level 2
I see PIC Programs making use of CMCON, TRISA, PORTA, TRISB, PORTB e.t.c without declaring them. They can't be constants since we assign them a value. I think they represent an address of some sort. But am not sure how we can set them equal to some value :bang:
What are these things and where are they declared? What do they represent and how do we know how many of them exist?
I further see codes of line which look like this LATAbits.LATA0 = 1. This looks more like a struct to me. Where does LATAbits come from?
I got these names from hello world programs for PICs on the internet. I am using MPLABX IDE with XC8 compiler.
What are these things and where are they declared? What do they represent and how do we know how many of them exist?
I further see codes of line which look like this LATAbits.LATA0 = 1. This looks more like a struct to me. Where does LATAbits come from?
I got these names from hello world programs for PICs on the internet. I am using MPLABX IDE with XC8 compiler.