..................
small project, a 2-digit LED timer.
I use one of my 4-digit LED display PCBs here, but wired a different LED display. And the firmware was reprogrammed completely in XC8 (originally based on assembler, the serial receive code takes most of the 512 words space already so not easily possible to change this to C. But, eventually I will change the controller to 16f716 (pin compatible), and use C anyway.
The LED timer counts in seconds after startup, then changes to minutes after 60 seconds. The seconds are also flashed every second, for a short moment.
That's pretty much it! Built this in one evening. The battery (CR2032) is lasting about one day as for now but I don't think it will last more than 2 days.
The source code is attached, schematics is just 1:1 connection all port bits to the LED display. Might be difficult/requiring time to adapt you need to recode the tables for different displays, and it also depends on the PCB layout. But there are no extra parts, just the 32768 Hz crystal, a 4.7K resistor for MCLR, pushbutton for reset, and the PIC + display.
But once you worked out decoding tables for a known PCB layout/known display, you can use other displays using manual wiring, if need be.
small project, a 2-digit LED timer.
I use one of my 4-digit LED display PCBs here, but wired a different LED display. And the firmware was reprogrammed completely in XC8 (originally based on assembler, the serial receive code takes most of the 512 words space already so not easily possible to change this to C. But, eventually I will change the controller to 16f716 (pin compatible), and use C anyway.
The LED timer counts in seconds after startup, then changes to minutes after 60 seconds. The seconds are also flashed every second, for a short moment.
That's pretty much it! Built this in one evening. The battery (CR2032) is lasting about one day as for now but I don't think it will last more than 2 days.
The source code is attached, schematics is just 1:1 connection all port bits to the LED display. Might be difficult/requiring time to adapt you need to recode the tables for different displays, and it also depends on the PCB layout. But there are no extra parts, just the 32768 Hz crystal, a 4.7K resistor for MCLR, pushbutton for reset, and the PIC + display.
But once you worked out decoding tables for a known PCB layout/known display, you can use other displays using manual wiring, if need be.
Attachments
-
10.4 KB Views: 76
-
110.2 KB Views: 211
Last edited by a moderator: