SPRUI30H November 2015 – May 2024 DRA745 , DRA746 , DRA750 , DRA756
Depending on the encoding method (variable pulse distance/biphase), the MPU must develop a data structure that combines 1 and 0 with a t period to encode the complete frame to transmit. This can then be transmitted to the infrared output with a modulation method, as shown in Figure 24-71.
Based on the requested modulation frequency, the UART3.UART_CFPS register must be set with the correct dividing value to provide an accurate pulse frequency:
Dividing value = (FCLK / 12) / MODfreq
Where:
FCLK = System clock frequency (48 MHz)
12 = Real value of baud multiple
MODfreq = Effective frequency of the modulation (MHz)
Example: For a targeted modulation frequency of 36 kHz, the value of CFPS must be set to 0x7 (decimal), which provides a modulation frequency of 36.04 kHz.
The UART3.UART_CFPS register starts with a reset value of 105 (decimal), which translates to a frequency of 38.1 kHz.
The duty cycle of these pulses is user-defined by the pulse duty register bits in the UART3.UART_MDR2 register. Table 24-115 shows the duty cycle.
UART_MDR2[5:4] | Duty Cycle (High-Level) |
---|---|
00 | 1/4 |
01 | 1/3 |
10 | 5/12 |
11 | 1/2 |