I need to modify my software for controlling a chiming clock. It needs to check an input for a 30ms pulse once a second and increment a counter. At certain counter values, it needs to branch to a subroutine to sound chimes. The chiming takes several seconds. Meanwhile it still needs to keep watching for the one-second input. Is this something that requires a dual-core chip? Does GCB support those chips?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I need to modify my software for controlling a chiming clock. It needs to check an input for a 30ms pulse once a second and increment a counter. At certain counter values, it needs to branch to a subroutine to sound chimes. The chiming takes several seconds. Meanwhile it still needs to keep watching for the one-second input. Is this something that requires a dual-core chip? Does GCB support those chips?
Hi,
You can probably do that with a single core chip. It all depends upon what you have and how the chiming operates.
But in order to offer any specific advise, we will need see you existing code. You can post your GCB code here as an attachment.
Last edit: William Roth 2021-03-24
You could use the millis function.