High PortC on 28X1 clears other PortC bits

Albrecht

New Member
'28X1, Firmware A.2, PicAxe Programming Editor 5.1.17

' connected 8 LEDs directly to 28X1's PortC outputs
dirsc=%11111111 ' PortC declared as Output
pinsc=%11111111 ' All outputs on: you can see all LEDs burning...
pause 3000 ' ... for 3 seconds
high portC 2 ' nothing should happen, but now only LED on 2 is shining...
pause 3000 ' ... for 3 seconds
high portC 4 ' wishing LED on 4 to shine too, but it is now the only LED shining

' Bug or feature ???

' Kind regards: Albrecht
 

hippy

Ex-Staff (retired)
Unfortunately it looks like a bug. Presumably a 'low portc 2' instead of 'high portc 2' turns all Leds off rather than just one.
 
Top