I/O Port Control Register ......................................................................................64
I/O Pin Structures .................................................................................................66
Programming Considerations ...............................................................................66
Timer/Event Counters .......................................................................67
Configuring the Timer/Event Counter Input Clock Source .....................................68
Timer Register
-
TMR, TMR0, TMR1L, TMR1H ...................................................68
Timer Control Register
-
TMRC, TMR0C, TMR1C ...............................................68
8-Bit Timer/Event Counter Operating Mode ..........................................................70
16-Bit Timer/Event Counter 1 Operating Modes -- BS83C24-3.............................70
Prescaler ..............................................................................................................73
PFD Function .......................................................................................................73
I/O Interfacing.......................................................................................................73
Programming Considerations ...............................................................................73
Timer Program Example-Timer/Event Counter 0 ..................................................74
Touch Key Function ..........................................................................75
Touch Key Structure .............................................................................................75
Touch Key Register Definition...............................................................................76
Touch Key Operation ............................................................................................79
Touch Key Interrupt ..............................................................................................80
Programming Considerations ...............................................................................80
Serial Interface Module
-
SIM...........................................................81
SPI Interface.........................................................................................................81
I
2
C Interface .........................................................................................................87
Interrupts............................................................................................96
Interrupt Registers ................................................................................................96
Interrupt Register Contents...................................................................................97
Interrupt Operation .............................................................................................104
External Interrupt ................................................................................................107
Multi-function Interrupt ........................................................................................107
Time Base Interrupts ..........................................................................................108
Timer/Event Counter Interrupt ............................................................................109
EEPROM Interrupt .............................................................................................109
Touch Key Interrupts...........................................................................................109
SIM Interrupt.......................................................................................................109
Interrupt Wake-up Function.................................................................................110
Programming Considerations .............................................................................110
Application Circuits.........................................................................111
Instruction Set .................................................................................112
Introduction.........................................................................................................112
Instruction Timing................................................................................................112
Moving and Transferring Data.............................................................................112
Arithmetic Operations .........................................................................................112
Rev. 1.50
4
April 28, 2020
Contents