Information
2003 Microchip Technology Inc. DS80072D-page 1
PIC16C712/716
The PIC16C712/716 parts you have received conform
functionally to the Device Data Sheet (DS41106A),
except for the anomalies described below.
The problem here will be addressed in future revisions
of the PIC16C712/716 silicon.
1. Module: CCP
When using the PIC16C712/716 in the Compare
or PWM mode, the TCCP bit of the TRISCCP
register will not tristate the output on pin RB3, as
described in Figure 7-2 of the Device Data Sheet.
The TCCP bit of the TRISCCP register has no
effect on the output of pin RB3.
Work around
There is no way to tristate the output on pin RB3 in
the Compare or PWM mode. However, there are
steps you can do in firmware to stop the RB3 pin
from changing and leave it in a known state.
Examples are shown below.
EXAMPLE 1:
(Assumes that the T2CON and CCP1CON values are determined at assembly time and remain fixed.)
Code Example 1A:
;***********************************************************************
; Call these routines to turn the PWM off or on and ensure a Zero output on RB3
; when PWM is off.
;
; PWMreset - Clear T2CON Disabling Timer2 and Clearing Timer 2 Prescaler,
; then fill the TMR2 register with the CCPR1H value. This will cause
; a Reset or Zero value on RB3.
;
; PWMrestart - Restore the T2CON register with the appropriate value for your
; system needs. IT IS THE RESPONSIBILITY OF THE USER TO DETERMINE
; THE CORRECT VALUE FOR T2CON.
Assembly Code To Stop PWM Once Started:
PWMreset
bcf STATUS,RP0 ; Select Bank 0
clrf T2CON ; Clear T2CON, Timer2-Disable & Pre/Post Scalers = 1
movf CCPR1H,W ; Load CCPR1H value in Write register
movwf TMR2 ; Move CCPR1H value into TMR2 to cause Reset of RB3 pin
return
Note: The TCCP bit of the TRISCCP register
functions as described in Figure 7-2 of the
Device Data Sheet, when using the
MPLAB
®
ICE 2000 in-circuit emulator
Software License Agreement
The software supplied herewith by Microchip Technology Incorporated (the “Company”) is intended and supplied to you, the Com-
pany’s customer, for use solely and exclusively with products manufactured by the Company.
The software is owned by the Company and/or its supplier, and is protected under applicable copyright laws. All rights are reserved.
Any use in violation of the foregoing restrictions may subject the user to criminal sanctions under applicable laws, as well as to civil
liability for the breach of the terms and conditions of this license.
THIS SOFTWARE IS PROVIDED IN AN “AS IS” CONDITION. NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATU-
TORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICU-
LAR PURPOSE APPLY TO THIS SOFTWARE. THE COMPANY SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR
SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
PIC16C712/716 Rev. A Silicon/Data Sheet Errata