dsPIC30F5015/5016
DS70149B-page 222 © 2006 Microchip Technology Inc.
Operation During CPU Sleep Mode .........................101
Output and Polarity Control ......................................100
Output Pin Co n tr o l ........... ............... .................100
Output Override .... ............................ .........................99
Complementary Output Mode ............................99
Synchronization .................................................99
Period .........................................................................96
Single -Pulse Operation ......................... .....................99
Special Event Trigger ...............................................101
Postscaler ........................................................101
Time Bas e .................................... ..............................95
Continuous Up/Down Counting Modes ..............95
Double Update Mode ...................... .. .... .. .. .. .......96
Free-Running Mode ...........................................95
Postscaler ..........................................................96
Prescaler ............................................................96
Single-Shot Mode ..............................................95
Update Lockout .................. .... .. .. .. ....... .. .. .... .. .. .. .......101
Q
Quadrature Encoder Interface (Q EI) . ............................ .....87
Interrupts .................................................................... 90
Logic ..........................................................................88
Operation During CPU Idle Mode .... ..........................89
Operation During CPU Sleep Mode ...........................89
Register Map ............................ ..................... .............91
Timer Operation During CPU Idle Mode ....................90
Timer Operation During CPU Sleep Mode . ................89
R
Reader Response ............................................................226
Reset ........................................................................133, 139
Reset Sequence ............................... .... .. ......... .. .... .. .... .......43
Reset Sources ...... ..................... ............................ ....43
Resets
BOR, Programmable ......................... .......................141
POR .........................................................................140
POR with Long Crystal Start-up Time ......................141
POR, Operating without FSCM and PWRT .............141
Revision History ...............................................................217
Run-Time Self-Programming (RTSP) ................................49
Control Reg i sters ......... .............. ..................... ...........50
NVMADR ...........................................................50
NVMADRU .........................................................50
NVMCON ........................................................... 50
NVMKEY ............................................................50
Operation ...................................................................50
S
Simple Capture Event Mode
Capture Bu ffer Operation ............................ ...............80
Capture Prescaler ................................. .....................79
Hall Sensor Mode .......................... ......... ...... .... .........80
Timer2 and Timer3 Selection Mode ...........................80
Simple Output Compare Match Mode ................................84
Simple PWM Mode ............................................................84
Input Pin Fault Protection ............................ .. .... .. .......84
Period .........................................................................85
Softwa re Simulator (MP L AB SIM) .... ........................... .....170
Softwa re Stack Pointe r, Frame Pointer ......... .....................16
CALL Stack Frame .....................................................31
SPI Module ...................................................................... 103
Framed SPI Support ................................................ 105
Operating Function Description ............................... 103
Operation During CPU Idle Mode ............................ 105
Operation During CPU Sleep Mode ......................... 105
SDOx Disabl e ...................... ..................... ............... 103
Slave Select Synchron i zation ..................... ............. 105
SPI1 Register Map ................................................... 106
SPI2 Register Map ................................................... 106
Word and Byte Communication ............................... 103
STATUS Regi ster .................... ........................... ............... 16
Symbols Used in Opcode Descriptions ........................... 162
System Integration ...........................................................133
Register Map ......... ........................... ..................... ..147
T
Timer1 Module ................................................................... 65
Gate Operation .......................................................... 66
Interrupt ..................................................................... 67
Operation During Sleep Mode ................................... 66
Prescaler ................................................................... 66
Real-Time Clock ........................................................ 67
Interrupts ........................................................... 67
Oscillato r Operation . ......... ........ ........ ................. 67
Register Map ......... ........................... ..................... .... 68
16-bit Asynchronous Counter Mode .......................... 65
16-bit Synchronous Counter Mode ............................ 65
16-bit Timer Mode ...................................................... 65
Timer2/3 Module ................................. .... .. .. .... .. ....... .. .... .. .. 69
ADC Event Trigger ..................................................... 72
Gate Operation .......................................................... 72
Interrupt ..................................................................... 72
Operation During Sleep Mode ................................... 72
Register Map ......... ........................... ..................... .... 73
Timer Prescaler ......................................................... 72
16-bit Mode ....... ....... .. .. .... .. .. ....... .. .... .. .. .... .. ....... .. .. .... 69
32-bit Synchronous Counter Mode ............................ 69
32-bit Timer Mode ...................................................... 69
Timer4/5 Module ................................. .... .. .. .... .. ....... .. .... .. .. 75
Register Map ......... ........................... ..................... .... 77
Timing Diagrams
Band Gap Start-up Time . ......................................... 189
Brown-o u t Re set .................. ............... ..................... 180
CAN Bit .................... ..................... ..................... ...... 128
CAN Module I/O .................................. .. .... .. ....... .... ..207
Center-Aligned PWM ................................................. 97
CLKOUT and I/O ..................................................... 187
Dead-Time ................................................................. 99
Edge-Aligned PWM .................................. ......... .... .... 96
External Clock .......................................................... 182
Input Capture (CAPx) .............................................. 193
I2C Bus Data (Master Mode) ................................... 203
I2C Bus Data (Slave Mode) ..................................... 205
I2C Bus Start/Stop Bits (Master Mode) .................... 203
I2C Bus Start/Stop Bits (Slave Mode) ...................... 205
Motor Control PWM Module .................................... 195
Motor Control PWM Module Fault ........................... 195
OC/PWM Module ..................................................... 194
Output Com p a re (OCx) ............. ..................... .......... 193
PWM Output ................................... ........................... 85
QEA/QEB Input Characteristics ...... .... .. .... .. ......... .. .. 196
QEI Module Index Pulse ............................. ....... .... .. 197
Reset, Watchdog Timer, Oscillator Start-up Timer
and Power-up Timer ........................................ 188
SPI Master Mode (CKE = 0) .................................... 198
SPI Master Mode (CKE = 1) .................................... 199