Electronic Components Datasheet Search
  English  ▼

X  

UPD17P136ACT Datasheet(PDF) 115 Page - NEC

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

UPD17P136ACT Datasheet(HTML) 115 Page - NEC

Back Button UPD17P136ACT Datasheet HTML 111Page - NEC UPD17P136ACT Datasheet HTML 112Page - NEC UPD17P136ACT Datasheet HTML 113Page - NEC UPD17P136ACT Datasheet HTML 114Page - NEC UPD17P136ACT Datasheet HTML 115Page - NEC UPD17P136ACT Datasheet HTML 116Page - NEC UPD17P136ACT Datasheet HTML 117Page - NEC UPD17P136ACT Datasheet HTML 118Page - NEC UPD17P136ACT Datasheet HTML 119Page - NEC Next Button
Zoom Inzoom in Zoom Outzoom out
 115 / 292 page
background image
CHAPTER 11 ARITHMETIC AND LOGIC UNIT (ALU)
96
11.6 COMPARISON JUDGEMENTS
As shown in Table 11-7, there are comparison judgement instructions for determining if one value is “equal to”,
“not equal to”, “greater than or equal to”, or “less than” another.
The SKE instruction is used to determine if two values are equal. The SKNE instruction is used to determine two
values are not equal. The SKGE instruction is used to determine if one value is greater than or equal to another and
the SKLT instruction is used to determine if one value is less than another.
The SKE, SKNE, SKGE, and SKLT instructions perform comparisons between a value in data memory and
immediate data. In order to compare values in the general register and data memory, a subtraction instruction is
performed according to the values in the CMP and Z flags in the program status word (PSWORD). For more
information concerning comparison of the general register and data memory, see 11.3 ARITHMETIC OPERATIONS.
Comparison judgements are not affected by the BCD or CMP flags in the program status word (PSWORD) and
comparison judgements do not cause either the CY or Z flags in the program status word (PSWORD) to be set.
11.6.1 to 11.6.4 explain the “equal to”, “not equal to”, “greater than or equal to”, and “less than” comparison
evaluations.
Table 11-7. Comparison Judgement Instructions
11.6.1 “Equal to” Judgement
The "equal to" judgement instruction (SKE m, #n4) is used to determine if immediate data and the contents of a
location in data memory are equal.
This instruction causes the next instruction to be skipped when the immediate data and the contents of data memory
are equal.
Example
MOV
M1,
#1010B
SKE
M1,
#1010B
; (1)
BR
A
BR
B
;
SKE
M1,
#1000B
; (2)
BR
C
BR
D
In this example, because the contents of data memory M1 and immediate data 1010B in step number
(1) are equal, the program branches to B. In step number (2), because the contents of data memory
M1 and immediate data 1000B are not equal, the program branches to C.
Equal to
SKE m, #n4
Not equal to
SKNE m, #n4
Greater than or equal to
SKGE m, #n4
Less than
SKLT m, #n4
Comparison
judgement



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