GD32W51x User Manual
1038
31.
Infrared ray port (IFRP)
31.1.
Overview
Infrared ray port (IFRP) is used to control infrared light LED, and send out infrared data to
implement infrared ray remote control.
There is no register in this module, which is controlled by TIMER15 and TIMER16. The
IFRP_OUT pin can be configured by GPIO alternate function selected regisger.
31.2.
Characteristics
The IFRP output signal is decided by TIMER15_CH0 and TIMER16_CH0
To get correct infrared ray signal, TIMER15 should generate low frequence modulation
envelope signal, and TIMER16 should generate high frequence carrier signal
31.3.
Function overview
IFRP is a module which is able to integrate the output of TIMER15 and TIMER16 to generate
an infrared ray signal.
1.
The TIMER15’s CH0 is programed to generate the low frequence PWM signal which is
the modulation envelope signal. The TIMER16’s CH0 is programed to generate the high
frquence PWM signal which is the carrier signal. And the channel need to be enabled
before generating these signals.
2.
Program the GPIO alternate function selected regisger and enable the IFRP_OUT pin.
Figure 31-1. IFRP output timechart 1
TIMER16_CH0
IFRP_OUT
TIMER15_CH0
Note:
IFRP_OUT has one APB clock delay from TIMER16_CH0.