Table of Contents
Chapter 19. Slave Port 167
19.1 Overview.........................................................................................................................................167
19.1.1 Block Diagram .......................................................................................................................168
19.1.2 Registers .................................................................................................................................168
19.2 Dependencies ..................................................................................................................................169
19.2.1 I/O Pins ..................................................................................................................................169
19.2.2 Clocks .....................................................................................................................................169
19.2.3 Interrupts ................................................................................................................................169
19.3 Operation ........................................................................................................................................170
19.3.1 Master Setup ..........................................................................................................................171
19.3.2 Slave Setup .............................................................................................................................171
19.3.3 Master/Slave Communication ................................................................................................172
19.3.4 Slave/Master Communication ................................................................................................172
19.3.5 Handling Interrupts ................................................................................................................172
19.3.6 Example ISR ..........................................................................................................................172
19.3.7 Other Configurations ..............................................................................................................173
19.3.8 Timing Diagrams ...................................................................................................................174
19.4 Register Descriptions......................................................................................................................176
Chapter 20. Input Capture 179
20.1 Overview.........................................................................................................................................179
20.1.1 Block Diagram .......................................................................................................................180
20.1.2 Registers .................................................................................................................................180
20.2 Dependencies ..................................................................................................................................181
20.2.1 I/O Pins ..................................................................................................................................181
20.2.2 Clocks .....................................................................................................................................181
20.2.3 Other Registers .......................................................................................................................181
20.2.4 Interrupts ................................................................................................................................181
20.3 Operation ........................................................................................................................................182
20.3.1 Input-Capture Channel ...........................................................................................................182
20.3.2 Handling Interrupts ................................................................................................................182
20.3.3 Example ISR ..........................................................................................................................182
20.3.4 Example Applications ............................................................................................................183
20.4 Register Descriptions......................................................................................................................184
Chapter 21. Quadrature Decoder 187
21.1 Overview.........................................................................................................................................187
21.1.1 Block Diagram .......................................................................................................................189
21.1.2 Registers .................................................................................................................................189
21.2 Dependencies ..................................................................................................................................190
21.2.1 I/O Pins ..................................................................................................................................190
21.2.2 Clocks .....................................................................................................................................190
21.2.3 Other Registers .......................................................................................................................190
21.2.4 Interrupts ................................................................................................................................190
21.3 Operation ........................................................................................................................................191
21.3.1 Handling Interrupts ................................................................................................................191
21.3.2 Example ISR ..........................................................................................................................191
21.4 Register Descriptions......................................................................................................................192
Chapter 22. Pulse Width Modulator 195
22.1 Overview.........................................................................................................................................195
22.1.1 Block Diagram .......................................................................................................................197
22.1.2 Registers .................................................................................................................................197
22.2 Dependencies ..................................................................................................................................198
22.2.1 I/O Pins ..................................................................................................................................198
22.2.2 Clocks .....................................................................................................................................198
22.2.3 Other Registers .......................................................................................................................198
22.2.4 Interrupts ................................................................................................................................198
22.3 Operation ........................................................................................................................................199