| 数据搜索系统,热门电子元器件搜索 |
|
AN413 数据表(PDF) 40 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN413 数据表(HTML) 40 Page - STMicroelectronics |
|
40 / 45 page ![]() Examples of SCI configurations AN413 40/45 Doc ID 1875 Rev 2 ;********************************************************************* proc INIT_SCI { ;—- Communication format configuration. ; ; Communication format is configured as follows: ; ; - 8 data bit transmitted or received character. ; - 1 stop bit included in data format. ; - Parity even. ; - 9600 Baud communication rate. ;—- SCI configuration. ; ; - No address bit included between the parity bit and the stop bit. ; - Address mode: Address interrupt if character match. ; - DMA permits transmission from EEPROM memory to serial line. ; - Receiver data interrupt unmask (to detect a received data item). ; - Transmitter data interrupt unmask (to detect DMA end of block). ; - Receiver error interrupt unmask (to detect overrun, parity or framing error). spp #SCI1_PG ; SCI register page. srp #BK_F ; To address SCI registers with r. ld s_brglr,#00 ; Reset SCI ld s_chcr,#( wl8 | sb10 | pen | ep | am ) ; 8 data bit. ; 1 stop bit. ; Parity even. ; No address bit. ; AME = 0, AM = 1. ; = IT if character match. ld s_ccr,#txclk ; Xmit clock source = BRG. ; Receiver clock source = BRG. ; 16x asynchronous mode. ld s_acr,#RETURN ; End Of Command acquisition. ;—- Interrupt and DMA configuration. ld s_ivr,#SCI_IT ; Interrupt vector register. ld s_tdcpr,#NUM_TDCP ; Tx DMA counter in register file. ld s_imr,#( rxdi | rxa | rxe ) ; Mask Transmitter data interrupt. |
|
链接网址 |
| 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 |