MC68HC05B6
Rev. 4
MOTOROLA
iii
TABLE OF CONTENTS
Paragraph
Number
Page
Number
TABLE OF CONTENTS
5
PROGRAMMABLE TIMER
5.1
5.1.1
5.2
5.2.1
5.2.2
5.3
5.3.1
5.3.2
5.4
5.4.1
5.4.2
5.4.3
5.5
5.5.1
5.6
5.7
5.8
Counter..............................................................................................................5–1
Counter register and alternate counter register...........................................5–3
Timer control and status....................................................................................5–4
Timer control register (TCR) ........................................................................5–4
Timer status register (TSR)..........................................................................5–6
Input capture......................................................................................................5–7
Input capture register 1 (ICR1) ....................................................................5–7
Input capture register 2 (ICR2) ....................................................................5–8
Output compare.................................................................................................5–9
Output compare register 1 (OCR1)..............................................................5–9
Output compare register 2 (OCR2)............................................................5–10
Software force compare.............................................................................5–11
Pulse Length Modulation (PLM) ......................................................................5–11
Pulse length modulation registers A and B (PLMA/PLMB)........................5–11
Timer during STOP mode................................................................................5–12
Timer during WAIT mode.................................................................................5–12
Timer state diagrams.......................................................................................5–12
6
SERIAL COMMUNICATIONS INTERFACE
6.1
6.2
6.3
6.4
6.5
6.6
6.6.1
6.6.2
6.7
6.8
6.9
6.10
6.11
6.11.1
6.11.2
6.11.3
6.11.4
6.11.5
6.12
6.13
6.14
SCI two-wire system features............................................................................6–1
SCI receiver features.........................................................................................6–3
SCI transmitter features.....................................................................................6–3
Functional description........................................................................................6–3
Data format........................................................................................................6–5
Receiver wake-up operation..............................................................................6–5
Idle line wake-up..........................................................................................6–6
Address mark wake-up ................................................................................6–6
Receive data in (RDI) ........................................................................................6–6
Start bit detection...............................................................................................6–6
Transmit data out (TDO)....................................................................................6–8
SCI synchronous transmission..........................................................................6–9
SCI registers....................................................................................................6–10
Serial communications data register (SCDR) ............................................6–10
Serial communications control register 1 (SCCR1) ...................................6–10
Serial communications control register 2 (SCCR2) ...................................6–14
Serial communications status register (SCSR)..........................................6–16
Baud rate register (BAUD) .........................................................................6–18
Baud rate selection..........................................................................................6–19
SCI during STOP mode...................................................................................6–21
SCI during WAIT mode....................................................................................6–21
TPG