Murugesh_89
Full Member level 5
- Joined
- Nov 23, 2012
- Messages
- 266
- Helped
- 7
- Reputation
- 12
- Reaction score
- 6
- Trophy points
- 1,298
- Location
- India
- Activity points
- 3,267
Hi,
Below is the code for led glowing in pic16f876a micro controller ( pin RC0 ) through positive logic. But it is not working. What else should be done?
#include<16f876a.h>
#fuses HS,NODEBUG,PUT,NOWDT,PROTECT
#use delay(clock = 8M)
void main()
{
int i = 0;
delay_ms(2000);
set_tris_b(0b11111111);
set_tris_c(0b00100000);
output_high(PIN_C0);
while(1);
}
Below is the code for led glowing in pic16f876a micro controller ( pin RC0 ) through positive logic. But it is not working. What else should be done?
#include<16f876a.h>
#fuses HS,NODEBUG,PUT,NOWDT,PROTECT
#use delay(clock = 8M)
void main()
{
int i = 0;
delay_ms(2000);
set_tris_b(0b11111111);
set_tris_c(0b00100000);
output_high(PIN_C0);
while(1);
}