Slide 1 Slide 2 Slide 3 Slide 4 Slide 5 Slide 6 Slide 7 Slide 8 Slide 9 Slide 10 Slide 11 Slide 12 Slide 13 Slide 14 Slide 15 Slide 16 Slide 17 Slide 18 Slide 19 Slide 20 Slide 21 Slide 22 Slide 23 Product List
Baud Calculations

This slide shows the equation used to calculate the reload value of TH1 register when Timer 1 is used to generate the baud rate. The baud rate is dependent on the value of T1M bit in the CKCON register. T1M defines whether the timer is sourced by the system clock directly or the system clock divided by 4, 12 or 48. The example provided illustrates the use of the timer to set the baud rate to 57,600. The reload value that is written to the TH1 register would be 0x2B in this case. Therefore, whenever the timer overflows, the value 0x2B gets reloaded to the timer and the count begins again from there.

PTM Published on: 2011-02-07