Electronic Components Datasheet Search
  English  ▼

X  

C161RI Datasheet(PDF) 55 Page - Siemens Semiconductor Group

Part # C161RI
Description  16-Bit CMOS Single-Chip Microcontroller
PDF  317 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  SIEMENS [Siemens Semiconductor Group]
Direct Link  http://www.siemens.com/
Logo SIEMENS - Siemens Semiconductor Group

C161RI Datasheet(HTML) 55 Page - Siemens Semiconductor Group

Back Button C161RI Datasheet HTML 51Page - Siemens Semiconductor Group C161RI Datasheet HTML 52Page - Siemens Semiconductor Group C161RI Datasheet HTML 53Page - Siemens Semiconductor Group C161RI Datasheet HTML 54Page - Siemens Semiconductor Group C161RI Datasheet HTML 55Page - Siemens Semiconductor Group C161RI Datasheet HTML 56Page - Siemens Semiconductor Group C161RI Datasheet HTML 57Page - Siemens Semiconductor Group C161RI Datasheet HTML 58Page - Siemens Semiconductor Group C161RI Datasheet HTML 59Page - Siemens Semiconductor Group Next Button
Zoom Inzoom in Zoom Outzoom out
 55 / 317 page
background image
Semiconductor Group
4-15
1998-05-01
The Central Processing Unit (CPU)
C161RI
• N-Flag: For most of the ALU operations, the N-flag is set to ’1’, if the most significant bit of the
result contains a ’1’, otherwise it is cleared. In the case of integer operations the N-flag can be
interpreted as the sign bit of the result (negative: N = ’1’, positive: N = ’0’). Negative numbers are
always represented as the 2's complement of the corresponding positive number. The range of
signed numbers extends from '– 8000
H' to '+ 7FFFH' for the word data type, or from '– 80H' to '+ 7FH'
for the byte data type. For Boolean bit operations with only one operand the N-flag represents the
previous state of the specified bit. For Boolean bit operations with two operands the N-flag
represents the logical XORing of the two specified bits.
• C-Flag: After an addition the C-flag indicates that a carry from the most significant bit of the
specified word or byte data type has been generated. After a subtraction or a comparison the C-flag
indicates a borrow, which represents the logical negation of a carry for the addition.
This means that the C-flag is set to ’1’, if no carry from the most significant bit of the specified word
or byte data type has been generated during a subtraction, which is performed internally by the ALU
as a 2’s complement addition, and the C-flag is cleared when this complement addition caused a
carry.
The C-flag is always cleared for logical, multiply and divide ALU operations, because these
operations cannot cause a carry anyhow.
For shift and rotate operations the C-flag represents the value of the bit shifted out last. If a shift
count of zero is specified, the C-flag will be cleared. The C-flag is also cleared for a prioritize ALU
operation, because a ’1’ is never shifted out of the MSB during the normalization of an operand.
For Boolean bit operations with only one operand the C-flag is always cleared. For Boolean bit
operations with two operands the C-flag represents the logical ANDing of the two specified bits.
• V-Flag: For addition, subtraction and 2’s complementation the V-flag is always set to ’1’, if the
result overflows the maximum range of signed numbers, which are representable by either 16 bits
for word operations ('– 8000
H' to '+ 7FFFH'), or by 8 bits for byte operations ('– 80H' to '+ 7FH'),
otherwise the V-flag is cleared. Note that the result of an integer addition, integer subtraction, or 2's
complement is not valid, if the V-flag indicates an arithmetic overflow.
For multiplication and division the V-flag is set to '1', if the result cannot be represented in a word
data type, otherwise it is cleared. Note that a division by zero will always cause an overflow. In
contrast to the result of a division, the result of a multiplication is valid regardless of whether the
V-flag is set to '1' or not.
Since logical ALU operations cannot produce an invalid result, the V-flag is cleared by these
operations.
The V-flag is also used as 'Sticky Bit' for rotate right and shift right operations. With only using the
C-flag, a rounding error caused by a shift right operation can be estimated up to a quantity of one
half of the LSB of the result. In conjunction with the V-flag, the C-flag allows evaluating the rounding
error with a finer resolution (see table below).
For Boolean bit operations with only one operand the V-flag is always cleared. For Boolean bit
operations with two operands the V-flag represents the logical ORing of the two specified bits.



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