| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
PMS232 bảng dữ liệu(PDF) 49 Page - PADAUK Technology. |
|
|
|||||||||||||||||||||||||||||
PMS232 bảng dữ liệu(HTML) 49 Page - PADAUK Technology. |
|
49 / 94 page ![]() PMC232/PMS232 Series 12-bit ADC Enhanced FPPA TM 8-bit OTP Controller ©Copyright 2018, PADAUK Technology Co. Ltd Page 49 of 94 PDK-DS-PMx232_V104– Dec. 18, 2018 5-11. Interrupt There are five interrupt lines for PMC232/PMS232: External interrupt PA0 External interrupt PB0 ADC interrupt Timer16 interrupt Timer2 interrupt Every interrupt request line has its own corresponding interrupt control bit to enable or disable it; the hardware diagram of interrupt function is shown as Fig. 14. All the interrupt request flags are set by hardware and cleared by writing intrq register. When the request flags are set, it can be rising edge, falling edge or both, depending on the setting of register integs. All the interrupt request lines are also controlled by engint instruction (enable global interrupt) to enable interrupt operation and disgint instruction (disable global interrupt) to disable it. Only FPP0 can accept the interrupt request, other FPP unit will not be interfered by interrupt. The stack memory for interrupt is shared with data memory and its address is specified by stack register sp. Since the program counter is 16 bits width, the bit 0 of stack register sp should be kept 0. Moreover, user can use pushaf / popaf instructions to store or restore the values of ACC and flag register to / from stack memory. Since the stack memory is shared with data memory, user should manipulate the memory using carefully. By adjusting the memory location of stack point, the depth of stack pointer for every FPP unit could be fully specified by user to achieve maximum flexibility of system. Fig.14: Hardware diagram of interrupt controller Once the interrupt occurs, its operation will be: The program counter will be stored automatically to the stack memory specified by register sp. New sp will be updated to sp+2. Global interrupt will be disabled automatically. The next instruction will be fetched from address 0x010. During the interrupt service routine, the interrupt source can be determined by reading the intrq register. Inten.6 Inten.3 Inten.2 Inten.1 Inten.0 engint / disgint Note: “engint” and “disgint” are instructions Interrupt to FPP0 detect both edges detect both edges detect rising edge detect event detect event Intrq.0 Intrq.1 Intrq.2 Intrq.3 Intrq.6 PA0 PB0 T16 output ADC output Timer2 output Inten.6 Inten.3 Inten.2 Inten.1 Inten.0 engint / disgint Note: “engint” and “disgint” are instructions Interrupt to FPP0 detect both edges detect both edges detect rising edge detect event detect event Intrq.0 Intrq.1 Intrq.2 Intrq.3 Intrq.6 PA0 PB0 T16 output ADC output Timer2 output |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất All Rights Reserved©Alldatasheet.com |
| 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 |