| Electronic Components Datasheet Search |
|
D17133CS Datasheet(PDF) 158 Page - NEC |
|
|
|||||||||||||||||||||||||||||
D17133CS Datasheet(HTML) 158 Page - NEC |
|
158 / 289 page ![]() CHAPTER 13 PERIPHERAL HARDWARE 143 13.3.5 Program Example of Serial Interface (1) Program example of data transmission/reception by 8-bit transmission/reception mode (synchronous transmission/reception) This program executes data transmission/reception synchronizing with fX/128. Judgment of finishing serial data transmission/reception is executed by checking interrupt request flag. Example MAIN: CALL SIOJOB BR MAIN SIOJOB: DI ; Prohibits interrupt in SIOJOB CLR1 IRQSIO ; Clears interrupt request flag of SIO SET1 SIOEN ; Enables SIO MOV DBF0, #SIODATL ; Sets transmitted data MOV DBF1, #SIODATH PUT SIOSFR, DBF INITFLG SIOTS, NOT SIOHIZ, SIOCK1, NOT SIOCK0 ; Sets serial clock to "fX/128", starts shift ; register operation, and outputs serial data LOOP: SKT1 IRQSIO ; Transmission/reception finish judgment BR LOOP ; Waits finishing transmission/reception GET DBF, SIOSFR ; Reads reception data EI ; Permits interrupt and returns to main processing RET ; |
|
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 |