Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

UPD17P136ACT Datasheet(PDF) 75 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) 75 Page - NEC

Back Button UPD17P136ACT Datasheet HTML 71Page - NEC UPD17P136ACT Datasheet HTML 72Page - NEC UPD17P136ACT Datasheet HTML 73Page - NEC UPD17P136ACT Datasheet HTML 74Page - NEC UPD17P136ACT Datasheet HTML 75Page - NEC UPD17P136ACT Datasheet HTML 76Page - NEC UPD17P136ACT Datasheet HTML 77Page - NEC UPD17P136ACT Datasheet HTML 78Page - NEC UPD17P136ACT Datasheet HTML 79Page - NEC Next Button
Zoom Inzoom in Zoom Outzoom out
 75 / 292 page
background image
CHAPTER 7 SYSTEM REGISTER (SYSREG)
56
Example 3. Clearing data memory of 00H-0FH to 0
M000 MEM
0.00H
MOV
IXL, #0
; IX
← 0
MOV
IXM, #0
;
MOV
IXH, #0
; MPE
← 0
LOOP:
OR
PSW, #.DF.IXE AND 0FH ; IXE
← 1
MOV
M000, #0
; Set data memory specified by IX to 0
INC
IX
; IX
← IX + 1
AND
PSW, #1110B
; IXE
← 0, Remains address 7FH even if modified
; by IX because IXE is address 7FH.
SKE
IXM, #7
; Row address 7 ?
BR
LOOP
; If not 7 then LOOP (row address is not cleared)
4. Processing an array
As shown in Figure 7-14, when an operation
A(N)
← A(N) + 4 (0 ≤ N ≤ 15)
is executed to element A (N) of a one-dimensional array with each element 8 bits long, the following
instructions are executed.
M000 MEM
0.00H
M001 MEM
0.01H
MOV
IXH, #0
MOV
IXM, #N SHR 3
; Sets offset of row address
MOV
IXL, #N SHL 1 AND 0FH
; Sets offset of column address
OR
PSW, #.DF.IXE AND 0FH ; IXE
← 1
ADD
M000, #4
ADDC
M001, #0
; A(N)
← A(N) + 4
In the above example, the value of N shifted 1 bit to the left (i.e., the value of N multiplied by 2) is
set to the index register because one element is 8 bits long.
Figure 7-14. Operation Example When IXE = 1 and MPE = 0 (Array Processing)
0123456789
A
B
C
D
E
F
0
1
2
3
4
5
6
7
Column address
System register
A (0)
A (8)
A (1)
A (9)
A (2)
A (10)
A (3)
A (11)
A (4)
A (12)
A (5)
A (13)
A (6)
A (14)
A (7)
A (15)
b3
b2
b1
b0
b7
b6
b5
b4
A (0)
00H
01H



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