- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So I bought a load of the wrong chips I wanted CY8C4245 AXI-483 but I bought the 4125's by accident.. these have no UDB so I can't use the nice Timer..
I want to use the TCPWM module to create an interrupt on a timing of my choice, let's say 1HZ.
The timer interface makes this really easy it shows you in seconds when the interurpt with occur..
however the TCPWM looks really complicated it has all graphs and stuff no times.
I read the datasheet but can't see any examples.
All I want is a 1 second timer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Right-click on the component, click on 'find example projects', there you will find some.
The circuit you want is rather simple:
- feed your timer a 1kHz signal (for simplicity, but can be different)
- configure the terminal count to 999 (remember, its zero-based...)
- Everything else can stay on default
- connect an ISR to the interrupt pin
The the ISR will be triggered once per second (because its triggered when the timer reaches its terminal count). The graphs in the configuration dialog just show you when certain events happen in the counter cycle.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Use the Cortex Systick timer HW, integral to part -
http://www.cypress.com/?app=forum&id=2492&rID=85773&source=creatorstart
This gets you to 100 mS, then a simple SW counter to get to 1 sec.
Regards, Dana.