![]() | ![]() | ![]() |
| |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
![]() |
| | Tools |
| | #1 |
|
Hi all, anyone know how to configure rc0 as a digital output? I have tried everything i can think of, but it still wont work! Code: PORTA=0; PORTB =0; PORTC =0; PORTE =0; T1CON =0; ADCON1 = 0x0F; CMCON = 0x07; TRISB = 0; TRISA =0; TRISE =0; TRISC =0; // RED_LED10(1); LATA = 0xff; LATB = 0xff; LATC = 0xff; LATE = 0xff; Any ideas? many thanks | |
| |
| | #2 |
|
Port C,0 works fine. I have used it on the Unicorn to drive CS2 of a graphic LCD. Could the pin be shorted to ground? What do you read back from PORTC and LATC? Mike. | |
| |
| | #3 | |
| Quote:
Thanks very much, i just checked the board again with a meter and found a short. I had routed the rc0 trace through the tiny gap inbetween an 0805 resistor. | ||
| |
|
| Tags |
| rc0 |
| Thread Tools | |
| Display Modes | |
| |
Similar | ||||
| Title | Starter | Forum | Replies | Latest |
| PIC 18F4550 interacing with USB | amax | Micro Controllers | 7 | 21st December 2007 03:13 PM |