- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I send info thru a UART and I see that the program stays in Main. I think the timer is not running. I have attached a bundle.
thanks for any advice.
Solved! Go to Solution.
- Labels:
-
PSoC 5LP
- Tags:
- timer interrupt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I saw your project.
To enable the ISR you need to call
isr_GetCounts_StartEx(isr_GetCounts_Handler) ;
So I did
(1) Changed the CY_ISR_PROTO
from
CY_ISR_PROTO(isrGetCounts);
to
CY_ISR_PROTO(isr_GetCounts_Handler);
(2) added a couple of lines
/* Place your initialization/startup code here (e.g. MyInst_Start()) */
Counter_1_Start();
Counter_2_Start();
isr_GetCounts_ClearPending() ; // <=====
isr_GetCounts_StartEx(isr_GetCounts_Handler) ; // <=====
MeasTime_Start(); // it calls timer_init
MeasTime_Enable();
MeasTime_Start();
UART_1_Start();
Then your project worked like below
Attached is your project with my modification(s).
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I saw your project.
To enable the ISR you need to call
isr_GetCounts_StartEx(isr_GetCounts_Handler) ;
So I did
(1) Changed the CY_ISR_PROTO
from
CY_ISR_PROTO(isrGetCounts);
to
CY_ISR_PROTO(isr_GetCounts_Handler);
(2) added a couple of lines
/* Place your initialization/startup code here (e.g. MyInst_Start()) */
Counter_1_Start();
Counter_2_Start();
isr_GetCounts_ClearPending() ; // <=====
isr_GetCounts_StartEx(isr_GetCounts_Handler) ; // <=====
MeasTime_Start(); // it calls timer_init
MeasTime_Enable();
MeasTime_Start();
UART_1_Start();
Then your project worked like below
Attached is your project with my modification(s).
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Moto,
Thank you, that did the trick. I will study your changes so that I get it
right next time.
I consider this answered, but I could not find a button for that.
John
On Mon, Dec 21, 2020 at 6:47 PM Motoo Tanaka <community-manager@cypress.com>