Electronic Components Datasheet Search
  English  ▼

X  

D17133CS Datasheet(PDF) 217 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) 217 Page - NEC

Back Button D17133CS Datasheet HTML 213Page - NEC D17133CS Datasheet HTML 214Page - NEC D17133CS Datasheet HTML 215Page - NEC D17133CS Datasheet HTML 216Page - NEC D17133CS Datasheet HTML 217Page - NEC D17133CS Datasheet HTML 218Page - NEC D17133CS Datasheet HTML 219Page - NEC D17133CS Datasheet HTML 220Page - NEC D17133CS Datasheet HTML 221Page - NEC Next Button
Zoom Inzoom in Zoom Outzoom out
 217 / 289 page
background image
CHAPTER 18
INSTRUCTION SET
202
MOV
MEM000, #00H
; Writes 0 to data memory indicated by index register
CLR1
IXE
; IXE flag
← 0
INC
IX
SET2
CMP, Z
; CMP flag
← 1, Z flag ← 1
SUB
IXL, #03H
; Checks whether index register contents
SUBC
IXM, #07H
; are 73H in bank 0
SUBC
IXH, #00H
;
SKT1
Z
; Loops until contents of index register becomes
BR
RAM clear
; 73H of bank 0
18.5.2 Subtraction Instructions
(1)
SUB r, m
Subtract data memory from general register
<1> OP code
10
87
43
0
00001
mR
mC
r
<2> Function
When CMP=0, (r)
← (r) – (m)
Subtracts the data memory contents from the general register contents, and stores the result in general
register.
When CMP=1, (r) – (m)
The result is not stored in the register. Carry flag CY and zero flag Z are changed, according to the result.
Sets carry flag CY, if a borrow occurs as a result of the subtraction. Resets the carry flag, if no borrow occurs.
If the subtraction result is other than zero, zero flag Z is reset, regardless of compare flag CMP.
If the subtraction result is zero, with the compare flag reset (CMP=0), the zero flag Z is set.
If the subtraction result is zero, with the compare flag set (CMP=1), the zero flag Z is not changed.
Subtraction can be executed in binary 4-bit or BCD. The BCD flag for program status word PSWORD specifies
which kind of subtraction is to be executed.



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