ankitvirdi4
Member level 4
- Joined
- Mar 13, 2012
- Messages
- 70
- Helped
- 4
- Reputation
- 8
- Reaction score
- 4
- Trophy points
- 1,288
- Location
- India
- Activity points
- 1,928
Hello guys I wrote a simple code in Mplab to turn all leds on PORTC ON the code is
All the Leds seem to blink except the one connected to RC5/T0CKI that is the last one. I tried setting and clearing T0SC in OPTION registor still that led wont turn on.. No pull ups are mentioned in the data sheet. please help.Thank you.
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 #include <htc.h> #include "delay.h" void main() { TRISC=0x00; // Set port to output PORTC=0xff; DelayMs(100); PORTC=0x00; DelayMs(100); }
All the Leds seem to blink except the one connected to RC5/T0CKI that is the last one. I tried setting and clearing T0SC in OPTION registor still that led wont turn on.. No pull ups are mentioned in the data sheet. please help.Thank you.