| Electronic Components Datasheet Search |
|
MA015 Datasheet(PDF) 12 Page - Megawin Technology Co., Ltd |
|
|
|||||||||||||||||||||||||||||
MA015 Datasheet(HTML) 12 Page - Megawin Technology Co., Ltd |
|
12 / 29 page ![]() This document information is the intellectual property of Megawin Technology. Megawin Technology Co., Ltd. 2011 All right reserved. QP-7300-03D 12/29 MA015 Datasheet Version 2.00 8 Interrupt There are four kinds of interrupt sources are provided in MA015. The flag IRQ_EN and IRQ_ST are used to control the interrupts. When flag IRQ_ST is set to ‘1’ by hardware and the corresponding bits of flag IRQ_EN has been set by software, an interrupt is generated. When an interrupt occurs, all of the interrupts are inhibited until the CLI or STA IRQ_EN, #I instruction is invoked. Executing the SEI instruction can also disable the interrupts. Table 8-1 Interrupt Vector Table Vector Address Item Priority Properties Memo FFFEH, FFFFH - - - Reserve FFFCH, FFFDH PAD RESET 1 Ext. Initial reset FFFCH, FFFDH LVR 1 Int. Initial reset FFFCH, FFFDH POR 1 Int. Initial reset FFFCH, FFFDH WDT 1 Int. Initial reset FFFCH, FFFDH RESET OK 1 Int. Initial reset FFFAH, FFFBH - - - Reserve FFF8H, FFF9H - - - Reserve FFF6H, FFF7H TM0 2 Int. Timer 0 overflow interrupt FFF4H, FFF5H Port 3 Ext. Port P0, P3 interrupt vector FFF2H, FFF3H TM1 4 Int. Timer 1 overflow interrupt FFF1H, FFF0H TM2 5 Int. Timer 2 overflow interrupt 8.1 Interrupt Register IRQ enable flag Address Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 R W 00C0H IRQ_EN - - - TM2 TM1 Port TM0 - - Program can enable or disable the ability of triggering IRQ through this register. 0: Disable (default "0" at initialization) 1: Enable Port: Raising or falling edge occurs at port 0 (or port 3) input mode. TM0, TM1, TM2: Timer 0/1/2 underflow IRQ status flag Address Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 R W 00C1H IRQ_ST - - - TM2 TM1 Port TM0 LVD - When IRQ occurs, program can read this register to know which source triggering IRQ. LVD flag: The Low Voltage Detector has no de-bounce ability. When VDD is equal or lower than the condition of LVD, the LVD flag will be set to high immediately. De-bounce could be implement by firmware. The LVD flag has not interrupt ability and set by hardware. When VDD is higher than the condition of LVD, the LVD flag will be clear by hardware. IRQ clear flag Address Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 R W 00C1H IRQ_CLR - - - TM2 TM1 Port TM0 LVD - Program can clear the interrupt event by writing ‘1’ into the corresponding bit (except LVD bit). |
|
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 |
| 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 |