UPD78F0500AMC-CAB-AX Renesas Electronics America, UPD78F0500AMC-CAB-AX Datasheet - Page 157

no-image

UPD78F0500AMC-CAB-AX

Manufacturer Part Number
UPD78F0500AMC-CAB-AX
Description
MCU 8BIT 30SSOP
Manufacturer
Renesas Electronics America
Series
78K0/Kx2r
Datasheet

Specifications of UPD78F0500AMC-CAB-AX

Core Processor
78K/0
Core Size
8-Bit
Speed
20MHz
Connectivity
3-Wire SIO, I²C, LIN, UART/USART
Peripherals
LVD, POR, PWM, WDT
Number Of I /o
23
Program Memory Size
8KB (8K x 8)
Program Memory Type
FLASH
Ram Size
512 x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Data Converters
A/D 4x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
*
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
78K0/Kx2
4.4.4 Instruction branch to bank area by interrupt
vector table, but it is difficult to identify the BANK register when the interrupt occurs.
specify the memory bank at the branch destination by using the BANK register in the common area, and execute the CALL
instruction. At this time, save the BANK register value before the change to RAM, and restore the value of the BANK
register before executing the RETI instruction.
R01UH0008EJ0401 Rev.4.01
Jul 15, 2010
When an interrupt occurs, instructions can branch to the memory bank specified by the BANK register by using the
Therefore, specify the branch destination address specified by the vector table in the common area (0000H to 7FFFH),
Remark
• Software example (when using interrupt request of 16-bit timer/event counter 00)
VCTBL
RAMD
R_BNKRN: DS
BNKC
BNKITM000:
BN3
TEST:
END
Allocate interrupt servicing that requires a quick response in the common area.
CSEG
DW
DSEG
CSEG
PUSH
MOV
MOV
MOV
CALL
MOV
MOV
POP
RETI
CSEG
MOV ⋅⋅⋅
RET
Common
area
:
:
Bank
area
AT
BNKITM000
SADDR
1
AT
AX
A,BANK
R_BNKRN,A
BANK,#BANKNUM TEST
!TEST
A,R_BNKRN
BANK,A
AX
BANK3
0020H
7000H
Memory bank m
Vector table
; Specifies an address at the timer interrupt destination.
; Specifies the memory bank number of the interrupt routine.
; Restores the contents of the AX register.
; Interrupt servicing routine
; Secures RAM for saving the memory bank number before the interrupt occurs.
; Inter-memory bank interrupt servicing routine
; Saves the contents of the AX register.
; Saves the memory bank number before the interrupt to RAM.
; Calls the interrupt routine.
; Restores the memory bank number before the interrupt.
Instruction branch
CHAPTER 4 MEMORY BANK SELECT FUNCTION
Save the original memory bank number.
Specify the address and memory bank
at the destination, and execute the call
instruction.
Memory bank n
157

Related parts for UPD78F0500AMC-CAB-AX