PIC16C712-04I/SO Microchip Technology, PIC16C712-04I/SO Datasheet - Page 5
![IC MCU OTP 1KX14 A/D PWM 18SOIC](/photos/6/76/67656/150-18-soic_sml.jpg)
PIC16C712-04I/SO
Manufacturer Part Number
PIC16C712-04I/SO
Description
IC MCU OTP 1KX14 A/D PWM 18SOIC
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Specifications of PIC16C712-04I/SO
Core Processor
PIC
Core Size
8-Bit
Speed
4MHz
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
13
Program Memory Size
1.75KB (1K x 14)
Program Memory Type
OTP
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 5.5 V
Data Converters
A/D 4x8b
Oscillator Type
External
Operating Temperature
-40°C ~ 85°C
Package / Case
18-SOIC (7.5mm Width)
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Connectivity
-
2.
Code Example:
**************************************************************************************
;
;
;
;
;
TMR1Capture
2003 Microchip Technology Inc.
Module: Timer1
When Timer1 is configured to operate as an
asynchronous counter, care must be taken that
there is no incoming pulse while the module is
being turned off. If an incoming pulse arrives while
Timer1 is being turned off (i.e., TMR1ON transi-
tions from 1 to 0), the value of registers TMR1L
and TMR1H will be unpredictable.
Work around
This solution involves changing Timer1 from
Asynchronous to Synchronous mode before turn-
ing off Timer1. No additional resources are
required for this solution.
Call this routine to stop Timer1 asynchronous counting
Timer1 is stopped after the timer is changed to synchronous mode
The captured timer value resides in TMR1H and TMR1L at the completion of this
routine.
bcf
bcf
bsf
return
T1CON,NOT_T1SYNC
T1CON,TMR1ON
T1CON,NOT_T1SYNC
; entry point
; set for synchronous mode
; stop timer
; restore asynchronous mode
; return to calling routine
Timer1 synchronization will start, effectively stop-
ping Timer1, one Q period after the Synchronous
mode is enabled, or one Q period later than would
have been realized by simply clearing the
TMR1ON bit. One additional count, in excess of
the counts accrued during this extra Q period, may
be accumulated before the TMR1ON bit is eventu-
ally cleared in the next instruction. The occurrence
of this additional count is dependent on the phase
relationship between OSC1, or the internal system
clock, and T1CKI.
PIC16C712/716
DS80072D-page 5