Heh Guys,
I am using the microchip XC8 C compiler (free version) with the MPLABX IDE on windows VISTA.
I had three questions for converting pic18f458 code to pic16f690 code:
Question #1 -- TRISD=0 and TRISbits.TRISD=0 -- What is the correct syntax for the pic16f690?
Question #2 -- LATD=0b10101010 and LATDbits.LATD0=1 -- What is the correct syntax for the pic16f690?
Question #3 -- if (PORTDbits.RD0==1) Return; What is the correct syntax for the pic16f690?
Question number one sets a port or a bit to output or input.
Question number two writes to a port or a bit.
Question number three reads the status of a pin on a port.
I have attached a three page table of all the XC8 library functions for your use. Some of the explanations are inexact but they fit on the table. Thanks for your help. ;
I am using the microchip XC8 C compiler (free version) with the MPLABX IDE on windows VISTA.
I had three questions for converting pic18f458 code to pic16f690 code:
Question #1 -- TRISD=0 and TRISbits.TRISD=0 -- What is the correct syntax for the pic16f690?
Question #2 -- LATD=0b10101010 and LATDbits.LATD0=1 -- What is the correct syntax for the pic16f690?
Question #3 -- if (PORTDbits.RD0==1) Return; What is the correct syntax for the pic16f690?
Question number one sets a port or a bit to output or input.
Question number two writes to a port or a bit.
Question number three reads the status of a pin on a port.
I have attached a three page table of all the XC8 library functions for your use. Some of the explanations are inexact but they fit on the table. Thanks for your help. ;
Attachments
-
3.9 MB Views: 23
-
4.1 MB Views: 11
-
2.5 MB Views: 9