參數(shù)資料
型號: S1C7XXXF00E199
元件分類: 微控制器/微處理器
英文描述: 16-BIT, 90 MHz, RISC MICROCONTROLLER, PQFP
文件頁數(shù): 151/196頁
文件大小: 1650K
代理商: S1C7XXXF00E199
第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頁第101頁第102頁第103頁第104頁第105頁第106頁第107頁第108頁第109頁第110頁第111頁第112頁第113頁第114頁第115頁第116頁第117頁第118頁第119頁第120頁第121頁第122頁第123頁第124頁第125頁第126頁第127頁第128頁第129頁第130頁第131頁第132頁第133頁第134頁第135頁第136頁第137頁第138頁第139頁第140頁第141頁第142頁第143頁第144頁第145頁第146頁第147頁第148頁第149頁第150頁當(dāng)前第151頁第152頁第153頁第154頁第155頁第156頁第157頁第158頁第159頁第160頁第161頁第162頁第163頁第164頁第165頁第166頁第167頁第168頁第169頁第170頁第171頁第172頁第173頁第174頁第175頁第176頁第177頁第178頁第179頁第180頁第181頁第182頁第183頁第184頁第185頁第186頁第187頁第188頁第189頁第190頁第191頁第192頁第193頁第194頁第195頁第196頁
6 FUNCTIONS
6-8
EPSON
S1C17 FAMILY S1C17 CORE MANUAL
6.3.5 Address Misaligned Interrupt
The load instructions that access memory or I/O areas are characteristic in that the data size to be transferred is
predetermined for each instruction used, and that the accessed addresses must be aligned with the respective data-
size boundaries.
Instruction
Transfer data size
Address
ld.b/ld.ub
Byte (8 bits)
Byte boundary (applies to all addresses)
ld
16 bits
16-bit boundary (least significant address bit = 0)
ld.a
32 bits
32-bit boundary (two least significant address bits = 00)
If the specified address in a load instruction does not satisfy this condition, the processor assumes an address
misaligned interrupt and performs interrupt handling. Even in this case the load instruction is executed as the least
significant bit or the two low-order bits of the address set to 0. The PC value saved to the stack in interrupt handling
is the address of the load instruction that caused the interrupt.
This interrupt does not occur in the program branch instructions as the least significant bit of the PC is always fixed
to 0. The same applies to the vector for interrupt handling.
6.3.6 NMI
An NMI is generated when the nmi_n input on the processor is asserted low. When an NMI occurs, the processor
performs interrupt handling after it has finished executing the instruction currently underway.
6.3.7 Maskable External Interrupts
The S1C17 Core can accept up to 32 types of maskable external interrupts (however, the first three interrupt causes
use the save vector address as the reset interrupt, address misaligned interrupt, and NMI). It is only when the IE
(interrupt enable) flag in the PSR is set that the processor accepts a maskable external interrupt. Furthermore, their
acceptable interrupt levels are limited by the IL (interrupt level) field in the PSR. The interrupt levels (0–7) in the
IL field dictate the interrupt levels that can be accepted by the processor, and only interrupts with priority levels
higher than that are accepted. Interrupts with the same interrupt level as IL cannot be accepted.
The IE flag can be set in the software. When an interrupt occurs, the IE flag is cleared to 0 (interrupts disabled)
after the PSR is saved to the stack, and the maskable interrupts remain disabled until the IE flag is set in the handler
routine or the handler routine is terminated by the reti instruction that restores the PSR from the stack. The IL
field is set to the priority level of the interrupt that occurred.
Multiple interrupts or the ability to accept another interrupt during interrupt handling if its priority is higher than
that of the currently serviced interrupt can easily be realized by setting the IE flag in the interrupt handler routine.
When the processor is reset, the PSR is initialized to 0 and the maskable interrupts are therefore disabled, and the
interrupt level is set to 0 (interrupts with priority levels 1–7 enabled).
The following describes how the maskable interrupts are accepted and processed by the processor.
(1) Suspends the instructions currently being executed.
The interrupt is accepted synchronously with the rising edge of the system clock at the end of the cycle of the
currently executed instruction.
(2) Saves the contents of the PC (current value) and PSR to the stack (SP), in that order.
(3) Clears the IE flag in the PSR and copy the priority level of the accepted interrupt to the IL field.
(4) Reads the vector for the interrupt from the vector address in the vector table, and sets it in the PC. The processor
then branches to the interrupt handler routine.
In the interrupt handler routine, the reti instruction should be executed at the end of processing. In the reti
instruction, the saved data is restored from the stack in order of the PC and PSR, and the processing returns to the
suspended instructions.
相關(guān)PDF資料
PDF描述
S2041 PHOTO TRANSISTOR DETECTOR
S3P44R10 TRIGGER OUTPUT SOLID STATE RELAY, 4000 V ISOLATION-MAX
S3S12P128J0VQK 16-BIT, MROM, 1.05 MHz, MICROCONTROLLER, PQFP80
MC9S12P128J0CFTR 16-BIT, FLASH, 1.05 MHz, MICROCONTROLLER, QCC48
MC3S12P128J0VFTR 16-BIT, MROM, 1.05 MHz, MICROCONTROLLER, QCC48
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
S1C88349 制造商:EPSON 制造商全稱:EPSON 功能描述:8-bit Single Chip Microcomputer
S1C88649 制造商:EPSON 制造商全稱:EPSON 功能描述:8-bit Single Chip Microcomputer
S1C88650 制造商:EPSON 制造商全稱:EPSON 功能描述:8-bit Single Chip Microcomputer
S1C88655 制造商:EPSON 制造商全稱:EPSON 功能描述:8-bit Single Chip Microcomputer
S1C88816 制造商:EPSON 制造商全稱:EPSON 功能描述:8-bit Single Chip Microcomputer