SN8P2200 Series
USB 1.1 Low-Speed 8-Bit Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 5
Version 1.7
7 I/O PORT ..................................................................................................................................................... 70
MODE ................................................................................................................................... 70
8 TIMERS ....................................................................................................................................................... 74
TIMER............................................................................................................................ 74
(T0) ......................................................................................................................................... 76
8.2.1 OVERVIEW ..................................................................................................................................... 76
8.2.2 T0M MODE REGISTER.................................................................................................................. 77
8.2.3 T0C COUNTING REGISTER.......................................................................................................... 78
8.3.1 OVERVIEW ..................................................................................................................................... 80
8.3.2 TC0M MODE REGISTER ............................................................................................................... 81
8.3.3 TC0C COUNTING REGISTER ....................................................................................................... 82
8.3.4 TC0R AUTO-LOAD REGISTER ..................................................................................................... 83
MODE ........................................................................................................................................ 86
8.4.1 OVERVIEW ..................................................................................................................................... 86
8.4.2 TCxIRQ and PWM Duty .................................................................................................................. 87
8.4.3 PWM Duty with TCxR Changing..................................................................................................... 88
8.4.4 PWM PROGRAM EXAMPLE ......................................................................................................... 89
8.5.1 OVERVIEW ..................................................................................................................................... 90
8.5.2 TnM MODE REGISTER.................................................................................................................. 91
8.5.3 Tn COUNTING REGISTER ............................................................................................................ 91
9 UNIVERSAL SERIAL BUS (USB) ........................................................................................................... 97
OVERVIEW ........................................................................................................................................... 97