Hello all,
I have been looking on the forum for a bit and thought I might try asking my question here. I am working on a project for school and am trying to figure out how to implement 2 bits on PORTC on the PIC18F4550. To be specific it's C4 and C5 which are automatically taken by the USB option, but I have to use them as just output pins (to drive a motor controller) I have a bit of code at the bottom that's from the datasheet I just need to know how to implement it if anyone has prior experience with the PIC18?
Code
" UCON<3> = 0;
UCFG<3> = 1;
"
PS. when I just plug this code in all I get is a syntax error.
I have been looking on the forum for a bit and thought I might try asking my question here. I am working on a project for school and am trying to figure out how to implement 2 bits on PORTC on the PIC18F4550. To be specific it's C4 and C5 which are automatically taken by the USB option, but I have to use them as just output pins (to drive a motor controller) I have a bit of code at the bottom that's from the datasheet I just need to know how to implement it if anyone has prior experience with the PIC18?
Code
" UCON<3> = 0;
UCFG<3> = 1;
"
PS. when I just plug this code in all I get is a syntax error.