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
Timer 1

The use of a timer in order to generate the baud rates required for the application was discussed previously. Timer 1 can be used to generate the baud rate for UART0 for this peripheral. For a detailed overview of timer operations, review the training module available that covers the different operating modes for the timers. In order to generate the baud rate for the UART, the timer in the 8-bit auto reload mode will be used. As an overview to the timer's course, this mode allows the timer to be used as an 8-bit timer and provides a register that is capable of reloading a count value upon overflow of the timer. The number of counts it takes the timer to overflow using this method is 256 in the TH0. For example, if the TH0 value is 0xF0 then it would have 16 counts on the timer before it reached the overflow. In this way, the different baud rates based on the system clock can be generated.

PTM Published on: 2011-02-07