| 数据搜索系统,热门电子元器件搜索 |
|
ST62T35B 数据表(PDF) 56 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST62T35B 数据表(HTML) 56 Page - STMicroelectronics |
|
56 / 82 page ![]() 56/82 ST62T35B/E35B 4.5.2 CLOCK GENERATION The UART contains a built-in divider of the MCU internal clock for most common Baud Rates as shown in Table 18 . Other baud rate values can be calculated from the chosen oscillator frequency di- vided by the Divisor value shown. The divided clock provides a frequency that is 8 times the desired baud rate. This allows the Data reception mechanism to provide a 2 to 1 majority voting system to determine the logic state of the asynchronous incoming serial logic bit by taking 3 timed samples within the 8 time states. The bits not sampled provide a buffer to compen- sate for frequency offsets between sender and re- ceiver. 4.5.3 DATA TRANSMISSION Transmission is fixed to a format of one start bit, nine data bits and one stop bit. The start and stop bits are automatically generated by the UART. The nine databits are under control of the user and are flexible in use. Bits 0..7 are typically used as data bits while bit 9 is typically used as parity, but can also be a 9th data bit or an additional Stop bit. As parity is not generated by the UART, it should be calculated by program and inserted in the ap- propriate position of the data (i.e as bit 7 for 7-bit data, with Bit 9 set to 1 giving two effective stop bits or as the independent bit 9). Figure 32. Data Sampling Points The character options are summarised in the fol- lowing table. Table 17. . Character Options Bit 9 remains in the state programmed for consec- utive transmissions until changed by the user or until a character is received when the state of this bit is changed to that of the incoming bit 9. The recommended procedure is thus to set the value of this bit before transmission is started. Transmission is started by writing to the Data Reg- ister (the Baud Rate and Bit 9 should be set before this action). The UARTOE signal switches the out- put multiplexer to the UART output and a start bit is sent (a 0 for one bit time) followed by the 8 data values (lsb first) and the value of the Bit9 bit. The output is then set to 1 for a period of one bit time to generate a Stop bit, and then the UARTOE signal returns the TXD1 line to its alternate I/O function. The end of transmission is flagged by setting TXMT to 1 and an interrupt is generated if ena- bled. The TXMT flag is reset by writing a 0 to the bit position, it is also cleared automatically when a new character is written to the Data Register. TXMT can be set to 1 by software to generate a software interrupt so care must be taken in manip- ulating the Control Register. Figure 33. Character Format VR02010 1 BIT 0 1 2 345 6 7 8 SAMPLES Start Bit 8 Data 1 Software Parity 1 Stop Start Bit 9 Data No Parity 1 Stop Start Bit 8 Data No Parity 2 Stop Start Bit 7 Data 1 Software Parity 2 Stop VR02012 POSITION 1 28 10 BIT BIT START STOP BIT POSSIBLE NEXT CHARACTER START D0 D1 D7 D8 START OF DATA 9 55 |
|
链接网址 |
| 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 |