Hi, I'm a newbie in PIC programming, hopefully I can learn something from all of the masters here...
I'm really confused with different compilers come with different statement for some simple operation like blinking a LED.
I would like to stick to MPLAB C18 compiler as I'm trying my first PIC programming using the PICkit 3 debug express.
There's some statement that I would like to seek for clarification.
What is the difference between:
1. LATDbits.LATD0 = 0
2. TRISDbits.TRISD0 = 0
3. PORTDbits.RD0 = 0
For 2, is it when I declared TRISD = 0, then the statement of 2. become unnecessary?
By the way, is there any documents or guides that I can find these kind of statements?
Thanks!
I'm really confused with different compilers come with different statement for some simple operation like blinking a LED.
I would like to stick to MPLAB C18 compiler as I'm trying my first PIC programming using the PICkit 3 debug express.
There's some statement that I would like to seek for clarification.
What is the difference between:
1. LATDbits.LATD0 = 0
2. TRISDbits.TRISD0 = 0
3. PORTDbits.RD0 = 0
For 2, is it when I declared TRISD = 0, then the statement of 2. become unnecessary?
By the way, is there any documents or guides that I can find these kind of statements?
Thanks!