| Electronic Components Datasheet Search |
|
SN8P1602A Datasheet(PDF) 16 Page - SONiX Technology Company |
|
|
|||||||||||||||||||||||||||||
SN8P1602A Datasheet(HTML) 16 Page - SONiX Technology Company |
|
16 / 76 page ![]() SN8P1602B 8-Bit Micro-Controller SONiX TECHNOLOGY CO., LTD Page 16 Version 1.1 Programming Tip: Defining Interrupt Vector (Example 2) CHIP SN8P1602B .DATA PFLAGBUF .CODE ORG 0 ; 0000H JMP START ; Jump to user program address. . ; 0001H ~ 0007H are reserved ORG 08 JMP MY_IRQ ; 0008H, Jump to interrupt service routine address ORG 10H START: ; 0010H, The head of user program. . ; User program . . JMP START ; End of user program MY_IRQ: ;The head of interrupt service routine B0XCH A, ACCBUF ; B0XCH doesn’t change C, Z flag B0MOV A, PFLAG B0MOV PFLAGBUF, A ; Save PFLAG register in a buffer . . B0MOV A, PFLAGBUF B0MOV PFLAG, A ; Restore PFLAG register from buffer B0XCH A, ACCBUF ; B0XCH doesn’t change C, Z flag RETI ; End of interrupt service routine ENDP ; End of program Remark: 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 0004H~0007H are reserved. Users is NOT allow to use 0004H~0007H addresses. The default value might change from time to time during various production progress. We strongly suggest users DO NOT take this value into the Check Sum. For detailed information, please check the following Checksum Calculation section |
|
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 |