| 전자부품 데이터시트 검색엔진 |
|
TIR2000 데이터시트(PDF) 28 Page - Texas Instruments |
|
|
|||||||||||||||||||||||||||||
TIR2000 데이터시트(HTML) 28 Page - Texas Instruments |
|
28 / 63 page ![]() 2–16 2. Program the baud-rate divisor lower byte (DLL) register and the baud-rate divisor higher byte (DLM) register to select the desired communication baud rate for the UART mode. The baud rate is given by: X IN + Input clock frequency to the chip PRESC + PRESC register value Baud Rate + Desired baud rate so the formula for the Divisor is: Divisor + X IN PRESC BaudRate 16 Where Baud rate + X IN PRESC Divisor 16 (5) The two 8-bit baud-rate divisor registers (DLL and DLM) store the divisor in a 16-bit binary format. The device can be changed to the UART mode from any other mode of operation by writing to the DLL or the DLM registers. This changes the MDR register MDR[2–0] bits to the UART mode automatically (known as the fall-back mechanism). The PRESC register also automatically changes to the default value. 3. Program the prescaler (PRESC) register so that the prescaler output is approximately 1.843 MHz. For an input frequency of 48 MHz, use the default PRESC value (26). 4. Program the mode-definition register (MDR) in order to: • Select the UART mode. • Enable/disable the low-power mode. For normal operation, the low-power mode is enabled. • Enable/disable the sleep mode. For normal operation, the sleep mode is disabled. 5. Program the line-control register (LCR) in order to: • Select the word length. • Select the number of stop bits. • Enable/disable parity generation. • Select even/odd parity. • Enable/disable stick parity. • Enable/disable the break control. 6. Program the LCR to select the TX FIFO trigger level. 7. Reset the TX FIFO. This includes the following: • Write to the LCR register to set the LCR[7] bit to a 1. The LCR[7] bit must be a 1 in order to be able to write to the FCR(5) bit. • Program the FCR register to select 64-/16-bytes TX FIFO register, non-DMA mode of operation, select the RX FIFO trigger level and to clear the TX FIFO. • Write the LCR register so that the LCR[7] bit = 0 (for normal operation). 8. Program the IER register to enable interrupts. 9. Write a 1 to the MCR[3] bit to enable the selected IRQ channel. |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |