PIC16F627A-E/SO Microchip Technology, PIC16F627A-E/SO Datasheet - Page 52
![IC MCU FLASH 1KX14 EEPROM 18SOIC](/photos/6/76/67656/150-18-soic_sml.jpg)
PIC16F627A-E/SO
Manufacturer Part Number
PIC16F627A-E/SO
Description
IC MCU FLASH 1KX14 EEPROM 18SOIC
Manufacturer
Microchip Technology
Series
PIC® 16Fr
Datasheets
1.PIC16F616T-ISL.pdf
(8 pages)
2.PIC16F627A-IP.pdf
(180 pages)
3.PIC16F627A-IP.pdf
(8 pages)
4.PIC16F627A-IP.pdf
(22 pages)
5.PIC16F627A-ISO.pdf
(168 pages)
Specifications of PIC16F627A-E/SO
Program Memory Type
FLASH
Program Memory Size
1.75KB (1K x 14)
Package / Case
18-SOIC (7.5mm Width)
Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Connectivity
UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
16
Eeprom Size
128 x 8
Ram Size
224 x 8
Voltage - Supply (vcc/vdd)
3 V ~ 5.5 V
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Processor Series
PIC16F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
224 B
Interface Type
SCI/USART
Maximum Clock Frequency
20 MHz
Number Of Programmable I/os
16
Number Of Timers
3
Operating Supply Voltage
2 V to 5.5 V
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
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
I3DBF648 - BOARD DAUGHTER ICEPIC3AC162053 - HEADER INTERFACE ICD,ICD2 18DIP
Data Converters
-
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
PIC16F627A/628A/648A
7.3
If control bit T1SYNC (T1CON<2>) is set, the external
clock input is not synchronized. The timer continues to
increment asynchronous to the internal phase clocks.
The timer will continue to run during Sleep and can
generate an interrupt on overflow, which will wake-up
the processor. However, special precautions in soft-
ware are needed to read/write the timer (Section 7.3.2
"Reading and Writing Timer1 in Asynchronous
Counter Mode").
7.3.1
If control bit T1SYNC is set, the timer will increment
completely asynchronously. The input clock must meet
certain minimum high and low time requirements. Refer
to Table 17-8 in the Electrical Specifications Section,
timing parameters 45, 46, and 47.
7.3.2
Reading the TMR1H or TMR1L register while the timer
is running, from an external asynchronous clock, will
produce a valid read (taken care of in hardware).
However, the user should keep in mind that reading the
16-bit timer in two 8-bit values itself poses certain
problems since the timer may overflow between the
reads.
For writes, it is recommended that the user simply stop
the timer and write the desired values. A write
contention may occur by writing to the timer registers
while the register is incrementing. This may produce an
unpredictable value in the timer register.
Reading the 16-bit value requires some care.
Example 7-1 is an example routine to read the 16-bit
timer value. This is useful if the timer cannot be
stopped.
DS40044B-page 50
Note:
Timer1 Operation in
Asynchronous Counter Mode
In Asynchronous Counter mode, Timer1
cannot be used as a time-base for capture
or compare operations.
EXTERNAL CLOCK INPUT TIMING
WITH UNSYNCHRONIZED CLOCK
READING AND WRITING TIMER1 IN
ASYNCHRONOUS COUNTER
MODE
Preliminary
EXAMPLE 7-1:
; All interrupts are disabled
;
; TMR1L may have rolled over between the
; read of the high and low bytes. Reading
; the high and low bytes now will read a good
; value.
;
; Re-enable the Interrupts (if required)
CONTINUE
MOVF
MOVWF
MOVF
MOVWF
MOVF
SUBWF
BTFSC
GOTO
MOVF
MOVWF
MOVF
MOVWF
TMR1H, W
TMPH
TMR1L, W
TMPL
TMR1H, W
TMPH, W
STATUS,Z
CONTINUE
TMR1H, W
TMPH
TMR1L, W
TMPL
READING A 16-BIT FREE-
RUNNING TIMER
2004 Microchip Technology Inc.
;Read high byte
;
;Read low byte
;
;Read high byte
;Sub 1st read with
;2nd read
;Is result = 0
;Good 16-bit read
;Read high byte
;
;Read low byte
;
;Continue with your
;code