- 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
Sure looks like this is an error in docs as Capture functionality
in either FF or UDB implemented, with limited Capture input
functionality and only a single register for FF. And interrupt register
bit there for either.
I recommend you file a CASE on this and if you would please
post back the result.
To create a technical or issue case at Cypress -
“Support”
“Technical Support”
“Create a Case”
You have to be registered on Cypress web site first.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
According to the documentation, this parameter only set the _initial_ interrupt mask. Did you try to enable the capture interrupt via the software API - there it should work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
With the FF version, the compiler will not even generate the ISR code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That is correct, the compiler is not "aware" of what you want to
do in the ISR. It does, however, make a placeholder file for you
to put your code in, or alternatively you can do a C ISR -
CY_ISR_PROTO(MyIntFunc); // Prototype declaration
then
CY_ISR(MyIntFunc) // Interrupt function definition
{
// Place code here
}
In initialization part of the program
isr_StartEX(MyIntFunc); // Start Interrupt with my handler
CY_ISR-macro have a look into the "System Reference Guide" under Help -> Documentation..
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
To enable Capture interrupt, you must select "UDB" as the configuration.
At that point a capture mode is enabled, and an "On Capture" interrupt is enabled.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I understand the interrupt on capture capability is available in the UDB block. Documentation says it should be available in the fixed-function block as well.
Dana, Hli,
Are you saying that it will work if I create the interrupt and enable it in s/w?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If in SW you enable interrupt then placeholder file is created, or you can
do the C ISR.
If you connect an external ISR component to pin then you can do a
interrupt that way alternatively. You would use its API to enable it
and that creates a placeholder, or again you can do it in C.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It appears in the data sheet, page 26 for the timer, that if you se the "Capture" bit in the Timer_Mode (Fixed-Function Implementation), you will get a timer interrupt.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The interrupt is always external. You need to connect an ISR component to the interrupt output, then you will also get your IRS function generated. Since the timer doesn't need an internal interrupt, it won't have an internal ISR.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My mistake, my prior post is in error. I might be getting confused with
PSOC 1. Airhead comes to mind.
Your comment "IRS function generated", here in States very scary IRS
(Internal Revenue Service), I hope nothing I do on this forum raises their
flags. The NSA spying on US is enough.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wait, there's no IRS function??? I was going to do my taxes with that. Oh well...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Per WSM's suggestion, I checked and there is a capture interrupt mask generated so I assume the interrupt is active as well. I will test and post my results.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The interrupt on capture appears to be functional even though it can't be enabled in the configuration dialog. So I guess the documentation is actually correct. Interrupt on capture is available in the fixed function timer.