| Electronic Components Datasheet Search |
|
SN8P1602AX Datasheet(PDF) 80 Page - SONiX Technology Company |
|
|
|||||||||||||||||||||||||||||
SN8P1602AX Datasheet(HTML) 80 Page - SONiX Technology Company |
|
80 / 94 page ![]() SN8P1600 8-bit micro-controller SONiX TECHNOLOGY CO., LTD Page 80 Revision 1.94 ;------------------------------------------------------------------------------- ; Code section ;------------------------------------------------------------------------------- .CODE ORG 0 ;Code section start jmp Reset ;Reset vector ;Address 4 to 7 are reserved ORG 8 jmp Isr ;Interrupt vector ORG 10h ;------------------------------------------------------------------------------- ; Program reset section ;------------------------------------------------------------------------------- Reset: mov A,#07Fh ;Initial stack pointer and b0mov STKP,A ;disable global interrupt b0mov PFLAG,#00h ;pflag = x,x,x,x,x,c,dc,z mov A,#40h ;Clear watchdog timer and initial system mode b0mov OSCM,A call ClrRAM ;Clear RAM call SysInit ;System initial b0bset FGIE ;Enable global interrupt ;------------------------------------------------------------------------------- ; Main routine ;------------------------------------------------------------------------------- Main: b0bset FWDRST ;Clear watchdog timer call MnApp jmp Main ;------------------------------------------------------------------------------- ; Main application ;------------------------------------------------------------------------------- MnApp: ; Put your main program here ret ;----------------------------------- ; Jump table routine ;----------------------------------- ORG 0x0100 ;The jump table should start from the head ;of boundary. b0mov A,Wk00 and A,#3 ADD PCL,A jmp JmpSub0 jmp JmpSub1 jmp JmpSub2 ;----------------------------------- |
|
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 |