blueroomelectronics
Well-Known Member
Download and install Swordfish BASIC SE. I have a one page tutorial in my blueroomelectronics Junebug manual (google it). Swordfish is an excellent modular & modern BASIC compiler.
You need a PICKit2 or 3.
You could make the PIC itself the battery backed up RTCC, Timer1 supports a 32,768kHz watch crystal and this can wake the PIC on overflow from very low power sleep to update the clock. The 18F4620 has a built in low power detector that could switch off a display when power is lost. The simple resistor / diodes / supercap schematic posted earlier should do the trick. Then it's all about learning the software.
The simplest possible LED clock would be 1H:MM where the 1 is either off or 1
Pincount for the display
1 - 1
7 - H
1 - seperator (flashing dots, optional)
7 - M
7 - M
so 23 pins for the display
2 - switches for setting the time
2 - 32768kHz crystal + 22pF caps
3 - In circuit programming ie PICkit (optional)
total 30 I/O pins.
You'll need 470 ohm resistors for each display segment and some filter + decoupling caps.
You need a PICKit2 or 3.
You could make the PIC itself the battery backed up RTCC, Timer1 supports a 32,768kHz watch crystal and this can wake the PIC on overflow from very low power sleep to update the clock. The 18F4620 has a built in low power detector that could switch off a display when power is lost. The simple resistor / diodes / supercap schematic posted earlier should do the trick. Then it's all about learning the software.
The simplest possible LED clock would be 1H:MM where the 1 is either off or 1
Pincount for the display
1 - 1
7 - H
1 - seperator (flashing dots, optional)
7 - M
7 - M
so 23 pins for the display
2 - switches for setting the time
2 - 32768kHz crystal + 22pF caps
3 - In circuit programming ie PICkit (optional)
total 30 I/O pins.
You'll need 470 ohm resistors for each display segment and some filter + decoupling caps.
Last edited: