I'm a newbie trying to use the current version of GCB on a Windows 8.1 laptop with MPLAB X. I did a couple of simple blinkers. Now I want to create a control program for a chiming clock, to strike out the hours. I'm not using a RTC chip. For input I have a signal from a quartz module with a positive transition at the hour and a negative one at the half-hour.
So I need to count the hours modulo 12. On the hour, I need to generate a 50ms solenoid pulse every two seconds, the number of pulses equal to the count in hours. Also need two debounced switch inputs, one to increment the hours counter and one to sync it to an arbitrary time signal. I want to use one of the low-power PIC devices, since this will be a battery-operated system. Perhaps someone has already done something like this and can point me to an example. Grateful for any help.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm a newbie trying to use the current version of GCB on a Windows 8.1 laptop with MPLAB X. I did a couple of simple blinkers. Now I want to create a control program for a chiming clock, to strike out the hours. I'm not using a RTC chip. For input I have a signal from a quartz module with a positive transition at the hour and a negative one at the half-hour.
So I need to count the hours modulo 12. On the hour, I need to generate a 50ms solenoid pulse every two seconds, the number of pulses equal to the count in hours. Also need two debounced switch inputs, one to increment the hours counter and one to sync it to an arbitrary time signal. I want to use one of the low-power PIC devices, since this will be a battery-operated system. Perhaps someone has already done something like this and can point me to an example. Grateful for any help.
Have a look at this thread. I hope it will help.
Jacques
Thanks Jacques. That is a similar program. I may be able to adopt some of it for my use.