SN8F2280 Series
USB 2.0 Full-Speed 8-Bit Micro-Controller
6.8 T1 INTERRUPT OPERATION.............................................................................................................. 71
6.9 TC0 INTERRUPT OPERATION........................................................................................................... 72
6.10 TC1 INTERRUPT OPERATION......................................................................................................... 73
6.11 TC2 INTERRUPT OPERATION......................................................................................................... 74
6.12 USB INTERRUPT OPERATION ........................................................................................................ 75
6.13 WAKEUP INTERRUPT OPERATION............................................................................................... 76
6.14 SIO INTERRUPT OPERATION.......................................................................................................... 77
6.15 MULTI-INTERRUPT OPERATION................................................................................................... 78
7
I/O PORT ................................................................................................................................................ 79
7.1 I/O PORT MODE ................................................................................................................................... 79
7.2 I/O PULL UP REGISTER ...................................................................................................................... 81
7.3 I/O OPEN-DRAIN REGISTER.............................................................................................................. 82
7.4 I/O PORT DATA REGISTER ................................................................................................................ 83
7.5 I/O PORT1 WAKEUP CONTROL REGISTER..................................................................................... 84
8
TIMERS .................................................................................................................................................. 85
8.1 WATCHDOG TIMER............................................................................................................................ 85
8.2 TIMER 0 (T0) ......................................................................................................................................... 87
8.2.1 OVERVIEW ..................................................................................................................................... 87
8.2.2 T0M MODE REGISTER.................................................................................................................. 87
8.2.3 T0C COUNTING REGISTER.......................................................................................................... 88
8.2.4 T0 TIMER OPERATION SEQUENCE............................................................................................ 89
8.3 TIMER T1 (T1)....................................................................................................................................... 90
8.3.1 OVERVIEW ..................................................................................................................................... 90
8.3.2 T1M MODE REGISTER.................................................................................................................. 90
8.3.3 T1C COUNTING REGISTER.......................................................................................................... 91
8.3.4 T1 TIMER OPERATION SEQUENCE............................................................................................ 91
8.4 TIMER/COUNTER 0 (TC0~TC2) ......................................................................................................... 93
8.4.1 OVERVIEW ..................................................................................................................................... 93
8.4.2 TCnM MODE REGISTER ............................................................................................................... 94
8.4.3 TCnC COUNTING REGISTER ....................................................................................................... 96
8.4.4 TCnR AUTO-LOAD REGISTER ..................................................................................................... 97
8.4.5 TCn CLOCK FREQUENCY OUTPUT (BUZZER) ......................................................................... 98
8.4.6 TCn TIMER OPERATION SEQUENCE ......................................................................................... 99
8.5 PWMN MODE...................................................................................................................................... 100
8.5.1 OVERVIEW ................................................................................................................................... 100
8.5.2 TCnIRQ and PWM Duty................................................................................................................ 101
8.5.3 PWM Duty with TCnR Changing .................................................................................................. 102
8.5.4 PWM PROGRAM EXAMPLE ....................................................................................................... 103
SONiX TECHNOLOGY CO., LTD
Page 5
Version 1.1