- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I want 1 sensor to work for 5 seconds in my project.
can i do this with the timer block?
Solved! Go to Solution.
- Tags:
- timer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Yes, you can use the timer component for your application. Please refer to the code example 'CE220169 – PSoC 6 MCU: Periodic Interrupt using TCPWM' in the PSoC Creator, this example uses the TCPWM Component in the Timer/Counter mode to generate a periodic interrupt. An LED toggles whenever the interrupt occurs.
Thanks,
P Yugandhar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello;
Can I do this project with psoc 5LP?
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
No, this project is for PSoC 6 MCU devices. For PSoC5LP device, please refer to the code example 'Timer' in the PSoC Creator. (In PSoC Creator, Right click on 'File' -> Go to 'Code Example' and select your Device family). You can find the list of code examples for your selected device.
Thanks,
P Yugandhar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
there are different projects. How can I change this project for 5lp. or how can I create it.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
'CE220169_TCPWM_Periodic_Interrupt' project is used only for PSoC 6 MCU devices. For PSoC5LP device, 'Timer' example project will be useful for your application.
The Timer in the example project counts from the Period value 35536 down to the terminal count 0. The Timer is configured to trigger the interrupt on the terminal count event(for every 3.554seconds). On reaching the terminal count, ISR will be triggered and reads the status register to clear the interrupt.
You can find the 'Timer' project in PSoC5LP device family as shown in attached image. Please let me know if I'm missing anything.
Thanks,
P Yugandhar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I want to use only timer block. İs it possible?
Can you give a example?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content