| Electronic Components Datasheet Search |
|
D17133CS Datasheet(PDF) 159 Page - NEC |
|
|
|||||||||||||||||||||||||||||
D17133CS Datasheet(HTML) 159 Page - NEC |
|
159 / 289 page ![]() CHAPTER 13 PERIPHERAL HARDWARE 144 (2) Program example of data reception by 8-bit reception mode This program executes data reception synchronizing with external clock, and reads reception data by using interrupt processing. Example SIODATH MEM 0.50H SIODATL MEM 0.51H ORG 0H BR SIO_INIT ORG 01H BR SIOJOB SIO_INIT: MOV SIODATH, #0H MOV SIODATL, #0H CLR1 IRQSIO ; Clears interrupt request flag of SIO SET1 SIOEN ; Enables SIO INITFLG SIOTS, SIOHIZ, NOT SIOCK1, NOT SIOCK0 ; Sets serial clock to external clock, starts receiving ; serial data, and sets P0D1/SO pins to input port ; (output high impedance) EI ; Permits all interrupts ; Main processing MAIN: CALL ××JOB CALL ××JOB BR MAIN SIOJOB: GET DBF, SIOSFR ; Reads reception data MOV RPH, #0000B ; Sets general register to low address 5H of BANK0 MOV RPL, #1010B ; BCD ← 0 LD SIODATH, DBF1 ; Stores reception data on RAM LD SIODATL, DBF0 ; EI RETI |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |