- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The requirement is the following
1: PIN_0 connect to external chip, it will trigger when recv something.
2: PIN_0 will connect to the capture of UDB timer
3: Interrupt is connect to a ISR, and trigger when capture=1
With the following code, but never get a interruption.
Timer_1_Start();
CyGlobalIntEnable;
Timer_1_StartEx(My_Interrupt);
Any suggestion on UDB Timer with GPIO?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Bob
- 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
Thanks bobgoar.
The project you posted is for the GPIO pin and interruption, that works well.
But how this pin connected to UDP Timer?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I hooked up a timer for you is that not the correct component? better post your code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Really thanks a lot bobgoar.
In the project, does this means:
#1. When the Pin interrupt raised, it will pull up the LED HW and the capture of the timer.
#2. In the interruption handle it will pull up the LED software.
I will test this tonight, it should solved my problem.
Thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, bobgoar
I tested the solution, it works well in my board.
It will capture the timer value, then raising the interrupt handle, I calculated the timer_readcounter takes about 1.375us.
So everything works well, only some time more than two counter captured , still working on this.