PIC16F688-E/ML Microchip Technology, PIC16F688-E/ML Datasheet - Page 172

IC PIC MCU FLASH 4KX14 16QFN

PIC16F688-E/ML

Manufacturer Part Number
PIC16F688-E/ML
Description
IC PIC MCU FLASH 4KX14 16QFN
Manufacturer
Microchip Technology
Series
PIC® 16Fr

Specifications of PIC16F688-E/ML

Core Size
8-Bit
Program Memory Size
7KB (4K x 14)
Core Processor
PIC
Speed
20MHz
Connectivity
UART/USART
Peripherals
Brown-out Detect/Reset, POR, WDT
Number Of I /o
12
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 8x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
16-QFN
Controller Family/series
PIC16F
No. Of I/o's
12
Eeprom Memory Size
256Byte
Ram Memory Size
256Byte
Cpu Speed
20MHz
No. Of Timers
2
Processor Series
PIC16F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
256 B
Interface Type
EUSART, RS- 232, SCI, USB
Maximum Clock Frequency
20 MHz
Number Of Programmable I/os
12
Number Of Timers
2
Maximum Operating Temperature
+ 125 C
Mounting Style
SMD/SMT
3rd Party Development Tools
52715-96, 52716-328, 52717-734
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005, PG164120, ICE2000, DM163014, DM164120-4
Minimum Operating Temperature
- 40 C
On-chip Adc
10 bit, 8 Channel
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
AC164324 - MODULE SKT FOR MPLAB 8DFN/16QFNXLT16QFN1 - SOCKET TRANSITION 14DIP TO 16QFNAC162061 - HEADER INTRFC MPLAB ICD2 20PINAC162056 - HEADER INTERFACE ICD2 16F688
Lead Free Status / Rohs Status
 Details
PICmicro MID-RANGE MCU FAMILY
11.3
DS31011A-page 11-4
Instruction
PC
(Program
Counter)
Fetch
Instruction
Execute
TMR0
PC
(Program
Counter)
Instruction
Fetch
TMR0
Instruction
Executed
Operation
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4
T0
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4
T0
PC-1
PC-1
Timer mode is selected by clearing the T0CS bit (OPTION<5>). In timer mode, the Timer0 mod-
ule will increment every instruction cycle (without prescaler). If the TMR0 register is written, the
increment is inhibited for the following two instruction cycles
user can work around this by writing an adjusted value to the TMR0 register.
Counter mode is selected by setting the T0CS bit (OPTION<5>). In counter mode, Timer0 will
increment either on every rising or falling edge of the T0CKI pin. The incrementing edge is deter-
mined by the Timer0 Source Edge Select the T0SE bit (OPTION<4>). Clearing the T0SE bit
selects the rising edge. Restrictions on the external clock input are discussed in detail in Subsec-
tion
The prescaler is mutually exclusively shared between the Timer0 module and the Watchdog
Timer. The prescaler assignment is controlled in software by the PSA control bit (OPTION<3>).
Clearing the PSA bit will assign the prescaler to the Timer0 module. The prescaler is not readable
or writable. When the prescaler is assigned to the Timer0 module, prescale values of 1:2, 1:4,...,
1:256 are selectable. Subsection
Any write to the TMR0 register will cause a 2 instruction cycle (2T
TMR0 register has been written with the new value, TMR0 will not be incremented until the third
instruction cycle later
write to the TMR0 register will immediately update the TMR0 register and clear the prescaler. The
incrementing of Timer0 (TMR0 and Prescaler) will also be inhibited 2 instruction cycles (T
if the prescaler is configured as 2, then after a write to the TMR0 register TMR0 will not increment
for 4 Timer0 clocks
clocks later.
Figure 11-2: Timer0 Timing: Internal Clock/No Prescale
Figure 11-3: Timer0 Timing: Internal Clock/Prescale 1:2
MOVWF TMR0
11.5 “Using Timer0 with an External Clock”
MOVWF TMR0
T0+1
PC
T0+1
PC
MOVF TMR0,W
Write TMR0
executed
MOVF TMR0,W
T0+2
Write TMR0
executed
PC+1
(Figure
PC+1
(Figure
MOVF TMR0,W
11-3). After that, TMR0 will increment every prescaler number of
Read TMR0
reads NT0
11-2). When the prescaler is assigned to the Timer0 module, any
MOVF TMR0,W
NT0
Read TMR0
reads NT0
PC+2
11.6 “TMR0 Prescaler”
PC+2
MOVF TMR0,W
Read TMR0
reads NT0
MOVF TMR0,W
Read TMR0
reads NT0
NT0
PC+3
PC+3
NT0
.
MOVF TMR0,W
Read TMR0
reads NT0
MOVF TMR0,W
Read TMR0
reads NT0
NT0
PC+4
PC+4
details the operation of the prescaler.
(Figure 11-2
MOVF TMR0,W
Read TMR0
reads NT0
MOVF TMR0,W
1997 Microchip Technology Inc.
CY
Read TMR0
reads NT0 + 1
NT0+1
PC+5
) inhibit. That is, after the
PC+5
and
Figure
Read TMR0
reads NT0 + 1
NT0+1
Read TMR0
reads NT0 + 2
NT0+2
PC+6
PC+6
11-3). The
CY
). So
T0

Related parts for PIC16F688-E/ML