Electronic Components Datasheet Search
  British  ▼
ALLDATASHEET.CO.UK

X  

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

Back Button D17133CS Datasheet HTML 75Page - NEC D17133CS Datasheet HTML 76Page - NEC D17133CS Datasheet HTML 77Page - NEC D17133CS Datasheet HTML 78Page - NEC D17133CS Datasheet HTML 79Page - NEC D17133CS Datasheet HTML 80Page - NEC D17133CS Datasheet HTML 81Page - NEC D17133CS Datasheet HTML 82Page - NEC D17133CS Datasheet HTML 83Page - NEC Next Button
Zoom Inzoom in Zoom Outzoom out
 79 / 289 page
background image
CHAPTER 7
SYSTEM REGISTER (SYSREG)
64
7.7.5 Carry Flag (CY)
The CY flag shows whether there is a carry in the result of an addition operation or a borrow in the result of a
subtraction operation.
The CY flag is set (CY=1) when there is a carry or borrow in the result and reset (CY=0) when there is no carry
or borrow in the result.
When the RORC r instruction (contents in the general register pointed to by r is shifted right one bit) is executed,
the following occurs: the value in the CY flag just before execution of the instruction is shifted to the most significant
bit of the general register and the least significant bit is shifted to the CY flag.
The CY flag is also useful for when the user wants to skip the next instruction when there is a carry or borrow
in the result of an operation.
The CY flag is only affected by arithmetic operations and rotations. Also, it is not affected by CMP flag.
7.7.6 Binary-Coded Decimal Flag (BCD)
The BCD flag is used to specify BCD operations.
When the BCD flag is set (BCD=1), all arithmetic operations will be performed in BCD. When the BCD flag is
reset (BCD=0), arithmetic operations are performed in 4-bit binary.
The BCD flag does not affect logical operations, bit evaluation, comparison evaluations or rotations.
7.7.7 Caution on Use of Arithmetic Operations on the Program Status Word
When performing arithmetic operations (addition and subtraction) on the program status word (PSWORD), the
following point should be kept in mind.
When an arithmetic operation is performed on the program status word and the result is stored in the program
status word.
Below is an example.
Example
MOV
PSW,
#0001B
ADD
PSW,
#1111B
When the above instructions are executed, a carry is generated which should cause bit 2 (CY flag)
of PSW to be set. However, the result of the operation (0000B) is stored in PSW, meaning that
CY does not get set.



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