Not to sure how to implement this.
I am trying to Toggle a LED every second.
I am using the WDT to update the RTC.
Not sure if I am going about this the right way.
Thanks for your time
M S FOSTER
Clock settings depend a bit on which PSoC4 you are using. Can you please post your complete project, so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.
Try to enable another WDT and drop a Global Signal component on your topdesign.
Got it working.
Used the watch dog timer callback for timer 0.
Set it to periodic instead of watchdog.
0 being timer
SysTickIsrHandler being the ISR
Thanks for your support
M S FOSTER
By the way...
I have actually something similar to your project at work. I did not choose a display yet, which one are you using? (link to datasheet??)
My untested(!!!) display driver attached. A tip: Put the resistors into the segment path, when the resistor is in the common path the digits will be lit differently bright, dependent on the number of segments on. Ie. a "one" would be brighter than an "eight",
I am trying to implement something similar where I want to use a low freq timer to generate an interrupt every 10ms without resetting the device. Just to clarify, you are using the WDT to just generate an interrupt that toggles an LED, not a reset ?
Timer0 is set up to make a interrupt every 1 second. Set up as periodic timer.
Low Feq clock = 32.768kHz
Time needed 1 second
32768 clock cycles needed.
The problem when using the LFClock WCO is that you cant get exactly 10 ms
Close you can get is 100.208 Hz.When set to 327.
You would be better off using a timer component :)
M S Foster