Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

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

Back Button UPD17P136ACT Datasheet HTML 51Page - NEC UPD17P136ACT Datasheet HTML 52Page - NEC UPD17P136ACT Datasheet HTML 53Page - NEC UPD17P136ACT Datasheet HTML 54Page - NEC UPD17P136ACT Datasheet HTML 55Page - NEC UPD17P136ACT Datasheet HTML 56Page - NEC UPD17P136ACT Datasheet HTML 57Page - NEC UPD17P136ACT Datasheet HTML 58Page - NEC UPD17P136ACT Datasheet HTML 59Page - NEC Next Button
Zoom Inzoom in Zoom Outzoom out
 55 / 292 page
background image
CHAPTER 6 STACK
36
6.3 ADDRESS STACK REGISTERS (ASRs)
Five 11-bit address stack registers (ASRs) are provided as shown in Figure 6-1. The functions of these registers
are as follows:
•
Store a return address when the CALL addr or CALL @AR instruction is executed, when the first instruction
cycle of the “MOVT DBF, @AR” instruction is executed, or when an interrupt is accepted.
•
Store the contents of an address register (AR) when the PUSH AR instruction is executed. The ASR to which
the data is to be stored is specified by decrementing the value of the stack pointer (SP) by one when the
instruction is executed.
•
Restore the contents of the ASR (return address) specified by the stack pointer to the program counter and
increment the value of the stack pointer by one when the RET or RETSK instruction is executed, when the second
instruction cycle of the “MOVT DBF, @AR” instruction is executed, or when the RETI instruction is executed.
•
Transfer the value of the ASR specified by the stack pointer to an address register and decrement the value
of the stack pointer by one when the POP AR instruction is executed.
Caution If the stack pointer underflows as a result of executing the CALL addr or CALL @AR instruction
or servicing an interrupt, it is assumed that a hang-up occurs. Consequently, the internal reset
signal is generated, the hardware is initialized, and the program is started from address 0000H.
Remark The size of the ASR differs depending on the model. The
µPD17134A and 17135A have five 10-bit
ASRs, while the
µPD17136A, 17137A, 17P136A, and 17P137A have five 11-bit ASRs.
6.4 INTERRUPT STACK REGISTERS (INTSKs)
Three 5-bit interrupt stack registers (INTSKs) are provided as shown in Figure 6-1. The functions of these registers
are as follows:
•
Five flags (BCD, CMP, CY, Z, and IXE) in the program status word (PSWORD) in the system register (SYSREG)
to be explained shortly are saved to the INTSK when an interrupt occurs. After the flags have been saved, all
the bits of the BANK and PSWORD are cleared to 0.
•
The contents of INTSK are restored to the PSWORD when the RETI instruction is executed.
•
INTSK saves data each time an interrupt has been accepted.
Caution If interrupts are accepted exceeding 3 levels, the first data is lost.



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