数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

AN413 数据表(PDF) 40 Page - STMicroelectronics

部件名 AN413
功能描述  Initialization of the ST9
PDF  45 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN413 数据表(HTML) 40 Page - STMicroelectronics

Back Button AN413 Datasheet HTML 36Page - STMicroelectronics AN413 Datasheet HTML 37Page - STMicroelectronics AN413 Datasheet HTML 38Page - STMicroelectronics AN413 Datasheet HTML 39Page - STMicroelectronics AN413 Datasheet HTML 40Page - STMicroelectronics AN413 Datasheet HTML 41Page - STMicroelectronics AN413 Datasheet HTML 42Page - STMicroelectronics AN413 Datasheet HTML 43Page - STMicroelectronics AN413 Datasheet HTML 44Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 40 / 45 page
background image
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.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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