| Electronic Components Datasheet Search |
|
SN8F27E64LKB Datasheet(PDF) 19 Page - SONiX Technology Company |
|
|
|||||||||||||||||||||||||||||
SN8F27E64LKB Datasheet(HTML) 19 Page - SONiX Technology Company |
|
19 / 192 page ![]() SN8F27E60 Series 8-Bit Flash Micro-Controller with Embedded ICE and ISP SONiX TECHNOLOGY CO., LTD Page 19 Version 1.4 Example: Defining Interrupt Vector. The interrupt service routine is following user program. .CODE ORG 0 ; 0000H JMP START ; Jump to user program address. … ORG 8 ; Interrupt vector, 0008H. JMP ISR_WAKE ; Jump to interrupt service routine address. JMP ISR_INT0 JMP ISR_INT1 JMP ISR_T0 JMP ISR_TC0 JMP ISR_TC1 JMP ISR_TC2 JMP ISR_T1 JMP ISR_ADC JMP ISR_SIO JMP ISR_MSP JMP ISR_UART_RX JMP ISR_UART_TX ORG 15H START: ; 0015H, The head of user program. … ; User program. … … JMP START ; End of user program. … ISR_WAKE: ; The head of interrupt service routine. ; Save ACC and 0x80~0x8F register to buffers. … ; Load ACC and 0x80~0x8F register from buffers. RETI ; End of interrupt service routine. ISR_INT0: ; ; Save ACC and 0x80~0x8F register to buffers. … ; Load ACC and 0x80~0x8F register from buffers. RETI ; End of interrupt service routine. … … … … … ISR_UART_TX: ; ; Save ACC and 0x80~0x8F register to buffers. … ; Load ACC and 0x80~0x8F register from buffers. RETI ; End of interrupt service routine. ENDP ; End of program. Note: It is easy to understand the rules of SONIX program from demo programs given above. These points are as following: 1. The address 0000H is a “JMP” instruction to make the program starts from the beginning. 2. The address 0008H~0014H is interrupt vector. 3. User ’s program is a loop routine for main purpose application. |
|
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 |