void
Isr_Timer
(
void
)
{
/* Clear the TCPWM peripheral interrupt */
Cy_TCPWM_ClearInterrupt
(
Timer_HW
,
Timer_CNT_NUM
,
CY_TCPWM_INT_ON_TC
);
/* Clear the CM4 NVIC pending interrupt for TCPWM */
NVIC_ClearPendingIRQ
(
Isr_Timer_cfg
.
intrSrc
);
LEDupdateFlag
=
true
;
}
/* [] END OF FILE */
START
Device Reset and
Initialization
Configure and Start the
UART Component
CM0+ CPU Initialization
Enable CM4 CPU
Print the message
“Hello World”
on to UART terminal
“Enter” key
pressed?
Yes
No
CM0+ CPU
CM4 CPU
On TCPWM Interrupt
Clear the TCPWM Interrupt
Set the LEDupdateFlag
Exit TCPWM
Interrupt Handler
LEDupdateFlag
= true?
Clear LEDupdateFlag
Toggle LED state
No
Yes
Configure TCPWM
Interrupt
Figure 26
Firmware flowchart
This completes the summary of how the firmware works in the code example. Feel free to explore the source
files for a deeper understanding.
Getting started with PSoC
™
6 MCU on PSoC
™
Creator
4 My first PSoC
™
6 MCU design using PSoC
™
Creator
Application Note
33
002-21774 Rev. *G
2022-07-21