pascal pro with license version 7.6.0
if i put a led on pord B1 and B2
and I set B1 high then B2 goes low
and vice-versa
on port A and C the same
checked with the icd
Step over F8
B1 on B2 off
runing without icd both led stay off
Code: Select all
PORTB := 0x00;
TRISB1_bit := 0; // Set RB1 as Output
TRISB2_bit := 0; // Set RB2 as Output
Setbit(portB,1);
Setbit(portB,2);
while (TRUE) do // Endless loop
Setbit(portB,1); //led turns on B1 High B2 Lo led off
/// next
Setbit(portB,2); //// led of B1 turns off en led on B2 turns on
Delay_ms(1000) ;
end;
what could that be is a mystery to me
thanks for any replies
Taco