English
Language : 

PIC16F1938 Datasheet, PDF (446/452 Pages) Microchip Technology – 28/40/44-Pin Flash-Based, 8-Bit CMOS Microcontrollers
PIC16(L)F1938/9
RESET .............................................................................. 375
Reset................................................................................... 81
Reset Instruction ................................................................. 84
Resets ................................................................................. 81
Associated Registers .................................................. 88
Revision History ................................................................ 437
S
Shoot-through Current ...................................................... 226
Software Simulator (MPLAB SIM)..................................... 415
SPBRG Register ........................................................... 38, 39
SPBRGH ........................................................................... 301
SPBRGL............................................................................ 301
Special Event Trigger........................................................ 157
Special Function Registers (SFRs) ..................................... 36
SPI Mode (MSSP)
Associated Registers ................................................ 247
SPI Clock .................................................................. 243
SR Latch ........................................................................... 183
Associated registers w/ SR Latch ............................. 186
SRCON0 Register............................................................. 185
SRCON1 Register............................................................. 186
SSPADD Register ....................................................... 40, 288
SSPBUF Register ............................................................... 40
SSPCON Register............................................................... 40
SSPCON1 Register........................................................... 285
SSPCON2 Register........................................................... 286
SSPCON3 Register........................................................... 287
SSPMSK Register............................................................. 288
SSPOV.............................................................................. 274
SSPOV Status Flag........................................................... 274
SSPSTAT Register ..................................................... 40, 284
R/W Bit ...................................................................... 253
Stack ................................................................................... 51
Accessing.................................................................... 51
Reset........................................................................... 53
Stack Overflow/Underflow................................................... 84
STATUS Register................................................................ 28
SUBWFB........................................................................... 377
T
T1CON Register.......................................................... 36, 199
T1GCON Register............................................................. 200
T2CON Register............................................................ 36, 44
Temperature Indicator Module .......................................... 167
Thermal Considerations (PIC16F/LF1938/39) .................. 392
Timer0 ............................................................................... 187
Associated Registers ................................................ 189
Operation .................................................................. 187
Specifications ............................................................ 400
Timer1 ............................................................................... 191
Associated registers.................................................. 201
Asynchronous Counter Mode ................................... 193
Reading and Writing ......................................... 193
Clock Source Selection ............................................. 192
Interrupt..................................................................... 195
Operation .................................................................. 192
Operation During Sleep ............................................ 195
Oscillator ................................................................... 193
Prescaler ................................................................... 193
Specifications ............................................................ 400
Timer1 Gate
Selecting Source............................................... 193
TMR1H Register ....................................................... 191
TMR1L Register ........................................................ 191
Timer2
Associated registers ................................................. 206
Timer2/4/6......................................................................... 203
Associated registers ................................................. 206
Timers
Timer1
T1CON ............................................................. 199
T1GCON........................................................... 200
Timer2/4/6
TXCON ............................................................. 205
Timing Diagrams
A/D Conversion......................................................... 402
A/D Conversion (Sleep Mode) .................................. 402
Acknowledge Sequence ........................................... 276
Asynchronous Reception.......................................... 296
Asynchronous Transmission..................................... 292
Asynchronous Transmission (Back to Back) ............ 292
Auto Wake-up Bit (WUE) During Normal Operation . 308
Auto Wake-up Bit (WUE) During Sleep .................... 308
Automatic Baud Rate Calibration.............................. 306
Baud Rate Generator with Clock Arbitration............. 269
BRG Reset Due to SDA Arbitration During
Start Condition.................................................. 279
Brown-out Reset (BOR)............................................ 398
Brown-out Reset Situations ........................................ 83
Bus Collision During a Repeated Start Condition
(Case 1)............................................................ 280
Bus Collision During a Repeated Start Condition
(Case 2)............................................................ 280
Bus Collision During a Start Condition (SCL = 0) ..... 279
Bus Collision During a Stop Condition (Case 1) ....... 281
Bus Collision During a Stop Condition (Case 2) ....... 281
Bus Collision During Start Condition (SDA only) ...... 278
Bus Collision for Transmit and Acknowledge ........... 277
CLKOUT and I/O ...................................................... 396
Clock Synchronization .............................................. 266
Clock Timing ............................................................. 394
Comparator Output ................................................... 173
Enhanced Capture/Compare/PWM (ECCP)............. 400
Fail-Safe Clock Monitor (FSCM)................................. 76
First Start Bit Timing ................................................. 270
Full-Bridge PWM Output........................................... 221
Half-Bridge PWM Output .................................. 219, 226
I2C Bus Data............................................................. 408
I2C Bus Start/Stop Bits ............................................. 407
I2C Master Mode (7 or 10-Bit Transmission) ............ 273
I2C Master Mode (7-Bit Reception)........................... 275
I2C Stop Condition Receive or Transmit Mode......... 276
INT Pin Interrupt ......................................................... 92
Internal Oscillator Switch Timing ................................ 71
LCD Interrupt Timing in Quarter-Duty Cycle Drive ... 356
LCD Sleep Entry/Exit when SLPEN = 1 or CS = 00 . 358
PWM Auto-shutdown ................................................ 225
Firmware Restart .............................................. 224
PWM Direction Change ............................................ 222
PWM Direction Change at Near 100% Duty Cycle... 223
PWM Output (Active-High) ....................................... 217
PWM Output (Active-Low) ........................................ 218
Repeat Start Condition ............................................. 271
Reset Start-up Sequence ........................................... 85
Reset, WDT, OST and Power-up Timer ................... 397
Send Break Character Sequence ............................. 309
SPI Master Mode (CKE = 1, SMP = 1) ..................... 405
SPI Mode (Master Mode).......................................... 243
SPI Slave Mode (CKE = 0) ....................................... 406
SPI Slave Mode (CKE = 1) ....................................... 406
DS41574A-page 446
Preliminary
 2011 Microchip Technology Inc.