What's the deal with those scratch marks?
I guess somebody thought they were repairing it. They really butchered it though.
I have been working on this as time allows. It is displaying the time on the panel meter, and I can read back the BCD output from the meter too. I've attached an image of the project. The three switches provide a way to set the time. The 10 turn pot lets me scale the 1.024V reference from the PSoC to 0.2V for the DAC.
You'll notice that all three decimal points are on. The documentation I have shows which of the three inputs to ground to set the decimal position. I 'assumed' these would be logic level since the other digital I/O seemed to be but they were pulled up to about 12V and seemed to go directly to the driver circuitry as even a small amount of current f low through a 500K resistor to ground would result in a dim decimal point. I dug up some 4N35 opto-isolators and that did the trick, now I can control all three. I was thinking that in time setting mode the decimal could blink beside the digit being set?
Using the PSoC for this has been fun. Most of what I needed was already built in as components in the IDE. The only downside I have found so far is that with the smaller PSoC 4 I have there are not enough digital blocks to have the SPI bus and a full UART going at the same time so I'm just using the SW TX only UART component to get some feedback on the PC while developing.
The IDE also has a RTC component which was simple to use but you set the time with BCD which is kind of quaint, in HH:MM:SS format. Luckily they have some helper functions so you can grab the BCD minutes, convert to decimal, and inc/dec and then convert back for time setting. Of course you can also do the unix type of time is that is your preference. I found that although I wanted to display the time in 12 hour format on the panel meter it was much simpler to set the RTC component to 24 hour format than deal with AM/PM when trying to inc/dec minutes and hours.
I need to close the loop with the BCD feedback from the panel meter now and finish up the firmware. Quite a lot of effort for a clock but quite a lot of fun too!