rpisharody
Junior Member level 1
PIC Behaving strange
I wrote the following code on CCS C compiler for testing a PIC16LF877A..
void main() {
set_tris_a(0xFF); set_tris_b(0x00); set_tris_c(0x00);
while(1) {
output_bit(PIN_B1, 1);
output_bit(PIN_B2, 0);
}
}
Can anyone point out what is wrong in this code ?
Reagrds,
Rahul
I wrote the following code on CCS C compiler for testing a PIC16LF877A..
void main() {
set_tris_a(0xFF); set_tris_b(0x00); set_tris_c(0x00);
while(1) {
output_bit(PIN_B1, 1);
output_bit(PIN_B2, 0);
}
}
Can anyone point out what is wrong in this code ?
Reagrds,
Rahul