Rabbit RIO User’s Manual
Chapter 3. Block-Level Features 37
3.1 Overview............................................................................................................................................37
3.1.1 Simplified Block Diagram .........................................................................................................38
3.2 Internal Block Registers.....................................................................................................................39
3.3 Block Control.....................................................................................................................................40
3.4 Register Descriptions .........................................................................................................................41
3.4.1 Pointer and Indirect Registers ...................................................................................................41
3.4.2 Command Register ....................................................................................................................42
3.4.3 Mode Register ...........................................................................................................................43
3.4.4 Interrupt Enable and Status Registers ........................................................................................44
3.4.5 Counter Toggle Register ............................................................................................................46
3.4.6 Synch Control Register ..............................................................................................................47
3.4.7 Increment/In-Phase/Begin Control Register ..............................................................................48
3.4.8 Decrement/Quadrature/End Control Register ...........................................................................49
3.4.9 Status Control Registers ............................................................................................................50
3.4.10 Pin Control Registers ...............................................................................................................51
3.4.11 Match Registers .......................................................................................................................51
3.4.12 Count Limit Registers .............................................................................................................. 52
3.4.13 Count Begin Registers .............................................................................................................52
3.4.14 Count End Registers ................................................................................................................52
3.4.15 Count Value Registers .............................................................................................................53
Chapter 4. General-Purpose I/O 55
4.1 Overview............................................................................................................................................55
4.1.1 Block Diagram ...........................................................................................................................55
4.2 Dependencies .....................................................................................................................................55
4.3 Operation............................................................................................................................................56
4.3.1 Setup .......................................................................................................................................... 56
4.3.2 Example of Operation ................................................................................................................56
4.3.3 Pattern Mode .............................................................................................................................56
4.4 Register Descriptions .........................................................................................................................57
Chapter 5. Pulse-Width Modulator 59
5.1 Overview............................................................................................................................................59
5.1.1 Block Diagram ...........................................................................................................................59
5.2 Dependencies .....................................................................................................................................60
5.3 Operation............................................................................................................................................60
5.3.1 Setup .......................................................................................................................................... 60
5.3.2 Example .....................................................................................................................................61
5.4 Other Comments ................................................................................................................................62
5.4.1 General-Purpose I/O .................................................................................................................. 62
5.4.2 External Synchronization ..........................................................................................................62
5.4.3 Interrupts ....................................................................................................................................62
5.4.4 Higher Drive Current Operations ..............................................................................................62
Chapter 6. Variable-Phase Pulse-Width Modulator 63
6.1 Overview............................................................................................................................................63
6.1.1 Block Diagram ...........................................................................................................................63
6.2 Dependencies .....................................................................................................................................64
6.3 Operation............................................................................................................................................65
6.3.1 Setup .......................................................................................................................................... 65
6.3.2 Example of Operation ................................................................................................................66
6.4 Other Comments ................................................................................................................................67