Electronic Components Datasheet Search
  English  ▼

X  

D17133CS Datasheet(PDF) 158 Page - NEC

Part # D17133CS
Description  4-BIT SINGLE-CHIP MICROCONTROLLER
PDF  289 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  NEC [NEC]
Direct Link  http://www.nec.com/
Logo NEC - NEC

D17133CS Datasheet(HTML) 158 Page - NEC

Back Button D17133CS Datasheet HTML 154Page - NEC D17133CS Datasheet HTML 155Page - NEC D17133CS Datasheet HTML 156Page - NEC D17133CS Datasheet HTML 157Page - NEC D17133CS Datasheet HTML 158Page - NEC D17133CS Datasheet HTML 159Page - NEC D17133CS Datasheet HTML 160Page - NEC D17133CS Datasheet HTML 161Page - NEC D17133CS Datasheet HTML 162Page - NEC Next Button
Zoom Inzoom in Zoom Outzoom out
 158 / 289 page
background image
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
;



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 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


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


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