SONIX reserves the right to make change without further notice to any products herein to improve reliability, function or design. SONIX does not
assume any liability arising out of the application or use of any product or circuit described herein; neither does it convey any license under its patent
rights nor the rights of others. SONIX products are not designed, intended, or authorized for us as components in systems intended, for surgical
implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the SONIX product
could create a situation where personal injury or death may occur. Should Buyer purchase or use SONIX products for any such unintended or
unauthorized application. Buyer shall indemnify and hold SONIX and its officers, employees, subsidiaries, affiliates and distributors harmless against
all claims, cost, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death
associated with such unintended or unauthorized use even if such claim alleges that SONIX was negligent regarding the design or manufacture of
Page 1
SONIX products are not designed, intended, or authorized for us as components in systems intended, for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the SONIX product could create a situation where personal injury or death may occur.
P5[7:2] Schmitt trigger structure and built-in pull-up resisters as input mode. VREG 3.3V voltage output from USB 3.3V regulator. D+, D- USB differential data line. SCLK, SDATA PS/2 clock and data lines. Version 1.7 SONiX TECHNOLOGY CO., LTD Page 13...
Jump to user start address 0001H General purpose area 0007H 0008H User interrupt vector Interrupt vector 0009H User program 000FH 0010H 0011H General purpose area 17FCH End of user program 17FDH 17FEH Reserved 17FFH Version 1.7 SONiX TECHNOLOGY CO., LTD Page 15...
Example: Defining Reset Vector ; 0000H START ; Jump to user program address. … START: ; 0010H, The head of user program. … ; User program … ENDP ; End of program Version 1.7 SONiX TECHNOLOGY CO., LTD Page 16...
RETI ; End of interrupt service routine … START: ; The head of user program. … ; User program … START ; End of user program … ENDP ; End of program Version 1.7 SONiX TECHNOLOGY CO., LTD Page 17...
Page 18
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.
Y register must be added one. The following INC_YZ macro shows a simple method to process Y and Z registers automatically. Example: INC_YZ macro. INC_YZ MACRO INCMS ; Z+1 ; Not overflow INCMS ; Y+1 ; Not overflow ENDM Version 1.7 SONiX TECHNOLOGY CO., LTD Page 19...
Page 20
; To lookup data. If BUF = 0, data is 0x0035 ; If BUF = 1, data is 0x5105 ; If BUF = 2, data is 0x2012 … TABLE1: 0035H ; To define a word (16 bits) data. 5105H 2012H … Version 1.7 SONiX TECHNOLOGY CO., LTD Page 20...
; ACC = 3, jump to A3POINT SONIX provides a macro for safe jump table function. This macro will check the ROM boundary and move the jump table to the right position automatically. The side effect of this macro maybe wastes some ROM size.
Page 22
SN8P2200 Series USB 1.1 Low-Speed 8-Bit Micro-Controller Example: “@JMP_A” application in SONIX macro file called “MACRO3.H”. B0MOV A, BUF0 ; “BUF0” is from 0 to 4. @JMP_A ; The number of the jump table listing is five. A0POINT ; ACC = 0, jump to A0POINT A1POINT ;...
; If Not jump to checksum calculate CHECKSUM_END ; If Yes checksum calculated is done. Y_ADD_1: INCMS ; Increase Y ; Jump to checksum calculate CHECKSUM_END: … … END_USER_CODE: ; Label of program end Version 1.7 SONiX TECHNOLOGY CO., LTD Page 23...
Enable P1.4 input only without pull-up resister. Enable Enable ROM code Security function. Security Disable Disable ROM code Security function. Fcpu code option is only available for High Clock. Fcpu of slow mode is Flosc/4. Note: Version 1.7 SONiX TECHNOLOGY CO., LTD Page 24...
80h~FFh of Bank 0 store system registers (128 “ bytes). “ System register “ “ “ 0FFh End of bank 0 area 100h BANK1 “ “ BANK1 General purpose area “ “ “ 17Fh Version 1.7 SONiX TECHNOLOGY CO., LTD Page 25...
Page 28
3. One-bit name had been declared in SN8ASM assembler with “F” prefix code. 4. “b0bset”, “b0bclr”, ”bset”, ”bclr” instructions are only available to the “R/W” registers. 5. For detail description, please refer to the “System Register Quick Reference Table” Version 1.7 SONiX TECHNOLOGY CO., LTD Page 28...
“PUSH”, “POP” save and load ACC, PFLAG data into buffers. Example: Protect ACC and working registers. INT_SERVICE: PUSH ; Save ACC and PFLAG to buffers. … … ; Load ACC and PFLAG from buffers. RETI ; Exit interrupt service vector Version 1.7 SONiX TECHNOLOGY CO., LTD Page 29...
1 = The result of an arithmetic/logic/branch operation is zero. 0 = The result of an arithmetic/logic/branch operation is not zero. Note: Refer to instruction set table for detailed information of C, DC and Z flags. Version 1.7 SONiX TECHNOLOGY CO., LTD Page 30...
If the ACC is equal to the immediate data or memory, the PC will add 2 steps to skip next instruction. A, #12H ; To skip, if ACC = 12H. CMPRS C0STEP ; Else jump to C0STEP. … … C0STEP: Version 1.7 SONiX TECHNOLOGY CO., LTD Page 31...
Page 32
DECS BUF0 C0STEP ; Jump to C0STEP if ACC is not zero. … … C0STEP: DECMS instruction: DECMS BUF0 C0STEP ; Jump to C0STEP if BUF0 is not zero. … … C0STEP: Version 1.7 SONiX TECHNOLOGY CO., LTD Page 32...
Page 33
; If ACC = 0, jump to A0POINT A1POINT ; ACC = 1, jump to A1POINT A2POINT ; ACC = 2, jump to A2POINT A3POINT ; ACC = 3, jump to A3POINT … … Version 1.7 SONiX TECHNOLOGY CO., LTD Page 33...
; Clear @YZ to be zero DECMS ; Z – 1, if Z= 0, finish the routine CLR_YZ_BUF ; Not zero END_CLR: ; End of clear general purpose data memory area of bank 0 … Version 1.7 SONiX TECHNOLOGY CO., LTD Page 34...
Bit 3 Bit 2 Bit 1 Bit 0 RBIT7 RBIT6 RBIT5 RBIT4 RBIT3 RBIT2 RBIT1 RBIT0 Read/Write After reset Note: Please refer to the “LOOK-UP TABLE DESCRIPTION” about R register look-up table application. Version 1.7 SONiX TECHNOLOGY CO., LTD Page 35...
; To clear Y register to access RAM bank 0. B0MOV Z, #12H ; To set an immediate data 12H into Z register. B0MOV A, @YZ ; Use data pointer @YZ reads a data from RAM location ; 012H into ACC. Version 1.7 SONiX TECHNOLOGY CO., LTD Page 36...
NT0, NPD: Reset status flag. Condition Description Watchdog reset Watchdog timer overflow. Reserved Power on reset and LVD reset. Power voltage is lower than LVD detecting level. External reset External reset pin detect low level status. Version 1.7 SONiX TECHNOLOGY CO., LTD Page 40...
Page 41
High Detect Watchdog Low Detect Overflow Watchdog Normal Run Watchdog Reset Watchdog Stop System Normal Run System Status System Stop Power On External Watchdog Delay Time Reset Delay Reset Delay Time Time Version 1.7 SONiX TECHNOLOGY CO., LTD Page 41...
Clearing watchdog timer program is only at one part of the program. This way is the best structure to enhance the watchdog timer function. Note: Please refer to the “WATCHDOG TIMER” about watchdog timer detail information. Version 1.7 SONiX TECHNOLOGY CO., LTD Page 42...
DC low battery condition. When turn off the AC power, the VDD drops slowly and through the dead-band for a while. Version 1.7 SONiX TECHNOLOGY CO., LTD Page 43...
LVD detect level. The system minimum operating voltage rises when the system executing rate upper even higher than system reset voltage. The dead-band definition is the system minimum operating voltage above the system reset voltage. Version 1.7 SONiX TECHNOLOGY CO., LTD Page 44...
Delay Time The LVD (low voltage detector) is built-in Sonix 8-bit MCU to be brown out reset protection. When the VDD drops and is below LVD detect voltage, the LVD would be triggered, and the system is reset. The LVD detect level is different by each MCU.
The reset signal is slower than VDD power up timing, and system occurs a power on signal from the timing difference. Note: The reset circuit is no any protection against unusual power or brown out reset. Version 1.7 SONiX TECHNOLOGY CO., LTD Page 46...
PNP transistor outputs high voltage and MCU operates normally. When VDD is below “Vz + 0.7V”, the C terminal of the PNP transistor outputs low voltage and MCU is in reset mode. Decide the reset detect voltage by zener specification. Select the right zener voltage to conform the application. Version 1.7 SONiX TECHNOLOGY CO., LTD Page 47...
The external reset circuit also use external reset IC to enhance MCU reset performance. This is a high cost and good effect solution. By different application and system requirement to select suitable reset IC. The reset circuit can improve all power variation. Version 1.7 SONiX TECHNOLOGY CO., LTD Page 48...
Example: When entering the power down mode (sleep mode), both high-speed oscillator and internal low-speed oscillator will be stopped. B0BSET FCPUM0 ; To stop external high-speed oscillator and internal low-speed ; oscillator called power down mode (sleep mode). Version 1.7 SONiX TECHNOLOGY CO., LTD Page 50...
Crystal/Ceramic devices are driven by XIN, XOUT pins. 6M option is for high speed 6MHz. In IHRC_RTC mode, XIN/XOUT is connected with 32768Hz crystal for 0.5 sec RTC. CRYSTAL 20pF 20pF Note: Connect the Crystal/Ceramic and C as near as possible to the XIN/XOUT/VSS pins of micro-controller. Version 1.7 SONiX TECHNOLOGY CO., LTD Page 51...
; To stop external high-speed oscillator and internal low-speed ; oscillator called power down mode (sleep mode). Note: The internal low-speed clock can’t be turned off individually. It is controlled by CPUM0, CPUM1 (32K, watchdog disable) bits of OSCM register. Version 1.7 SONiX TECHNOLOGY CO., LTD Page 52...
; Output Fcpu toggle signal in low-speed clock mode. B0BCLR P0.0 ; Measure the Fcpu frequency by oscilloscope. Note: Do not measure the RC frequency directly from XIN; the probe impendence will affect the RC frequency. Version 1.7 SONiX TECHNOLOGY CO., LTD Page 53...
; Set CPUM1 = 1. Note: If T0 timer wakeup function is disabled in the green mode, only the wakeup pin and reset pin can wakeup the system backs to the previous operation mode. Version 1.7 SONiX TECHNOLOGY CO., LTD Page 55...
Page 56
; Set T0 timer wakeup function with 0.5 sec RTC. B0BSET FT0ENB ; To enable T0 timer B0BSET FT0TB ; To enable RTC function ; Go into green mode B0BCLR FCPUM0 ;To set CPUMx = 10 B0BSET FCPUM1 Version 1.7 SONiX TECHNOLOGY CO., LTD Page 56...
The wakeup time is as the following. The wakeup time = 1/Fosc * 2048 = 0.341 ms (Fosc = 6MHz) The total wakeup time = 0.341 ms + oscillator start-up time Version 1.7 SONiX TECHNOLOGY CO., LTD Page 57...
Global Interrupt Request Signal TC0IRQ TC0 Time Out 2-Bit Enable USBIRQ USB Process End Latchs Gating T1IRQ T1 Trigger T2IRQ T2 Trigger Note: The GIE bit must enable during all interrupt operation. Version 1.7 SONiX TECHNOLOGY CO., LTD Page 58...
0 = Disable global interrupt. 1 = Enable global interrupt. Example: Set global interrupt control bit (GIE). B0BSET FGIE ; Enable GIE Note: The GIE bit must enable during all interrupt operation. Version 1.7 SONiX TECHNOLOGY CO., LTD Page 60...
Example: Store ACC and PAFLG data by PUSH, POP instructions when interrupt service routine executed. START INT_SERVICE START: … INT_SERVICE: PUSH ; Save ACC and PFLAG to buffers. … … ; Load ACC and PFLAG from buffers. RETI ; Exit interrupt service vector … ENDP Version 1.7 SONiX TECHNOLOGY CO., LTD Page 61...
A, #74H B0MOV T0C, A ; Reset T0C. … ; T0 interrupt service routine … EXIT_INT: … ; Pop routine to load ACC and PFLAG from buffers. RETI ; Exit interrupt vector Version 1.7 SONiX TECHNOLOGY CO., LTD Page 64...
A, #74H B0MOV TC0C, A ; Reset TC0C. … ; TC0 interrupt service routine … EXIT_INT: … ; Pop routine to load ACC and PFLAG from buffers. RETI ; Exit interrupt vector Version 1.7 SONiX TECHNOLOGY CO., LTD Page 65...
A, T1C B0MOV T1CBUF, A ; Save pulse width. … ; T1 interrupt service routine … EXIT_INT: ; Pop routine to load ACC and PFLAG from buffers. RETI ; Exit interrupt vector Version 1.7 SONiX TECHNOLOGY CO., LTD Page 67...
A, T2C B0MOV T2CBUF, A ; Save pulse width. … ; T2 interrupt service routine … EXIT_INT: ; Pop routine to load ACC and PFLAG from buffers. RETI ; Exit interrupt vector Version 1.7 SONiX TECHNOLOGY CO., LTD Page 68...
; Jump to exit of IRQ B0BTS0 FT2IRQ ; Check T2IRQ INTT2 ; Jump to T2 interrupt service routine INT_EXIT: … ; Pop routine to load ACC and PFLAG from buffers. RETI ; Exit interrupt vector Version 1.7 SONiX TECHNOLOGY CO., LTD Page 69...
; Set all ports to be output mode. B0MOV P0M, A B0MOV P1M, A B0MOV P5M, A B0BCLR P1M.2 ; Set P1.2 to be input mode. B0BSET P1M.2 ; Set P1.2 to be output mode. Version 1.7 SONiX TECHNOLOGY CO., LTD Page 70...
Note: P03~P06 are input I/O with pull up resistor, so there has no P03R~P06R pull up resistor control bit. Example: I/O Pull up Register A, #0FFH ; Enable Port0, 1, 5 Pull-up register, B0MOV P0UR, A B0MOV P1UR, A B0MOV P5UR, A Version 1.7 SONiX TECHNOLOGY CO., LTD Page 71...
Example: Disable P1.0 to open-drain mode and output low. A, #0 ; Disable P1.0 open-drain function. B0MOV P1OC, A Note: After disable P1.0 open-drain function, P1.0 mode returns to last I/O mode. Version 1.7 SONiX TECHNOLOGY CO., LTD Page 72...
Example: Write one bit data to output port. B0BSET P1.3 ; Set P1.3 and P5.5 to be “1”. B0BSET P5.5 B0BCLR P1.3 ; Set P1.3 and P5.5 to be “0”. B0BCLR P5.5 Version 1.7 SONiX TECHNOLOGY CO., LTD Page 73...
Example: An operation of watchdog timer is as following. To clear the watchdog timer counter in the top of the main routine of the program. Main: A,#5AH ; Clear the watchdog timer. B0MOV WDTR,A … CALL SUB1 CALL SUB2 … … … MAIN Version 1.7 SONiX TECHNOLOGY CO., LTD Page 74...
Page 75
; I/O and RAM are correct. Clear watchdog timer and ; execute program. B0BSET FWDRST ; Only one clearing watchdog timer of whole program. … CALL SUB1 CALL SUB2 … … … MAIN Version 1.7 SONiX TECHNOLOGY CO., LTD Page 75...
Load T0TB Fcpu T0C 8-Bit Binary Up Counting Counter CPUM0,1 T0 Time Out T0ENB Note: In RTC mode, the T0 interval time is fixed at 0.5 sec and T0C is 256 counts. Version 1.7 SONiX TECHNOLOGY CO., LTD Page 76...
T0ENB: T0 counter control bit. 0 = Disable T0 timer. 1 = Enable T0 timer. Note: T0RATE is not available in RTC mode. The T0 interval time is fixed at 0.5 sec. Version 1.7 SONiX TECHNOLOGY CO., LTD Page 77...
1.33 us Fcpu/4 0.171 ms 0.67 us Fcpu/2 0.085 ms 0.33 us Note: In RTC mode, T0C is 256 counts and generatesT0 0.5 sec interval time. Don’t change T0C value in RTC mode. Version 1.7 SONiX TECHNOLOGY CO., LTD Page 78...
0 = Disable TC0 timer. 1 = Enable TC0 timer. Note: When TC0CKS=1, TC0 became an external event counter and TC0RATE is useless. No more P0.0 interrupt request will be raised. (P0.0IRQ will be always 0). Version 1.7 SONiX TECHNOLOGY CO., LTD Page 81...
21.33 us Fcpu/64 2.731 ms 10.67 us Fcpu/32 1.365 ms 5.33 us Fcpu/16 0.683 ms 2.67 us Fcpu/8 0.341 ms 1.33 us Fcpu/4 0.171 ms 0.67 us Fcpu/2 0.085 ms 0.33 us Version 1.7 SONiX TECHNOLOGY CO., LTD Page 82...
; Enable TC0 output to P5.4 and disable P5.4 I/O function B0BSET FALOAD1 ; Enable TC0 auto-reload function B0BSET FTC0ENB ; Enable TC0 timer Note: Buzzer output is enable, and “PWM0OUT” must be “0”. Version 1.7 SONiX TECHNOLOGY CO., LTD Page 84...
187.5K Overflow per 16 count The Output duty of PWM is with different TC0R. Duty range is from 0/256~255/256. …… …… …… …… TC0 Clock TC0R=00H High TC0R=01H High TC0R=80H High TC0R=FFH Version 1.7 SONiX TECHNOLOGY CO., LTD Page 86...
2 and period 4, and the new duty is changed in next period. By the way, system can avoid the PWM not changing or H/L changing twice in the same cycle and will prevent the unexpected or error operation. Version 1.7 SONiX TECHNOLOGY CO., LTD Page 88...
TC0R, A INCMS BUF0 ; Get the new TC0R value from the BUF0 buffer defined by ; programming. B0MOV A, BUF0 B0MOV TC0R, A Note: The PWM can work with interrupt request. Version 1.7 SONiX TECHNOLOGY CO., LTD Page 89...
T1C0 Read/Write After reset 0AEH Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 T2C7 T2C6 T2C5 T2C4 T2C3 T2C2 T2C1 T2C0 Read/Write After reset Version 1.7 SONiX TECHNOLOGY CO., LTD Page 91...
Fcpu/16 0.683 ms 2.67 us 2.67us~0.683 ms 374.53KHz~1.46KHz Fcpu/8 0.341 ms 1.33 us 1.33us~0.341 ms 751.88KHz~2.94KHz Fcpu/4 0.171 ms 0.67 us 0.67us~0.171 ms 1.49MHz~5.85KHz Fcpu/2 0.085 ms 0.33 us 0.33us~0.085 ms 3.03MHz~11.76KHz Version 1.7 SONiX TECHNOLOGY CO., LTD Page 92...
Tn Input Signal Tn Timer Counter Rising edge trigger period measurement waveform. Rising edge trigger. Rising edge trigger. Tn start to count. Tn stop counting. TnIRQ=0 TnIRQ=1. Tn Input Signal Tn Timer Counter Version 1.7 SONiX TECHNOLOGY CO., LTD Page 93...
Page 94
T1CBUF, A ; Save T1C. … ; Application program. ; Clear T1C. B0BCLR FT1IRQ ; Clear T1IRQ for next frequency measurement. … ; Reload ACC and PFLAG. RETI ; Exit interrupt service routine. Version 1.7 SONiX TECHNOLOGY CO., LTD Page 94...
Tn Input Signal Tn Timer Counter Negative pulse width measurement waveform. Falling edge trigger. Rising edge trigger. Tn start to count. Tn stop counting. TnIRQ=0 TnIRQ=1. Tn Input Signal Tn Timer Counter Version 1.7 SONiX TECHNOLOGY CO., LTD Page 95...
Page 96
T1CBUF, A ; Save T1C. … ; Application program. ; Clear T1C. B0BCLR FT1IRQ ; Clear T1IRQ for next frequency measurement. … ; Reload ACC and PFLAG. RETI ; Exit interrupt service routine. Version 1.7 SONiX TECHNOLOGY CO., LTD Page 96...
The USB is the answer to connectivity for the PC architecture. A fast, bi-directional, isochronous, low-cost, dynamically attachable serial interface is consistent with the requirements of the PC platform of today and tomorrow. The SONIX USB microcontrollers are optimized for human-interface computer peripherals such as a mouse, joystick, and game pad.
EP0_In ; Jump to EP0 In Token routine. b0bts0 UE0R.6 ; check EP0_Out_Token or Setup token jmp EP0_Setup ; Jump to Setup routine. b0bclr UE0R.5 ; Clear out token flag RETI Version 1.7 SONiX TECHNOLOGY CO., LTD Page 98...
After the bit is set, the D- will pull up automatically to indicate the low speed device to the USB host. 0 = Disable USB device function. 1 = Enable USB device function. Version 1.7 SONiX TECHNOLOGY CO., LTD Page 99...
1 = A valid SETUP packet has been received. Bit 7 UE0E: USB endpoint 0 function enable bit. 0 = disable USB endpoint 0 function. 1 = enable USB endpoint 0 function. Version 1.7 SONiX TECHNOLOGY CO., LTD Page 100...
Address [1F]~address [18]: data buffer for endpoint 3. Check the bit 6 of the UE3E register (0xA4H) to select the right FIFO. The following examples show how to do select the right FIFO address pointer. Version 1.7 SONiX TECHNOLOGY CO., LTD Page 103...
Page 104
UDP1, A user_define_routine Example 4. Write data to EP2 FIFO. EP2_FIFO_WRITE_data: B0BTS1 0xA3.6 ;check the bit to select the right FIFO write_endpoint2_FIFO_UDR0 write_endpoint2_FIFO_UDR1 write _endpoint2_FIFO_UDR0 A, UDR0 user_define_routine write _endpoint2_FIFO_UDR1 A, UDR1 user_define_routine Version 1.7 SONiX TECHNOLOGY CO., LTD Page 104...
1 = Set to 1 by hardware when USB suspend request. Bit 7 FFS0: endpoint 0 FIFO selection control bit. FFS0 UE0DO=1, endpoint OUT data UE0DI=1, endpoint IN data FIFO 1 FIFO 0 FIFO 0 FIFO 1 Version 1.7 SONiX TECHNOLOGY CO., LTD Page 105...
1 = set this bit and the bit 4 of UE3R register will send the STALL handshake response to any IN token sent to endpoint 3. 0 = Disable endpoint 3 STALL handshake response. Version 1.7 SONiX TECHNOLOGY CO., LTD Page 106...
Firmware must include clock 15KHz signal generator, odd parity calculate, start/stop/ack bit routine to get a basic PS/2 protocol signal, and follow PS/2 protocol specification to define PC’s peripheral device (mouse or keyboard) transmitting data form and contents. Version 1.7 SONiX TECHNOLOGY CO., LTD Page 107...
1 = Data 1. Bit [1:0] SDAM, SCKM: SDA, SCK mode control bit. 0 = Input mode. 1 = Output mode. Note: Use PS2_1 for PS/2 communication, the USB must be disable (UDE=0). Version 1.7 SONiX TECHNOLOGY CO., LTD Page 108...
P1.0, P1.1 must be set as open-drain mode. Use firmware to make PS/2 communication routine. VDD (5V) P10M P10OC=1 P1.0 P1.0 Output VDD (5V) HOST Latch Terminal P11M P11OC=1 P1.1 P1.1 Output Latch Version 1.7 SONiX TECHNOLOGY CO., LTD Page 109...
Note: 1. “M” is system register or RAM. If “M” is system registers then “N” = 0, otherwise “N” = 1. 2. If branch condition is true then “S = 1”, otherwise “S = 0”. Version 1.7 SONiX TECHNOLOGY CO., LTD Page 110...
USB 1.1 Low-Speed 8-Bit Micro-Controller DEVELOPMENT TOOL SONIX provides ICE (in circuit emulation), IDE (Integrated Development Environment), EV-kit and firmware library for USB application development. ICE and EV-kit are external hardware device and IDE is a friendly user interface for firmware development and emulation.
Page 112
13 12 10 9 Link Pin 2 & Pin 13 Link Pin 3 & Pin 5 Link Pin 6 & Pin 9 Link Pin 10 & Pin 12 2 3 5 6 6MHz Crystal 6MHz Version 1.7 SONiX TECHNOLOGY CO., LTD Page 112...
U6: USB and PS/2 pull-up resistors control device. JP4: PS2_1 connector. JP10: PS2_2 connector. JP11: GPIO connector. U7~U10: SN8P2204, SN8P2203, SN8P2202, SN8P2201 DIP form connector for connecting to user’s target board. S1: PS2_2 (from P1.0, P1.1) pull-up resistor. Version 1.7 SONiX TECHNOLOGY CO., LTD...
Page 114
SCLK_D+ The SN8P2204 EV-kit USB PHY can be U4 “TRXU11” or U5 “SN8P2201S”. The PHY IC is offered by Sonix. Using TRXU11, U2 pin17, 20, 21 must be cut off, or the USB emulation can’t be successful. Using SN8P2201S PHY, the EV-kit needn’t modify any parts.
Using ICE and EV-kit to emulate SN8P2200 operation, the “ICE_MODE” should be declared in head of program to make sure ICE+EV-kit operating correctly. ICE_MODE equ 0 ; Compile for real chip. ICE_MODE equ 1 ; ICE+EV-kit emulation. Version 1.7 SONiX TECHNOLOGY CO., LTD Page 115...
12.4 IDE (Integrated Development Environment) The IDE for SN8P2200 development and emulation is base on Sonix M2IDE to add USB FiFo window. The user interface and operation method is equal to M2IDE. Please refer to M2IDE document about basic operation.
EZ Writer / MP Writer OTP IC / JP3 Pin Assigment Connector Number Name Number Number Number Number P5.0 P5.0 P5.0 P5.0 P1.0 P1.0 P1.0 P1.0 P5.1 P5.1 P5.1 P5.1 ALSB/PDB P1.1 P1.1 P1.1 P1.1 Version 1.7 SONiX TECHNOLOGY CO., LTD Page 119...
Marking Definition 16.1 INTRODUCTION There are many different types in Sonix 8-bit MCU production line. This note listed the production definition of all 8-bit MCU for order or obtain information. This definition is only for Blank OTP MCU. 16.2 MARKING INDETIFICATION SYSTEM SN8 X Part No.
Need help?
Do you have a question about the SN8P2203 and is the answer not in the manual?
Questions and answers