PIC16F689-E/ML Microchip Technology, PIC16F689-E/ML Datasheet - Page 301
![IC,MICROCONTROLLER,8-BIT,PIC CPU,CMOS,LLCC,20PIN,PLASTIC](/photos/6/64/66481/c04-126_ml_sml.jpg)
PIC16F689-E/ML
Manufacturer Part Number
PIC16F689-E/ML
Description
IC,MICROCONTROLLER,8-BIT,PIC CPU,CMOS,LLCC,20PIN,PLASTIC
Manufacturer
Microchip Technology
Series
PIC® 16Fr
Datasheets
1.PIC16F616T-ISL.pdf
(8 pages)
2.PIC16F690DM-PCTLHS.pdf
(306 pages)
3.PIC16F677-IP.pdf
(2 pages)
4.PIC16F677-IP.pdf
(16 pages)
Specifications of PIC16F689-E/ML
Rohs Compliant
YES
Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, WDT
Number Of I /o
18
Program Memory Size
7KB (4K x 14)
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
256 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Data Converters
A/D 12x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
20-VQFN Exposed Pad, 20-HVQFN, 20-SQFN, 20-DHVQFN
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
AC164324 - MODULE SKT FOR MPLAB 8DFN/16QFNAC162061 - HEADER INTRFC MPLAB ICD2 20PIN
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Reset................................................................................. 200
Revision History ................................................................ 293
S
S (Start) bit ........................................................................ 180
Shoot-through Current ...................................................... 144
Slave Select Synchronization ........................................... 185
Sleep ................................................................................. 214
SMP bit ............................................................................. 180
Software Simulator (MPLAB SIM)..................................... 228
SPBRG ............................................................................. 163
SPBRGH ........................................................................... 163
Special Event Trigger........................................................ 111
Special Function Registers ................................................. 26
SPI Mode .................................................................. 179, 185
© 2008 Microchip Technology Inc.
IOCB (Interrupt-on-Change PORTB) .......................... 70
OPTION_REG (OPTION) ..................................... 37, 83
OSCCON (Oscillator Control) ..................................... 48
OSCTUNE (Oscillator Tuning) .................................... 52
PCON (Power Control Register) ................................. 43
PCON (Power Control) ............................................. 203
PIE1 (Peripheral Interrupt Enable 1)........................... 39
PIE2 (Peripheral Interrupt Enable 2)........................... 40
PIR1 (Peripheral Interrupt Register 1) ........................ 41
PIR2 (Peripheral Interrupt Request 2) ........................ 42
PORTA........................................................................ 59
PORTB........................................................................ 69
PORTC ....................................................................... 76
PSTRCON (Pulse Steering Control) ......................... 146
PWMxCON (Enhanced PWM Control) ..................... 145
RCSTA (Receive Status and Control)....................... 161
Reset Values............................................................. 205
Reset Values (special registers) ............................... 207
Special Function Register Map
Special Function Registers ......................................... 26
Special Register Summary
SRCON (SR Latch Control) ...................................... 103
SSPCON (Sync Serial Port Control) Register........... 181
SSPMSK (SSP Mask)............................................... 191
SSPSTAT (Sync Serial Port Status) Register........... 180
STATUS...................................................................... 36
T1CON........................................................................ 88
T2CON........................................................................ 92
TRISA (Tri-State PORTA)........................................... 59
TRISB (Tri-State PORTB)........................................... 70
TRISC (Tri-State PORTC) .......................................... 76
TXSTA (Transmit Status and Control) ...................... 160
VRCON (Voltage Reference Control) ....................... 106
WDTCON (Watchdog Timer Control) ....................... 213
WPUA (Weak Pull-Up PORTA) .................................. 62
WPUB (Weak Pull-up PORTB) ................................... 70
Wake-up.................................................................... 214
Wake-up Using Interrupts ......................................... 214
Associated Registers ................................................ 187
Bus Mode Compatibility ............................................ 187
Effects of a Reset...................................................... 187
Enabling SPI I/O ....................................................... 183
Master Mode ............................................................. 184
PIC16F677.......................................................... 28
PIC16F685.................................................... 27, 29
PIC16F687/689................................................... 30
PIC16F690.......................................................... 31
Bank 0................................................................. 32
Bank 1................................................................. 33
Bank 2................................................................. 34
Bank 3................................................................. 35
PIC16F631/677/685/687/689/690
SRCON Register .............................................................. 103
SSP
SSP I
SSP Module
SSPCON Register ............................................................ 181
SSPEN bit......................................................................... 181
SSPM bits ......................................................................... 181
SSPMSK Register ............................................................ 191
SSPOV bit ........................................................................ 181
SSPSTAT Register ........................................................... 180
STATUS Register ............................................................... 36
Synchronous Serial Port Enable bit (SSPEN) .................. 181
Synchronous Serial Port Mode Select bits (SSPM).......... 181
Synchronous Serial Port. See SSP
T
T1CON Register ................................................................. 88
T2CON Register ................................................................. 92
Thermal Considerations.................................................... 239
Time-out Sequence .......................................................... 203
Timer0 ................................................................................ 81
Timer1 ................................................................................ 84
Timer2
Timers
Master/Slave Connection ......................................... 183
Serial Clock (SCK pin) .............................................. 179
Serial Data In (SDI pin)............................................. 179
Serial Data Out (SDO pin) ........................................ 179
Slave Select.............................................................. 179
Slave Select Synchronization ................................... 185
Sleep Operation........................................................ 187
SPI Clock.................................................................. 184
Typical Connection ................................................... 183
Overview
SPI Master/Slave Connection................................... 183
Slave Mode............................................................... 188
Clock Synchronization and the CKP Bit ................... 195
SPI Master Mode...................................................... 184
SPI Slave Mode........................................................ 185
SSPBUF ................................................................... 184
SSPSR ..................................................................... 184
Associated Registers.................................................. 83
External Clock ............................................................ 82
Interrupt ...................................................................... 83
Operation.............................................................. 81, 84
Specifications ........................................................... 246
T0CKI ......................................................................... 82
Associated registers ................................................... 89
Asynchronous Counter Mode ..................................... 85
Interrupt ...................................................................... 86
Modes of Operation .................................................... 84
Operation During Sleep .............................................. 86
Oscillator..................................................................... 85
Prescaler .................................................................... 85
Specifications ........................................................... 246
Timer1 Gate
TMR1H Register......................................................... 84
TMR1L Register ......................................................... 84
Associated registers ................................................... 92
Timer1
Timer2
2
C Operation ........................................................... 188
Reading and Writing ........................................... 85
Inverting Gate ..................................................... 86
Selecting Source ........................................ 85, 101
Synchronizing COUT w/Timer1 ........................ 101
T1CON ............................................................... 88
DS41262E-page 299