| 数据搜索系统,热门电子元器件搜索 |
|
AN969 数据表(PDF) 6 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN969 数据表(HTML) 6 Page - STMicroelectronics |
|
6 / 10 page ![]() 6/10 SCI COMMUNICATION BETWEEN ST7 AND PC Note: ETPR and ERPR can be used to finetune the baud rate. When ETPR and ERPR con- tain any value other than 0, the BRR register is disabled and the baud rates are given by the formula: TX = fCPU/(16*EPTR*PR*TR) RX = fCPU/(16*ERPR*PR*RR) where EPTR and ERPR = 1 to 255. 3.2.3 Word length The word length is selected by the M bit in the SCICR1 register. In the application, data length is always 8 bits, but the user can force a second stop bit. This is done using a 9-bit word length and setting the 9th bit (T8 bit of SCICR1). When receiving data, R8 bit will always be set (reception of 2 stop bits). Special bits (PCE,PS,PIE) are also available to use the SCI with parity (not used in this appli- cation). Refer to the datasheet for more information. 3.2.4 Selecting reception and transmission modes The selection is made using the SCICR2 register. Transmission is enabled or disabled depending on the value of the TE bit of SCICR2 (TE = 1, transmission enabled). When disabled, the TDO pin is free for general purpose I/O. Reception is enabled or disabled depending on the value of the RE bit of SCICR2 (RE = 1, re- ception enabled). When disabled, the RDI pin is is free for general purpose I/O. When reception is disabled, no data must be sent to the ST7. If data are to be received at this time, the RE bit must be set. Otherwise a wrong byte might be detected when going back into reception mode. 70 R8 T8 SCID M WAKE PCE PS PIE 70 TIE TCIE RIE ILIE TE RE RWU SBK |
|
|
链接网址 |
| 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 |