TC1784
General Purpose Timer Array (GPTA
®
v5)
User´s Manual
21-97
V1.1, 2011-05
GPTA
®
v5, V1.14
The following code exemplifies the scheme to update the duty cycle of the PWM signal
generation with 4 LTCs
Read LTCCTR02
If ( LTCCTR02.SOL=1 and LTCCTR02.SOH=1 and LTCCTR02.CEN=1 and
LTCCTR02.OSM=0) Then
Write New_Value into LTCXR03 of LTC03
Set LTCCTR03.OSM=0 and LTCCTR03.SOL=LTCCTR03.SOH=1 for LTC03
(Do not use LOAD/MODIFY/STORE, SWAP, or CLEAR_BIT assembler instructions)
Set LTCCTR02.OSM=1 of LTC02
(Use LOAD/MODIFY/STORE, SWAP, or CLEAR_BIT assembler instructions)
Read LTCXR02
Read LTCXR00
If LTCXR00>Read_LTCXR02 then
Clear LTCCTR02.SOL=LTCCTR02.SOH=0 of LTC02
End If
Else
Write New_Value into LTCXR02 of LTC02
Set LTCCTR02.OSM=0 and LTCCTR02.SOL=LTCCTR02.SOH=1 for LTC02
(Do not use LOAD/MODIFY/STORE, SWAP, or CLEAR_BIT assembler instructions)
Set LTCCTR03.OSM=1 of LTC03
(Use LOAD/MODIFY/STORE, SWAP, or CLEAR_BIT assembler instructions)
Read LTCXR03
Read LTCXR00
If LTCXR00>Read_LTCXR03 then
Clear LTCCTR03.SOL=LTCCTR03.SOH=0 of LTC03
End If
End If
Summary of Contents for TC1784
Page 1: ...User s Manual V1 1 2011 05 Microcontrollers TC1784 32 Bit Single Chip Microcontroller ...
Page 3: ...User s Manual V1 1 2011 05 Microcontrollers TC1784 32 Bit Single Chip Microcontroller ...
Page 950: ...TC1784 Direct Memory Access Controller DMA User s Manual 11 132 V1 1 2011 05 DMA V3 03 ...
Page 1949: ...TC1784 General Purpose Timer Array GPTA v5 User s Manual 21 297 V1 1 2011 05 GPTA v5 V1 14 ...
Page 2350: ...w w w i n f i n e o n c o m Published by Infineon Technologies AG Doc_Number ...