CMT2380F17
Rev0.1 | 150/347
www.cmostek.com
rate generator, T2EX can be used as an additional external interrupt, if needed.
When Timer 2 is in the baud rate generator mode, one should not try to read or write TH2 and TL2. As a
baud rate generator, Timer 2 is incremented at 1/2 the system clock or asynchronously from pin T2; under
these conditions, a read or write of TH2 or TL2 may not be accurate. The RCAP2 registers may be read, but
should not be written to, because a write might overlap a reload and cause write and/or reload errors. The
timer should be turned off (clear TR2) before accessing the Timer 2 or RCAP2 registers.
Note:
Refer to Section “18.7.4 Baud Rate in Mode 1 & 3” to get baud rate setting value when using Timer 2 as
the baud rate generator.
If Timer 2 in Split Mode 0, TL2 and RCAP2L are combined to an 8-bit baud-rate generator as shown in
Figure 16
–22. TL2 overflow sets the TF2L which interrupt is enabled by TL2IE. TH2 and RCAP2H act as an
8-bit auto-reload timer/counter function with Timer 2 interrupt capability.
Figure 16-21. Timer 2 in Baud-Rate Generator Mode
Summary of Contents for CMT2380F17
Page 27: ...CMT2380F17 Rev0 1 27 347 www cmostek com 1 25 Phase Noise...
Page 177: ...CMT2380F17 Rev0 1 177 347 www cmostek com Figure 17 3 PCA Interrupt System...
Page 246: ...CMT2380F17 Rev0 1 246 347 www cmostek com SnMIPS S0MI S1MI 1 P3 3 P4 7...