#config OSC=INTRC_OSC_NOCLKOUT, MCLRE=OFF, WDT=OFF
dir portc out
start:
for k= 0 to 31
set portc=k
wait 1 sec
next k
goto start
so if you connect your LEDs to the C port (with suitable resistors- do not exceed the maximum current rating) the 4 LEDs should light in sequence from 0000 to 1111 cahnging every second.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i cant get a 4bit output working on one of these.
how do i set it up in great cow and configure 4 of the pins as outputs and sent it out a 4bit number please (to show on 4 LEDS)
Thanks
chip 16F688,4
so if you connect your LEDs to the C port (with suitable resistors- do not exceed the maximum current rating) the 4 LEDs should light in sequence from 0000 to 1111 cahnging every second.