matrixofdynamism
Advanced Member level 2
- Joined
- Apr 17, 2011
- Messages
- 593
- Helped
- 24
- Reputation
- 48
- Reaction score
- 23
- Trophy points
- 1,298
- Activity points
- 7,681
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.