dsPIC30F5015/5016
DS70149D-page 224 © 2008 Microchip Technology Inc.
Single-Pulse Operation ............................................ 101
Special Event Trigger ............................................... 103
Postscaler ........................................................ 103
Time Base .................................................................. 97
Continuous Up/Down Counting Modes .............. 97
Double Update Mode ......................................... 98
Free-Running Mode ........................................... 97
Postscaler .......................................................... 98
Prescaler ............................................................ 98
Single-Shot Mode .............................................. 97
Update Lockout ........................................................ 103
Q
Quadrature Encoder Interface (QEI) .................................. 89
Interrupts .................................................................... 92
Logic .......................................................................... 90
Operation During CPU Idle Mode .............................. 91
Operation During CPU Sleep Mode ........................... 91
Register Map .............................................................. 93
Timer Operation During CPU Idle Mode .................... 92
Timer Operation During CPU Sleep Mode ................. 91
R
Reader Response ............................................................ 227
Reset ........................................................................ 135, 141
Reset Sequence ................................................................. 45
Reset Sources ........................................................... 45
Resets
BOR, Programmable ................................................ 143
POR ......................................................................... 142
POR with Long Crystal Start-up Time ...................... 143
POR, Operating without FSCM and PWRT ............. 143
Revision History ............................................................... 219
Run-Time Self-Programming (RTSP) ................................ 51
Control Registers ....................................................... 52
NVMADR ........................................................... 52
NVMADRU ......................................................... 52
NVMCON ........................................................... 52
NVMKEY ............................................................ 52
Operation ................................................................... 52
S
Simple Capture Event Mode
Capture Buffer Operation ........................................... 82
Capture Prescaler ...................................................... 81
Hall Sensor Mode ...................................................... 82
Timer2 and Timer3 Selection Mode ........................... 82
Simple Output Compare Match Mode ................................ 86
Simple PWM Mode ............................................................ 86
Input Pin Fault Protection ........................................... 86
Period ......................................................................... 87
Software Simulator (MPLAB SIM) .................................... 172
Software Stack Pointer, Frame Pointer .............................. 18
CALL Stack Frame ..................................................... 33
SPI Module ....................................................................... 105
Framed SPI Support ................................................ 107
Operating Function Description ............................... 105
Operation During CPU Idle Mode ............................ 107
Operation During CPU Sleep Mode ......................... 107
SDOx Disable .......................................................... 105
Slave Select Synchronization .................................. 107
SPI1 Register Map ................................................... 108
SPI2 Register Map ................................................... 108
Word and Byte Communication ............................... 105
STATUS Register ............................................................... 18
Symbols Used in Opcode Descriptions ............................ 164
System Integration ........................................................... 135
Register Map ........................................................... 149
T
Timer1 Module ................................................................... 67
Gate Operation .......................................................... 68
Interrupt ..................................................................... 69
Operation During Sleep Mode ................................... 68
Prescaler ................................................................... 68
Real-Time Clock ........................................................ 69
Interrupts ........................................................... 69
Oscillator Operation ........................................... 69
Register Map ............................................................. 70
16-bit Asynchronous Counter Mode .......................... 67
16-bit Synchronous Counter Mode ............................ 67
16-bit Timer Mode ...................................................... 67
Timer2/3 Module ................................................................ 71
ADC Event Trigger ..................................................... 74
Gate Operation .......................................................... 74
Interrupt ..................................................................... 74
Operation During Sleep Mode ................................... 74
Register Map ............................................................. 75
Timer Prescaler ......................................................... 74
16-bit Mode ................................................................ 71
32-bit Synchronous Counter Mode ............................ 71
32-bit Timer Mode ...................................................... 71
Timer4/5 Module ................................................................ 77
Register Map ............................................................. 79
Timing Diagrams
Band Gap Start-up Time .......................................... 191
Brown-out Reset ...................................................... 182
CAN Bit .................................................................... 130
CAN Module I/O ....................................................... 209
Center-Aligned PWM ................................................. 99
CLKOUT and I/O ..................................................... 189
Dead-Time ............................................................... 101
Edge-Aligned PWM ................................................... 98
External Clock .......................................................... 184
Input Capture (CAPx) .............................................. 195
I2C Bus Data (Master Mode) ................................... 205
I2C Bus Data (Slave Mode) ..................................... 207
I2C Bus Start/Stop Bits (Master Mode) .................... 205
I2C Bus Start/Stop Bits (Slave Mode) ...................... 207
Motor Control PWM Module .................................... 197
Motor Control PWM Module Fault ........................... 197
OC/PWM Module ..................................................... 196
Output Compare (OCx) ............................................ 195
PWM Output .............................................................. 87
QEA/QEB Input Characteristics ............................... 198
QEI Module Index Pulse .......................................... 199
Reset, Watchdog Timer, Oscillator Start-up Timer
and Power-up Timer ........................................ 190
SPI Master Mode (CKE = 0) .................................... 200
SPI Master Mode (CKE = 1) .................................... 201
SPI Slave Mode (CKE = 0) ...................................... 202
SPI Slave Mode (CKE = 1) ...................................... 203
Time-out Sequence on Power-up
(MCLR Not Tied to VDD), Case 1 .................... 142
Time-out Sequence on Power-up
(MCLR Not Tied to VDD), Case 2 .................... 143
Time-out Sequence on Power-up
(MCLR Tied to VDD) ........................................ 142
TimerQ (QEI Module) External Clock ...................... 194
Timer1, 2, 3, 4, 5 External Clock ............................. 192
10-bit High-Speed A/D Conversion (CHPS = 01,
SIMSAM = 0, ASAM = 0, SSRC = 000) ........... 212