SWCU195A December 2024 – May 2025 CC2744R7-Q1 , CC2745P10-Q1 , CC2745R10-Q1 , CC2745R7-Q1 , CC2755R10
By using LGPT0 and LGPT1 the timers can generate IR codes with minimal software interaction. By enabling IRGEN.CTL in LGPT0 an AND gate is set between T0C0 and T1C0, the output of this AND gate replaces T0C0. In IR generation mode, LGPT0 generates the carrier wave, while LGP1 works as the modulator.
Below is an example of how to set up the timers for IR with a 38kHz carrier wave.
LGPT0 (Carrier wave generation):
(PRECFG.TICKDIV+1)*TGT*2 = 48MHz / 38kHz
E.g. PRECFG.TICKDIV = 3 and TGT 421. This gives a carrier wave of approximately 38kHz (Theoretically, 38.00475kHz).
Configure EVTSVT
LGPT1 (Modulator, example for the NEC protocol)