| 전자부품 데이터시트 검색엔진 |
|
AN413 데이터시트(PDF) 27 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN413 데이터시트(HTML) 27 Page - STMicroelectronics |
|
27 / 45 page ![]() AN413 Examples of ST9 peripheral configurations Doc ID 1875 Rev 2 27/45 .org EXT_IT_VECT ; External interrupt vector ; ************************* WDT_IT: .word TEMPO ; Watchdog Timer interrupt vector .org ADC_IT_VECT ; ADC interrupt vector ; ******************** .word RESET_START ; Analog Watchdog interrupt vector .word ADC_EOC ; End of conv. interrupt vector .org SCI_IT ; SCI interrupt vector ; ******************** .org SCI_IT + 4 ; unused addresses .word REC_DATA ; receiver interrupt .word TRA_HOLD ; Transmitter interrupt ;********************** ;*Start of main module* ;********************** .org 100h ; start of code RESET_START: ld MODER,#11100000b ; CLOCK MODE REGISTER ; internal stack ; no prescaling ; external clock divided by 2 ld CICR,#10000111b ; CENTRAL INTERRUPT ; CONTROL REGISTER ; priority level = 7 ; concurrent mode ; disable interrupt clr FLAGR spp #WDT_PG ld WCR,#wden ; watch dog mode disabled, ; no wait states. ld EIMR,#0 ; mask all channel interrupts. ; at reset,Global Counter Enable ; bit is active. ld SSPLR,#SSTACK + 1 ; load system stack pointer ld USPLR,#USTACK + 1 ; load user stack pointer call INIT_IO ; init I/O ports MAIN: jxt MAIN ; include your Main program here ! |
|
링크 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 |