Really sorry about the delay in getting this up - major problems with my one and only 12F629 - lost the 'OSCCAL' number when programming,
somehow...-- so re-compiled it for a 12F509.
It's long-winded I know, but it works with steady outputs in conjunction with 2 x FLEDS or flashing LED's.
In the listing, there are 4 lines of commented (tried & unused) code for a simple 250ms on - 250ms off, port toggle for each LED output.
Of course, this is useless, as the program spends all it's time, toggling outputs..
No components involved, other than a 3 resistors for LED's, if you want to put some on GPIO.2 / GPIO.4 & GPIO.5 as status indicators to 0V.
The 2 switch inputs are single-pole tactile types pulled active LOW.
Switch input pins are GPIO.0 & GPIO.1 - all pin details in the listing.
Just need to get 2 standard LED's flashing @2Hz on the outputs, without this affecting the switch input 'scan' routine.
Many thanks all![]()


-- so re-compiled it for a 12F509.


Bookmarks