SWRU626 December 2025 CC3501E , CC3551E
By using GPT0 and GPT1 the timers can generate IR codes with minimal software interaction. An AND gate is set between GPT0 Channel 0 and GPT1 Channel 0, the output of this AND gate replaces GPT0 Channel 0. In IR generation mode GPT0 generates the carrier wave, while GPT1 works as the modulator.
Below is an example on how to setup the timers for IR with a 38kHz carrier wave.
GPT0 (Carrier wave generation):
E.g. PRECFG.TICKDIV = 3 and TGT 263. This gives a carrier wave of approximately 38kHz (Theoretically 38.022kHz).
Configure SOC AON
GPT1 (Modulator, example for the NEC protocol)