background image

Implementation

Configuring the system timer to periodically generate interrupts:

The configuration of the system timer is done through the function 

configSystemTimer()

.

The system timer immediately runs after PowerUp and needs to be configured.

Create an instance of the structure 

IfxStm_Timer_Config,

which is initialized 

by calling 

IfxStm_Timer_initConfig()

. Then configure the following 

components:

Set the rate in Hz that refers to interrupt events per second.

Define the priority for the interrupt (range from 0 to 255)

Define the provider for interrupt service request as CPU0, CPU1, CPU2 or 
DMA

Specify the comparator register that is used to store the compare value to 
trigger an event when timer and comparator register match.

Use the routine 

IfxStm_Timer_init()

together with the instance of structure 

IfxStm_Timer_Config

to create the 

g_myTimer

handle.

The above functions can be found in the header 

IfxStm_Timer.h

.

5

2020-01-17

Copyright © Infineon Technologies AG 2020. All rights reserved.

Содержание SCU Power Down Idle 1

Страница 1: ...AURIX TC2xx Microcontroller Training V1 0 0 SCU_Power_Down_Idle_1 Power saving in CPU idle mode Please read the Important Notice and Warnings at the end of this document...

Страница 2: ...asks to perform and power consumption needs to be reduced In this example the System Timer periodically generates interrupts every two seconds In the Interrupt Service Routine the CPU0 is switched bet...

Страница 3: ...mption modes The Idle is specific to each CPU whereas the Sleep and Standby modes influence the complete system The System Timer STM is a free running 64 bit counter which can be used for timing appli...

Страница 4: ...Hardware setup This code example has been developed for the board KIT_AURIX_TC297_TFT_BC Step 4 2020 01 17 Copyright Infineon Technologies AG 2020 All rights reserved...

Страница 5: ...s Set the rate in Hz that refers to interrupt events per second Define the priority for the interrupt range from 0 to 255 Define the provider for interrupt service request as CPU0 CPU1 CPU2 or DMA Spe...

Страница 6: ..._Down_Idle c controls the CPU0 which alternates between run state and idle state The static variable setIdle helps to identify the next state of the CPU0 whether it remains in run state or is set into...

Страница 7: ...pilation and flashing the device verify the behavior of the LED Check if LED D110 1 is blinking equals to Run Mode or remains on off equals to Idle Mode 1 7 2020 01 17 Copyright Infineon Technologies...

Страница 8: ...www infineon com aurix expert training AURIX Development Studio is available online https www infineon com aurixdevelopmentstudio Use the Import function to get access to more code examples For questi...

Страница 9: ...the product for the intended application and the completeness of the product information given in this document with respect to such application For further information on the product technology deliv...

Отзывы: