MCV 14 A
MCV 14 A
MCV 14 A
Data Sheet
14-Pin, 8-Bit Flash Microcontroller
Preliminary
DS41338B
Note the following details of the code protection feature on Microchip devices:
Microchip products meet the specification contained in their particular Microchip Data Sheet.
Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchips Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
Microchip is willing to work with the customer who is concerned about the integrity of their code.
Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as unbreakable.
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchips code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
Trademarks
The Microchip name and logo, the Microchip logo, dsPIC,
KEELOQ, KEELOQ logo, MPLAB, PIC, PICmicro, PICSTART,
rfPIC and UNI/O are registered trademarks of Microchip
Technology Incorporated in the U.S.A. and other countries.
FilterLab, Hampshire, HI-TECH C, Linear Active Thermistor,
MXDEV, MXLAB, SEEVAL and The Embedded Control
Solutions Company are registered trademarks of Microchip
Technology Incorporated in the U.S.A.
Analog-for-the-Digital Age, Application Maestro, CodeGuard,
dsPICDEM, dsPICDEM.net, dsPICworks, dsSPEAK, ECAN,
ECONOMONITOR, FanSense, HI-TIDE, In-Circuit Serial
Programming, ICSP, ICEPIC, Mindi, MiWi, MPASM, MPLAB
Certified logo, MPLIB, MPLINK, mTouch, nanoWatt XLP,
Omniscient Code Generation, PICC, PICC-18, PICkit,
PICDEM, PICDEM.net, PICtail, PIC32 logo, REAL ICE, rfLAB,
Select Mode, Total Endurance, TSHARC, WiperLock and
ZENA are trademarks of Microchip Technology Incorporated
in the U.S.A. and other countries.
SQTP is a service mark of Microchip Technology Incorporated
in the U.S.A.
All other trademarks mentioned herein are property of their
respective companies.
2009, Microchip Technology Incorporated, Printed in the
U.S.A., All Rights Reserved.
Printed on recycled paper.
DS41338B-page ii
Preliminary
MCV14A
14-Pin, 8-Bit Flash Microcontroller
High-Performance RISC CPU:
Standby current:
- 100 nA @ 2.0V, typical
Operating current:
- 15 A @ 32 kHz, 2.0V, typical
- 170 A @ 4 MHz, 2.0V, typical
Watchdog Timer current:
- 1 A @ 2.0V, typical
- 7 A @ 5.0V, typical
High Endurance Program and Flash Data Memory
cells
- 100,000 write Program Memory endurance
- 1,000,000 write Flash Data Memory endurance
- Program and Flash Data retention: >40 years
Fully static design
Wide operating voltage range: 2.0V to 5.5V
- Wide temperature range
- Industrial: -40C to +85C
12 I/O Pins
- 11 I/O pins with individual direction control
- 1 input-only pin
- High current sink/source for direct LED drive
- Wake-up on change
- Weak pull-ups
8-bit Real-time Clock/Counter (TMR0) with 8-bit
Programmable Prescaler
Two Analog Comparators
- Comparator inputs and output accessible
externally
- One comparator with 0.6V fixed on-chip
absolute voltage reference (VREF)
- One comparator with programmable on-chip
voltage reference (VREF)
Analog-to-Digital (A/D) Converter
- 8-bit resolution
- 3-channel external programmable inputs
- 1-channel internal input to internal absolute
0.6 voltage reference
Data Memory
Device
MCV14A
Flash (words)
SRAM (bytes)
Flash
(bytes)
1024
67
64
I/O
Comparators
Timers 8-bit
8-bit A/D
Channels
12
Preliminary
DS41338B-page 1
MCV14A
14-PIN PDIP AND SOIC DIAGRAM
VDD
RB5/OSC1/CLKIN
2
3
RB4/OSC2/CLKOUT
RB3/MCLR/VPP
RC5/T0CKI
4
5
RC4/C2OUT
RC3
DS41338B-page 2
MCV14A
FIGURE 1:
14
13
VSS
12
RB1/C1IN-/AN1/ICSPCLK
11
RB2/C1OUT/AN2
10
RC0/C2IN+
RC1/C2IN-
RC2/CVREF
Preliminary
RB0/C1IN+/AN0/ICSPDAT
MCV14A
Table of Contents
1.0 General Description..................................................................................................................................................................... 5
2.0 Architectural Overview ................................................................................................................................................................ 9
3.0 Memory Organization ................................................................................................................................................................ 11
4.0 Flash Data Memory ................................................................................................................................................................... 19
5.0 I/O Port ...................................................................................................................................................................................... 23
6.0 Timer0 Module and TMR0 Register .......................................................................................................................................... 29
7.0 Special Features of the CPU..................................................................................................................................................... 35
8.0 Analog-to-Digital (A/D) Converter.............................................................................................................................................. 49
9.0 Comparator(s) ........................................................................................................................................................................... 53
10.0 Comparator Voltage Reference Module.................................................................................................................................... 59
11.0 Electrical Characteristics ........................................................................................................................................................... 61
12.0 Packaging Information............................................................................................................................................................... 75
The Microchip Web Site ...................................................................................................................................................................... 97
Index ................................................................................................................................................................................................... 79
Product Identification System ............................................................................................................................................................. 81
Errata
An errata sheet, describing minor operational differences from the data sheet and recommended workarounds, may exist for current
devices. As device/documentation issues become known to us, we will publish an errata sheet. The errata will specify the revision
of silicon and revision of document to which it applies.
To determine if an errata sheet exists for a particular device, please check with one of the following:
Microchips Worldwide Web site; http://www.microchip.com
Your local Microchip sales office (see last page)
The Microchip Corporate Literature Center; U.S. FAX: (480) 792-7277
When contacting a sales office or the literature center, please specify which device, revision of silicon and data sheet (include literature number) you are using.
Preliminary
DS41338B-page 3
MCV14A
NOTES:
DS41338B-page 4
Preliminary
MCV14A
1.0
GENERAL DESCRIPTION
1.1
Applications
TABLE 1-1:
Clock
Memory
67
64
Timer Module(s)
TMR0
20
1024
Yes
I/O Pins
11
Input Pins
Internal Pull-ups
Yes
Yes
Number of Instructions
33
Packages
The MCV14A device has Power-on Reset, selectable Watchdog Timer, selectable code-protect, high I/O current capability and
precision internal oscillator.
The MCV14A device uses serial programming with data pin RB0 and clock pin RB1.
Preliminary
DS41338B-page 5
MCV14A
NOTES:
DS41338B-page 6
Preliminary
MCV14A
2.0
ARCHITECTURAL OVERVIEW
TABLE 2-1:
MCV14A MEMORY
Program
Memory
Data Memory
Device
MCV14A
Flash
(words)
SRAM
(bytes)
Flash
(bytes)
1024
67
64
Preliminary
DS41338B-page 7
MCV14A
FIGURE 2-1:
11
Flash Program
Memory
1K x 12
Flash Data
Memory
64x8
Program
Bus
Data Bus
Program Counter
PORTB
RB0/ICSPDAT
RB1/ICSPCLK
RB2
RB3/MCLR/VPP
RB4/OSC2/CLKOUT
RB5/OSC1/CLKIN
RAM
67
bytes
File
Registers
STACK1
STACK2
12
PORTC
Addr MUX
Instruction Reg
Direct Addr
5-7
RC0
RC1
RC2
RC3
RC4
RC5/T0CKI
Indirect
Addr
FSR Reg
STATUS Reg
8
Comparator 1
MUX
Device Reset
Timer
OSC1/CLKIN
OSC2/CLKOUT
Instruction
Decode and
Control
Power-on
Reset
Timing
Generation
Watchdog
Timer
Internal RC
Clock
C1IN+
C1INC1OUT
VREF
ALU
Comparator 2
8
W Reg
C2IN+
C2INC2OUT
CVREF
CVREF
CVREF
Timer0
MCLR
VDD, VSS
8-bit ADC
AN0
AN1
AN2
VREF
DS41338B-page 8
Preliminary
MCV14A
TABLE 2-2:
Name
RB0//C1IN+/AN0/
ICSPDAT
RB1/C1IN-/AN1/
ICSPCLK
RB2/C1OUT/AN2
RB3/MCLR/VPP
RB4/OSC2/CLKOUT
RB5/OSC1/CLKIN
RC0/C2IN+
RC1/C2INRC2/CVREF
RC3
RC4/C2OUT
RC5/T0CKI
Function
Input
Type
RB0
TTL
C1IN+
AN
Output
Type
Description
Comparator 1 input.
AN0
AN
ICSPDAT
ST
RB1
TTL
C1IN-
AN
Comparator 1 input.
AN1
AN
ICSPCLK
ST
RB2
TTL
C1OUT
AN2
AN
RB3
TTL
MCLR
ST
VPP
HV
RB4
TTL
OSC2
XTAL
CLKOUT
RB5
TTL
OSC1
XTAL
CLKIN
ST
RC0
TTL
C2IN+
AN
RC1
TTL
C2IN-
AN
RC2
TTL
CVREF
RC3
TTL
Comparator 2 input.
Comparator 2 input.
RC4
TTL
C2OUT
RC5
TTL
T0CKI
ST
VDD
VDD
VSS
VSS
Legend: I = Input, O = Output, I/O = Input/Output, P = Power, = Not used, TTL = TTL input,
ST = Schmitt Trigger input, HV = High Voltage
Preliminary
DS41338B-page 9
MCV14A
2.1
Clocking Scheme/Instruction
Cycle
2.2
Instruction Flow/Pipelining
FIGURE 2-2:
CLOCK/INSTRUCTION CYCLE
Q1
Q2
Q3
Q4
Q1
Q2
Q3
Q4
Q1
Q2
Q3
Q4
OSC1
Q1
Q2
Internal
Phase
Clock
Q3
Q4
PC
PC
PC + 1
EXAMPLE 2-1:
PC + 2
1. MOVLW 03H
Fetch 1
2. MOVWF PORTB
3. CALL
SUB_1
4. BSF
PORTB, BIT1
Execute 1
Fetch 2
Execute 2
Fetch 3
Execute 3
Fetch 4
Flush
Fetch SUB_1 Execute SUB_1
All instructions are single cycle, except for any program branches. These take two cycles, since the fetch instruction
is flushed from the pipeline, while the new instruction is being fetched and then executed.
DS41338B-page 10
Preliminary
MCV14A
MEMORY ORGANIZATION
3.1
Data Memory
Space
User Memory
Space
FIGURE 3-1:
MEMORY MAP
On-chip User
Program
Memory (Page 0)
On-chip User
Program
Memory (Page 1)
Reset Vector
000h
1FFh
200h
3FEh
3FFh
400h
Configuration Memory
Space
3.0
43Fh
440h
443h
444h
447h
448h
Reserved
49Fh
4A0h
Unimplemented
7FEh
Configuration Word
7FFh
Preliminary
DS41338B-page 11
MCV14A
3.2
3.2.1
3.2.2
FSR<6:5>
00
01
20h
File Address
10
40h
11
60h
00h
INDF(1)
INDF(1)
INDF(1)
INDF(1)
01h
TMR0
EECON
TMR0
EECON
02h
PCL
PCL
PCL
PCL
03h
STATUS
STATUS
STATUS
STATUS
04h
FSR
FSR
FSR
FSR
05h
OSCCAL
EEDATA
OSCCAL
EEDATA
06h
PORTB
EEADR
PORTB
EEADR
07h
PORTC
PORTC
PORTC
PORTC
08h
CM1CON0
CM1CON0
CM1CON0
CM1CON0
09h
ADCON0
ADCON0
ADCON0
ADCON0
0Ah
0Bh
ADRES
CM2CON0
ADRES
CM2CON0
ADRES
CM2CON0
ADRES
CM2CON0
0Ch
VRCON
VRCON
VRCON
VRCON
0Dh
General
Purpose
Registers
0Fh
10h
2Fh
30h
General
Purpose
Registers
1Fh
50h
General
Purpose
Registers
3Fh
Bank 0
Note 1:
FIGURE 3-2:
70h
General
Purpose
Registers
5Fh
Bank 1
General
Purpose
Registers
7Fh
Bank 2
Bank 3
Not a physical register. See Section 3.8 Indirect Data Addressing: INDF and FSR Registers.
DS41338B-page 12
Preliminary
MCV14A
3.2.3
TABLE 3-1:
Addr
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on
Power-on
Reset
Page #
N/A
TRIS
--11 1111
23
N/A
OPTION
1111 1111
15
00h
INDF
xxxx xxxx
18
01h/41h
TMR0
xxxx xxxx
29
02h(1)
PCL
1111 1111
17
03h
STATUS
0001 1xxx
14
04h
FSR
05h/45h
OSCCAL
06h/46h
07h
RBWUF
CWUF
PA0
TO
PD
DC
RB5
RB4
RB3
RB2
RB1
RB0
--xx xxxx
23
RC5
RC4
RC3
RC2
RC1
RC0
--xx xxxx
24
C1OUT
C1OUTEN
C1POL
C1T0CS
C1ON
C1NREF
C1PREF
C1WU
1111 1111
53
ANS1
ANS0
ADCS1
ADCS0
CHS1
CHS0
GO/DONE
ADON
1111 1100
51
xxxx xxxx
52
0Ah
ADRES
CAL0
18
PORTC
CM1CON0
CAL1
16
PORTB
ADCON0
CAL2
1111 111-
CAL5
08h
CAL3
CAL6
09h
CAL4
100x xxxx
0Bh
CM2CON0
C2OUT
C2OUTEN
C2POL
C2PREF2
C2ON
C2NREF
C2PREF1
C2WU
1111 1111
54
0Ch
VRCON
VREN
VROE
VRR
VR3
VR2
VR1
VR0
000- 0000
59
FREE
WRERR
WREN
WR
RD
---0 0000
20
21h/61h
EECON
25h/65h
EEDATA
26h/66h
EEADR
Legend:
Note 1:
x = unknown, u = unchanged, = unimplemented, read as '0' (if applicable). Shaded cells = unimplemented or unused
The upper byte of the Program Counter is not directly accessible. See Section 3.6 Program Counter for an explanation of how to
access these bits.
Preliminary
xxxx xxxx
19
--xx xxxx
19
DS41338B-page 13
MCV14A
3.3
STATUS Register
REGISTER 3-1:
R/W-0
R/W-0
R/W-0
R-1
R-1
R/W-x
R/W-x
R/W-x
RBWUF
CWUF
PA0
TO
PD
DC
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
Z: Zero bit
1 = The result of an arithmetic or logic operation is zero
0 = The result of an arithmetic or logic operation is not zero
bit 1
bit 0
DS41338B-page 14
Preliminary
MCV14A
3.4
OPTION Register
Note:
REGISTER 3-2:
W-1
W-1
W-1
W-1
W-1
W-1
W-1
W-1
RBWU
RBPU
T0CS(1)
T0SE
PSA
PS2
PS1
PS0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2-0
Note 1:
Bit Value
Timer0 Rate
WDT Rate
000
001
010
011
100
101
110
111
1:2
1:4
1:8
1 : 16
1 : 32
1 : 64
1 : 128
1 : 256
1:1
1:2
1:4
1:8
1 : 16
1 : 32
1 : 64
1 : 128
x = Bit is unknown
If the T0CS bit is set to 1, it will override the TRIS function on the T0CKI pin.
Preliminary
DS41338B-page 15
MCV14A
3.5
OSCCAL Register
REGISTER 3-3:
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
U-0
CAL6
CAL5
CAL4
CAL3
CAL2
CAL1
CAL0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 7-1
0000001
0000000 = Center frequency
1111111
bit 0
Unimplemented: Read as 0
DS41338B-page 16
Preliminary
x = Bit is unknown
MCV14A
3.6
3.6.1
Program Counter
EFFECTS OF RESET
FIGURE 3-3:
LOADING OF PC
BRANCH INSTRUCTIONS
GOTO Instruction
10 9 8 7
PC
0
PCL
3.7
Instruction Word
PA0
Stack
0
Status
0
PCL
Instruction Word
Reset to 0
PA0
0
Status
Preliminary
DS41338B-page 17
MCV14A
3.8
EXAMPLE 3-1:
INCF
BTFSC
GOTO
CONTINUE
:
:
FIGURE 3-4:
(FSR)
6
MOVLW
MOVWF
CLRF
;initialize pointer
;to RAM
;clear INDF
;register
;inc pointer
;all done?
;NO, clear next
FSR,F
FSR,4
NEXT
;YES, continue
DIRECT/INDIRECT ADDRESSING
Direct Addressing
(opcode)
4
bank select
Indirect Addressing
(FSR)
0
location select
00
01
10
11
bank
select
location select
00h
Data
Memory(1)
0Ch
0Dh
Addresses map back to
addresses in Bank 0.
0Fh
10h
2Fh
4Fh
6Fh
1Fh
3Fh
5Fh
7Fh
Bank 0
Bank 1
Bank 2
Bank 3
DS41338B-page 18
Preliminary
MCV14A
4.0
REGISTER 4-1:
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
EEDATA7
EEDATA6
EEDATA5
EEDATA4
EEDATA3
EEDATA2
EEDATA1
EEDATA0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 7-0
x = Bit is unknown
REGISTER 4-2:
U-0
U-0
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
EEADR5
EEADR4
EEADR3
EEADR2
EEADR1
EEADR0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 7-6
bit 5-0
Preliminary
x = Bit is unknown
DS41338B-page 19
MCV14A
REGISTER 4-3:
U-0
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
FREE
WRERR
WREN
WR
RD
bit 7
bit 0
Legend:
S = Bit can only be set
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 7-5
bit 4
bit 3
bit 2
bit 1
bit 0
DS41338B-page 20
Preliminary
MCV14A
4.1
EXAMPLE 4-2:
EXAMPLE 4-1:
BSF
FSR,5
;SWITCH TO BANK 1
MOVLW
EE_ADR_READ ;LOAD ADDRESS TO READ
BSF
EECON,RD
;INITITATE THE READ
INSTRUCTION
;IS DECODED
MOVF
EEDATA,W
;GET NEW DATA
4.2
BSF
MOVLW
MOVWF
BSF
BSF
BSF
xxx
FSR,5
EE_ADR_ERASE
EEADR
EECON,FREE
EECON,WREN
EECON,WR
;SWITCH TO BANK 1
;LOAD ADDRESS TO ERASE
;LOAD ADDRESS TO SFR
;SELECT ERASE
;ENABL FLASH PROGING
;INITITATE ERASE
;NEXT INSTRUCTION
4.3
Preliminary
DS41338B-page 21
MCV14A
EXAMPLE 4-3:
4.4
BSF
FSR,5
MOVLW EE_ADR_WRITE
;SWITCH TO BANK 1
;LOAD ADDRESS TO
;WRITE
MOVWF EEADR
;INTO EEADR
;REGISTER
MOVLW EE_DATA_TO_WRITE;LOAD DATA TO
MOVWF EEDATA
;INTO EEDATA
;REGISTER
BSF
EECON,WREN
;ENABLE WRITES
BSF
EECON,WR
;START WRITE
;SEQUENCE
NOP
;WAIT AS READ
;INSTRUCTION
;IS DECODED
NOP
;INSTRUCTION
IGNORED
DS41338B-page 22
Preliminary
MCV14A
5.0
I/O PORT
5.2
5.1
5.3
TRIS Register
PORTB
TABLE 5-1:
PORTC
Device
MCV14A
Yes
Yes
Yes
REGISTER 5-1:
U-0
U-0
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
RB5
RB4
RB3
RB2
RB1
RB0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 7-6
Unimplemented: Read as 1
bit 5-0
Preliminary
x = Bit is unknown
DS41338B-page 23
MCV14A
REGISTER 5-2:
U-0
U-0
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
R/W-x
RC5
RC4
RC3
RC2
RC1
RC0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 7-6
Unimplemented: Read as 1
bit 5-0
DS41338B-page 24
Preliminary
x = Bit is unknown
MCV14A
5.4
FIGURE 5-1:
I/O Interfacing
MCV14A EQUIVALENT
CIRCUIT FOR A SINGLE
I/O PIN
Data
Bus
D
WR
Port
W
Reg
TRIS f
Q
Data
Latch
CK
VDD VDD
Q
N
D
I/O
pin
Q
TRIS
Latch
CK
VSS
VSS
Reset
RD Port
Preliminary
DS41338B-page 25
MCV14A
TABLE 5-2:
Addr
Name
Bit 7
Bit 6
RBWU
RBPU
N/A
TRIS
N/A
OPTION
03h
STATUS
06h
PORTB
07h
PORTC
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on
Power-On
Reset
Value on
All Other
Resets
--11 1111
--11 1111
1111 1111
1111 1111
TOCS
TOSE
PSA
PS2
PS1
PS0
PA0
TO
PD
DC
RB5
RB4
RB3
RB2
RB1
RB0
--xx xxxx
--uu uuuu
RC5
RC4
RC3
RC2
RC1
RC0
--xx xxxx
--uu uuuu
RBWUF CWUF
Legend: Shaded cells are not used by PORT registers, read as 0. = unimplemented, read as 0, x = unknown,
u = unchanged,
q = depends on condition.
Note 1: If Reset was due to wake-up on pin change, then bit 7 = 1. All other Resets will cause bit 7 = 0.
TABLE 5-3:
Priority
RB0
RB1
RB2
RB3
RC0
RC1
RC2
RC4
RC5
1
2
3
AN0
C1IN+
TRISB
AN1
C1INTRISB
AN2
C1OUT
TRISB
RB3/MCLR
C2IN+
TRISC
C2INTRISC
CVREF
TRISC
C2OUT
TRISC
T0CKI
TRISC
DS41338B-page 26
Preliminary
MCV14A
5.5
EXAMPLE 5-1:
5.5.1
5.5.2
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4
PC
Instruction
Fetched
SUCCESSIVE OPERATIONS ON
I/O PORTS
FIGURE 5-2:
READ-MODIFY-WRITE
INSTRUCTIONS ON AN
I/O PORT(e.g., MCV14A)
MOVWF PORTB
PC + 1
MOVF PORTB, W
Q1 Q2 Q3 Q4
PC + 2
PC + 3
NOP
NOP
RB<5:0>
MOVWF PORTB
(Write to PORTB)
Port pin
sampled here
MOVF PORTB,W
(Read PORTB)
Preliminary
DS41338B-page 27
MCV14A
NOTES:
DS41338B-page 28
Preliminary
MCV14A
6.0
FIGURE 6-1:
Comparator
Output
FOSC/4
PSOUT
1
1
1
T0CKI
pin
Programmable
Prescaler(2)
T0SE(1)
T0CS(1)
8
Sync with
Internal
Clocks
TMR0 Reg
PSOUT
(2 cycle delay) Sync
PSA(1)
3
PS2(1), PS1(1), PS0(1)
C1T0CS(3)
Note 1: Bits T0CS, T0SE, PSA, PS2, PS1 and PS0 are located in the OPTION register.
2: The prescaler is shared with the Watchdog Timer.
3: The C1T0CS bit is in the CM1CON0 register.
Preliminary
DS41338B-page 29
MCV14A
FIGURE 6-2:
PC
(Program
Counter)
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
PC 1
Instruction
Fetch
PC
PC + 1
MOVWF TMR0
T0
Timer0
T0 + 1
T0 + 2
Instruction
Executed
PC + 4
PC + 5
PC + 6
NT0 + 1
Read TMR0
reads NT0
Read TMR0
reads NT0
NT0 + 2
Read TMR0
Read TMR0
reads NT0 + 1 reads NT0 + 2
Read TMR0
reads NT0
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
PC 1
Instruction
Fetch
PC
PC + 1
MOVWF TMR0
T0
Timer0
PC + 2
T0 + 1
Name
PC + 4
PC + 5
NT0
Read TMR0
reads NT0
Write TMR0
executed
TABLE 6-1:
PC + 3
PC + 6
MOVF TMR0,W MOVF TMR0,W MOVF TMR0,W MOVF TMR0,W MOVF TMR0,W
Instruction
Executed
Addr
PC + 3
NT0
Write TMR0
executed
FIGURE 6-3:
PC
(Program
Counter)
PC + 2
MOVF TMR0,W MOVF TMR0,W MOVF TMR0,W MOVF TMR0,W MOVF TMR0,W
Read TMR0
reads NT0
NT0 + 1
Read TMR0
Read TMR0
reads NT0 + 1 reads NT0 + 2
Read TMR0
reads NT0
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on
All Other
Resets
xxxx xxxx
uuuu uuuu
1111 1111
uuuu uuuu
01h
TMR0
08h
CM1CON0
C1OUT
C1OUTEN
C1POL
C1T0CS
C1ON
C1NREF
C1PREF
C1WU
0Bh
CM2CON0
C2OUT
C2OUTEN
C2POL
C2PREF2
C2ON
C2NREF
C2PREF1
C2WU
1111 1111
uuuu uuuu
N/A
OPTION
RBWU
RBPU
T0CS
T0SE
PSA
PS2
PS1
PS0
1111 1111
1111 1111
N/A
TRIS(1)
--11 1111
--11 1111
Legend:
Note 1:
Value on
Power-On
Reset
DS41338B-page 30
Preliminary
MCV14A
6.1
6.1.1
EXTERNAL CLOCK
SYNCHRONIZATION
FIGURE 6-4:
6.1.2
Q1 Q2 Q3 Q4
Q1 Q2 Q3 Q4
Q1 Q2 Q3 Q4
Small pulse
misses sampling
(1)
External Clock/Prescaler
Output After Sampling
(3)
Note 1:
T0
T0 + 1
T0 + 2
Delay from clock input change to Timer0 increment is 3 TOSC to 7 TOSC. (Duration of Q = TOSC). Therefore, the error
in measuring the interval between two edges on Timer0 input = 4 TOSC max.
2:
3:
Preliminary
DS41338B-page 31
MCV14A
6.2
EXAMPLE 6-1:
Prescaler
6.2.1
SWITCHING PRESCALER
ASSIGNMENT
CHANGING PRESCALER
(TIMER0 WDT)
CLRWDT
;Clear WDT
CLRF
TMR0
;Clear TMR0 & Prescaler
MOVLW 00xx1111b ;These 3 lines (5, 6, 7)
OPTION
;are required only if
;desired
CLRWDT
;PS<2:0> are 000 or 001
MOVLW 00xx1xxxb ;Set Postscaler to
OPTION
;desired WDT rate
EXAMPLE 6-2:
CLRWDT
MOVLW
xxxx0xxx
CHANGING PRESCALER
(WDT TIMER0)
;Clear WDT and
;prescaler
;Select TMR0, new
;prescale value and
;clock source
OPTION
DS41338B-page 32
Preliminary
MCV14A
FIGURE 6-5:
TCY (= FOSC/4)
Data Bus
0
Comparator
Output
0
1
M
U
X
1
0
1
T0CKI
Pin
M
U
X
T0SE(1)
T0CS(1)
Sync
2
Cycles
TMR0 Reg
PSA(1)
C1TOCS
Watchdog
Timer
8-bit Prescaler
M
U
X
8
PS<2:0>(1)
8-to-1 MUX
(1)
PSA
WDT Enable bit
0
MUX
PSA(1)
WDT
Time-out
Note 1:
Preliminary
DS41338B-page 33
MCV14A
NOTES:
DS41338B-page 34
Preliminary
MCV14A
7.0
7.1
Configuration Bits
Preliminary
DS41338B-page 35
MCV14A
REGISTER 7-1:
CPDF
IOSCFS
MCLRE
CP
WDTE
FOSC2
FOSC1
bit 7
bit 0
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2-0
Note 1:
FOSC0
DRT length (18 ms or 1 ms) is a function of Clock mode selection. It is the responsibility of the application
designer to ensure the use of either 18 ms (nominal) DRT or the 1 ms (nominal) DRT will result in acceptable operation. Refer to Section 11.1 DC Characteristics: MCV14A (Industrial) and Section 11.2
DC Characteristics: MCV14A for VDD rise time and stability requirements for this mode of operation.
DS41338B-page 36
Preliminary
MCV14A
7.2
FIGURE 7-1:
Oscillator Configurations
7.2.1
OSCILLATOR TYPES
The MCV14A device can be operated in up to six different Oscillator modes. The user can program up to three
Configuration bits (FOSC<2:0>). To select one of these
modes:
LP:
XT:
HS:
INTRC:
EXTRC:
EC:
7.2.2
CRYSTAL OPERATION
(OR CERAMIC
RESONATOR)
(HS, XT OR LP OSC
CONFIGURATION)
Low-Power Crystal
Crystal/Resonator
High-Speed Crystal/Resonator
Internal 4/8 MHz Oscillator
External Resistor/Capacitor
External High-Speed Clock Input
C1(1)
RS(2)
RF(3)
To internal
logic
OSC2
C2(1)
Note 1:
MCV14A
Sleep
XTAL
CRYSTAL OSCILLATOR/CERAMIC
RESONATORS
OSC1
2:
3:
FIGURE 7-2:
RB5/OSC1/CLKIN
MCV14A
OSC2/CLKOUT/RB4
Note 1:
OSC2/CLKOUT/RB4(1)
TABLE 7-1:
Osc
Type
Resonator
Freq.
XT
4.0 MHz
30 pF
30 pF
HS
16 MHz
10-47 pF
10-47 pF
Note 1:
Preliminary
Cap. Range
C1
Cap. Range
C2
DS41338B-page 37
MCV14A
TABLE 7-2:
Osc
Type
Resonator
Freq.
Cap. Range
C1
Cap. Range
C2
LP
32 kHz(1)
15 pF
15 pF
XT
200 kHz
1 MHz
4 MHz
47-68 pF
15 pF
15 pF
47-68 pF
15 pF
15 pF
20 MHz
15-47 pF
15-47 pF
HS
Note 1:
2:
FIGURE 7-4:
330
FIGURE 7-3:
EXTERNAL PARALLEL
RESONANT CRYSTAL
OSCILLATOR CIRCUIT
+5V
To Other
Devices
10k
74AS04
4.7k
CLKIN
74AS04
MCV14A
10k
XTAL
10k
20 pF
To Other
Devices
330
74AS04
74AS04
74AS04
CLKIN
0.1 mF
MCV14A
XTAL
7.2.4
7.2.3
EXTERNAL SERIES
RESONANT CRYSTAL
OSCILLATOR CIRCUIT
EXTERNAL RC OSCILLATOR
20 pF
DS41338B-page 38
Preliminary
MCV14A
Also, see the Electrical Specifications section for
variation of oscillator frequency due to VDD for given
REXT/CEXT values, as well as frequency variation due
to operating temperature for given R, C and VDD
values.
FIGURE 7-5:
EXTERNAL RC
OSCILLATOR MODE
VDD
REXT
OSC1
Internal
clock
CEXT
MCV14A
VSS
FOSC/4
OSC2/CLKOUT
7.2.5
Preliminary
DS41338B-page 39
MCV14A
7.3
Reset
TABLE 7-3:
Register
W
Power-on Reset
qqqq qqq0(1)
qqqq qqq0(1)
INDF
00h
xxxx xxxx
uuuu uuuu
TMR0
01h
xxxx xxxx
uuuu uuuu
PCL
02h
1111 1111
1111 1111
STATUS
03h
0001 1xxx
FSR
04h
100x xxxx
1uuu uuuu
OSCCAL
05h
1111 111-
uuuu uuu-
PORTB
06h
--xx xxxx
--uu uuuu
PORTC
07h
--xx xxxx
--uu uuuu
CMICON0
08h
q111 1111
quuu uuuu
ADCON0
09h
1111 1100
1111 1100
ADRES
0Ah
xxxx xxxx
uuuu uuuu
CM2CON0
0Bh
q111 1111
quuu uuuu
VRCON
0Ch
001-1111
uuu-uuuu
OPTION
1111 1111
1111 1111
TRISB
--11 1111
--11 1111
qq0q quuu(2)
TRISC
--11 1111
--11 1111
EECON
21h/61h
---0 x000
---0 q000
EEDATA
25h/65h
xxxx xxxx
uuuu uuuu
EEADR
26h/66h
--xx xxxx
--uu uuuu
DS41338B-page 40
Preliminary
MCV14A
TABLE 7-4:
Power-on Reset
0001 1xxx
1111 1111
000u uuuu
1111 1111
0001 0uuu
1111 1111
0000 0uuu
1111 1111
0000 uuuu
1111 1111
1001 0uuu
1111 1111
Preliminary
DS41338B-page 41
MCV14A
7.3.1
MCLR ENABLE
FIGURE 7-6:
MCLR SELECT
RBWU
RB3/MCLR/VPP
MCLRE
7.4
Internal MCLR
DS41338B-page 42
Preliminary
MCV14A
FIGURE 7-7:
VDD
Power-up
Detect
RB3/MCLR/VPP
MCLR Reset
MCLRE
Start-up Timer
WDT Reset
WDT Time-out
Pin Change
Sleep
(10 s, 1.125 ms
or 18 ms)
CHIP Reset
FIGURE 7-8:
VDD
MCLR
Internal POR
TDRT
DRT Time-out
Internal Reset
FIGURE 7-9:
VDD
MCLR
Internal POR
TDRT
DRT Time-out
Internal Reset
Preliminary
DS41338B-page 43
MCV14A
FIGURE 7-10:
V1
VDD
MCLR
Internal POR
TDRT
DRT Time-out
Internal Reset
Note:
When VDD rises slowly, the TDRT time-out expires long before VDD has reached its final
value. In this example, the chip will reset properly if, and only if, V1 VDD min.
DS41338B-page 44
Preliminary
MCV14A
7.5
TABLE 7-5:
7.6
Oscillator
Configuration
Subsequent
Resets
18 ms
18 ms
EC
1.125 ms
10 s
INTOSC, EXTRC
1.125 ms
10 s
HS, XT, LP
7.6.1
WDT PERIOD
7.6.2
WDT PROGRAMMING
CONSIDERATIONS
disabled by
as a 0 (see
Refer to the
to determine
Preliminary
DS41338B-page 45
MCV14A
FIGURE 7-11:
Watchdog
Time
M
U
X
Postscaler
8-to-1 MUX
PS<2:0>(1)
PSA
WDT Enable
Configuration
Bit
1
MUX
PSA(1)
WDT Time-out
Note 1:
TABLE 7-6:
Address
N/A
OPTION
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on
Power-On
Reset
Value on
All Other
Resets
RBWU
RBPU
T0CS
T0SE
PSA
PS2
PS1
PS0
1111 1111
1111 1111
DS41338B-page 46
Preliminary
MCV14A
7.7
7.8.2
1.
2.
3.
TABLE 7-7:
TO/PD/RBWUF STATUS
AFTER RESET
RBWUF
TO
PD
Reset Caused By
Power-up
7.8
Legend: u = unchanged
Note 1: The TO, PD and RBWUF bits maintain
their status (u) until a Reset occurs. A
low-pulse on the MCLR input does not
change the TO, PD and RBWUF Status
bits.
7.8.1
SLEEP
Preliminary
DS41338B-page 47
MCV14A
7.9
FIGURE 7-12:
Program Verification/Code
Protection
External
Connector
Signals
7.10
ID Locations
7.11
TYPICAL IN-CIRCUIT
SERIAL PROGRAMMING
CONNECTION
To Normal
Connections
MCV14A
+5V
VDD
0V
VSS
VPP
MCLR/VPP
CLK
RB1
Data I/O
RB0
VDD
To Normal
Connections
DS41338B-page 48
Preliminary
MCV14A
8.0
ANALOG-TO-DIGITAL (A/D)
CONVERTER
Note:
8.1
Clock Divisors
8.1.1
The ADC clock is derived from the instruction clock. The ADCS divisors are then
applied to create the ADC clock
VOLTAGE REFERENCE
8.1.2
8.1.3
TABLE 8-1:
Event
MCLR
ADCS<1:0>
11
Conversion completed
CS<1:0>
Conversion terminated
CS<1:0>
Power-on
11
11
8.1.4
Preliminary
DS41338B-page 49
MCV14A
8.1.5
SLEEP
TABLE 8-2:
Source
ADCS
<1:0>
Divisor
20
MHz
16
MHz
11
.5 s
1 s
INTOSC
500
kHz
350
kHz
200
kHz
100
kHz
32 kHz
FOSC
10
.2 s
.25 s
.5 s
1 s
4 s
8 s
11 s
20 s
40 s
125 s
FOSC
01
.4 s
.5 s
1 s
2 s
8 s
16 s
23 s
40 s
80 s
250 s
FOSC
00
16
.8 s
1 s
2 s
4 s
16 s
32 s
46 s
80 s
160 s
500 s
TABLE 8-3:
Entering
Sleep
ANS0
Unchanged Unchanged
Wake or
Reset
DS41338B-page 50
ADCS1
ADCS0
CHS1
CHS0
GO/DONE
ADON
Preliminary
MCV14A
8.1.6
REGISTER 8-1:
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-0
R/W-0
ANS1
ANS0
ADCS1
ADCS0
CHS1
CHS0
GO/DONE
ADON
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 7-6
bit 5-4
bit 3-2
bit 1
bit 0
Note 1:
When the ANS bits are set, the channels selected will automatically be forced into Analog mode, regardless of the pin
function previously defined. The only exception to this is the comparator, where the analog input to the comparator and
the ADC will be active at the same time. It is the users responsibility to ensure that the ADC loading on the comparator
input does not affect their application.
2:
3:
4:
5:
Preliminary
DS41338B-page 51
MCV14A
REGISTER 8-2:
R/W-X
R/W-X
R/W-X
R/W-X
R/W-X
R/W-X
R/W-X
R/W-X
ADRES7
ADRES6
ADRES5
ADRES4
ADRES3
ADRES2
ADRES1
ADRES0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
EXAMPLE 8-1:
PERFORMING AN
ANALOG-TO-DIGITAL
CONVERSION
EXAMPLE 8-2:
loop0
MOVLW 0xF1
;configure A/D
MOVWF ADCON0
BSF ADCON0, 1 ;start conversion
BTFSC ADCON0, 1;wait for DONE
GOTO loop0
MOVF ADRES, W ;read result
MOVWF result0 ;save result
loop1
loop2
CHANNEL SELECTION
CHANGE DURING
CONVERSION
MOVLW 0xF1
MOVWF ADCON0
BSF ADCON0, 1
BSF ADCON0, 2
;configure A/D
loop0
;start conversion
;setup for read of
;channel 1
BTFSC ADCON0, 1;wait for DONE
GOTO loop0
MOVF ADRES, W ;read result
MOVWF result0 ;save result
loop1
BSF ADCON0, 2
DS41338B-page 52
x = Bit is unknown
loop2
Preliminary
MCV14A
9.0
COMPARATOR(S)
REGISTER 9-1:
and
R-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
C1OUT
C1OUTEN
C1POL
C1T0CS
C1ON
C1NREF
C1PREF
C1WU
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
Note 1:
x = Bit is unknown
2: When comparator is turned on, these control bits assert themselves. Otherwise, the other registers have
precedence.
Preliminary
DS41338B-page 53
MCV14A
REGISTER 9-2:
R-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
C2OUT
C2OUTEN
C2POL
C2PREF2
C2ON
C2NREF
C2PREF1
C2WU
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
x = Bit is unknown
DS41338B-page 54
Preliminary
MCV14A
FIGURE 9-1:
C1PREF
C1IN+
C1OUTEN
+
C1IN-
0
C1OUT (Register)
1
-
VREF
(0.6V)
0
C1NREF
C1POL
C1ON
T0CKI
T0CKI Pin
C1T0CS
RC4/C2OUT
C2PREF1
C2IN+
READ
CM1CON0
C2OUTEN
1
+
0
C2OUT (Register)
0
C2PREF2
C2IN-
C2POL
C2ON
1
0
CVREF
C2NREF
C1WU
S
CWUF
READ
CM2CON0
C2WU
Preliminary
DS41338B-page 55
MCV14A
9.1
Comparator Operation
FIGURE 9-2:
SINGLE COMPARATOR
VIN+
VIN-
Result
Note:
9.5
9.6
VIN-
VIN+
Result
9.7
9.2
Comparator Reference
9.3
9.4
Effects of Reset
9.8
Comparator Output
DS41338B-page 56
Preliminary
MCV14A
FIGURE 9-3:
RS < 10 K
RIC
AIN
CPIN
5 pF
VA
VT = 0.6V
ILEAKAGE
500 nA
VSS
Legend:
TABLE 9-1:
CPIN
VT
ILEAKAGE
RIC
RS
VA
=
=
=
=
=
=
Input Capacitance
Threshold Voltage
Leakage Current at the Pin
Interconnect Resistance
Source Impedance
Analog Voltage
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on POR
Value on All
Other Resets
STATUS
RBWUF
CWUF
PA0
TO
PD
DC
0001 1xxx
qq0q quuu
CM1CON0
C1OUT
C1OUTEN
C1POL
C1T0CS
C1ON
C1NREF
C1PREF
C1WU
1111 1111
uuuu uuuu
CM2CON0
C2OUT
C2OUTEN
C2POL
C2PREF2
C2ON
C2NREF
C2PREF1
C2WU
1111 1111
uuuu uuuu
--11 1111
--11 1111
Name
TRIS
Legend:
Preliminary
DS41338B-page 57
MCV14A
NOTES:
DS41338B-page 58
Preliminary
MCV14A
10.0
COMPARATOR VOLTAGE
REFERENCE MODULE
10.2
10.1
EQUATION 10-1:
REGISTER 10-1:
R/W-0
R/W-0
R/W-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
VREN
VROE
VRR
VR3
VR2
VR1
VR0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 7
bit 6
bit 5
bit 4
Unimplemented: Read as 0
bit 3-0
x = Bit is unknown
Note 1: When this bit is set, the TRIS for the CVREF pin is overridden and the analog voltage is placed on the
CVREF pin.
2: CVREF controls for ratio metric reference applies to Comparator 2.
Preliminary
DS41338B-page 59
MCV14A
FIGURE 10-1:
8R
VDD
8R
VRR
16-1 Analog
MUX
VREN
CVREF to
Comparator 2
Input
VR<3:0>
RC2/CVREF
VREN
VR<3:0> = 0000
VRR
VROE
TABLE 10-1:
Name
VRCON
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on POR
Value on all
other Resets
000- 0000
VREN
VROE
VRR
VR3
VR2
VR1
VR0
000- 0000
CM1CON0
C1OUT
C1OUTEN
C1POL
C1T0CS
C1ON
C1NREF
C1PREF
C1WU
1111 1111
uuuu uuuu
CM2CON0
C2OUT
C2OUTEN
C2POL
C2PREF2
C2ON
C2NREF
C2PREF1
C2WU
1111 1111
uuuu uuuu
Legend:
DS41338B-page 60
Preliminary
MCV14A
11.0
ELECTRICAL CHARACTERISTICS
Stresses above those listed under Absolute Maximum Ratings may cause permanent damage to the
device. This is a stress rating only and functional operation of the device at those or any other conditions above
those indicated in the operation listings of this specification is not implied. Exposure to maximum rating conditions
for extended periods may affect device reliability.
Preliminary
DS41338B-page 61
MCV14A
MCV14A VOLTAGE-FREQUENCY GRAPH, -40C TA +85C
FIGURE 11-1:
6.0
5.5
5.0
VDD
(Volts)
4.5
4.0
3.5
3.0
INTOSC
ONLY
2.5
2.0
0
20
10
25
Frequency (MHz)
FIGURE 11-2:
Oscillator Mode
LP
XT
XTRC
INTOSC
EC
HS
0
200 kHz
4 MHz
8 MHz
20 MHz
Frequency
DS41338B-page 62
Preliminary
MCV14A
11.1
DC Characteristics
Param
No.
Sym
Characteristic
Min
Typ(1)
Max
Units
Conditions
D001
VDD
Supply Voltage
2.0
5.5
D002
VDR
1.5*
D003
VPOR
Vss
D004
SVDD
0.05*
V/ms
D010
IDD
Supply Current(3,4)
175
400
250
700
A
mA
250
0.75
450
1.2
A
mA
1.8
2.5
mA
11
38
22
55
A
A
D020
IPD
Power-down Current(5)
0.1
0.35
1.2
2.2
A
A
VDD = 2.0V
VDD = 5.0V
D022
IWDT
WDT Current(5)
1.0
7.0
3.0
16.0
A
A
VDD = 2.0V
VDD = 5.0V
D023
ICMP
Comparator Current(5)
15
60
26
76
A
A
D022
IVREF
VREF Current(5)
30
75
75
135
A
A
D023
IFVR
100
120
175
205
120
150
2.0V
200
250
5.0V
D024
IAD
Preliminary
DS41338B-page 63
MCV14A
11.2
DC Characteristics: MCV14A
TABLE 11-1:
DC CHARACTERISTICS
Param
No.
Sym
VIL
Characteristic
Min
Typ
Max
Units
Conditions
D030
D030A
Vss
0.8V
Vss
0.15 VDD
Otherwise
D031
Vss
0.15 VDD
D032
MCLR, T0CKI
Vss
0.15 VDD
D033
Vss
0.15 VDD
D033
Vss
0.3 VDD
Vss
0.3
2.0
VDD
0.25VDD
+ 0.8V
VDD
Otherwise
For entire VDD range
D033
VIH
D040
D040A
D041
0.85VDD
VDD
D042
MCLR, T0CKI
0.85VDD
VDD
D042A
0.85VDD
VDD
D042A
0.7VDD
VDD
D043
1.6
VDD
50
250
400
D070
IPUR
IIL
D060
I/O ports
D061
RB3/MCLR(3)
0.7
D063
OSC1
D080
I/O ports
0.6
D083
CLKOUT
0.6
D090
I/O ports(2)
VDD 0.7
D092
CLKOUT
VDD 0.7
OSC2 pin
15
pF
50
pF
Data in Typ column is at 5V, 25C unless otherwise stated. These parameters are for design guidance only and are not tested.
Note 1: In EXTRC oscillator configuration, the OSC1/CLKIN pin is a Schmitt Trigger input. It is not recommended that the
MCV14A be driven with external clock in RC mode.
2: Negative current is defined as coming out of the pin.
3: This spec. applies to RB3/MCLR configured as RB3 with internal pull-up disabled.
4: This spec applies to all weak pull-up devices, including the weak pull-up found on RB3/MCLR. The current value listed will
be the same whether or not the pin is configured as RB3 with pull-up enabled or as MCLR.
DS41338B-page 64
Preliminary
MCV14A
TABLE 11-2:
COMPARATOR SPECIFICATIONS.
Comparator Specifications
Characteristics
Sym
Min
Typ
Max
Units
0.70
VIVRF
0.50
0.60
VOS
5.0
10
mV
VCM
VDD 1.5
CMRR*
Response Time
(1)*
CMRR
55
db
TRT
150
400
ns
TMC2COV
10
Comments
TABLE 11-3:
Sym
CVRES
*
Note 1:
2:
Typ
Max
Units
Resolution
Characteristics
VDD/24*
VDD/32
LSb
LSb
Comments
Absolute Accuracy(2)
1/2*
1/2*
LSb
LSb
2K*
Settling Time(1)
10*
Preliminary
DS41338B-page 65
MCV14A
TABLE 11-4:
Sym
Characteristic
Min
Typ
Max
Units
bit
Conditions
NR
Resolution
Integral Error
1.5
1.5
-0.7
+2.2
A03
EINL
A04
A06
A07
EGN
Gain Error
A10
Monotonicity
A25
VAIN
Analog Input
Voltage
VSS
A30
ZAIN
Recommended
Impedance of
Analog Voltage
Source
(1)
VDD
10
guaranteed
TABLE 11-5:
VDD (Volts)
RB0/RB1
2.0
5.5
RB3
2.0
5.5
Min
Typ
Max
Units
-40
25
85
125
-40
25
85
125
73K
73K
82K
86K
15K
15K
19K
23K
105K
113K
123K
132k
21K
22K
26k
29K
186K
187K
190K
190K
33K
34K
35K
35K
-40
25
85
125
-40
25
85
125
63K
77K
82K
86K
16K
16K
24K
26K
81K
93K
96k
100K
20k
21K
25k
27K
96K
116K
116K
119K
22K
23K
28K
29K
DS41338B-page 66
Preliminary
MCV14A
11.3
The timing parameter symbols have been created following one of the following formats:
1. TppS2ppS
2. TppS
T
F
Frequency
T Time
to
mc
MCLR
ck
CLKOUT
osc
Oscillator
cy
Cycle time
os
OSC1
drt
t0
T0CKI
io
I/O port
wdt
Watchdog Timer
Fall
Period
High
Rise
Invalid (high-impedance)
Valid
Low
High-impedance
FIGURE 11-3:
LOAD CONDITIONS
Legend:
pin
CL
VSS
Preliminary
DS41338B-page 67
MCV14A
FIGURE 11-4:
Q1
Q3
Q2
Q4
Q1
OSC1
1
TABLE 11-6:
AC CHARACTERISTICS
Param
No.
Characteristic
Min
Typ(1)
Max
DC
DC
20
DC
200
kHz
1A
Sym
FOSC
Oscillator Frequency
TOSC
External CLKIN
(2)
Period(2)
Oscillator Period(2)
Units
Conditions
LP Oscillator mode
0.1
20
200
kHz
250
ns
XT Oscillator mode
50
ns
HS Oscillator mode
LP Oscillator mode
LP Oscillator mode
250
ns
250
10,000
ns
XT Oscillator mode
50
250
ns
HS Oscillator mode
LP Oscillator mode
TCY
200
4/FOSC
ns
TosL,
TosH
50*
ns
XT Oscillator
2*
LP Oscillator
10*
ns
HS Oscillator
TosR,
TosF
25*
ns
XT Oscillator
50*
ns
LP Oscillator
15*
ns
HS Oscillator
*
Note 1:
2:
DS41338B-page 68
Preliminary
MCV14A
TABLE 11-7:
AC CHARACTERISTICS
Param
No.
Freq
Min
Tolerance
F10
Sym
FOSC
Characteristic
Internal Calibrated
INTOSC Frequency(1)
Typ
Max
Units
Conditions
1%
7.92
8.00
8.08
5%
7.60
8.00
8.40
Preliminary
DS41338B-page 69
MCV14A
FIGURE 11-5:
I/O TIMING
Q1
Q4
Q2
Q3
OSC1
I/O Pin
(input)
17
I/O Pin
(output)
19
18
New Value
Old Value
20, 21
Note:
All tests must be done with specified capacitive loads (see data sheet) 50 pF on I/O pins and CLKOUT.
TABLE 11-8:
TIMING REQUIREMENTS
Sym
Characteristic
Min
Typ(1)
Max
Units
17
TOSH2IOV
100*
ns
18
TOSH2IOI
ns
19
TIOV2OSH
ns
20
TIOR
10
50**
ns
21
TIOF
10
58**
ns
Legend:
*
**
Note 1:
2:
3:
TBD = To Be Determined.
These parameters are characterized but not tested.
These parameters are design targets and are not tested.
Data in the Typical (Typ) column is at 5V, 25C unless otherwise stated. These parameters are for design
guidance only and are not tested.
Measurements are taken in EXTRC mode.
See Figure 11-3 for loading conditions.
DS41338B-page 70
Preliminary
MCV14A
FIGURE 11-6:
VDD
MCLR
30
Internal
POR
32
32
32
DRT
Time-out(2)
Internal
Reset
Watchdog
Timer
Reset
31
34
34
I/O pin(1)
Note 1:
2:
I/O pins must be taken out of High-Impedance mode by enabling the output drivers in software.
Runs in MCLR or WDT Reset only in XT, LP and HS modes.
TABLE 11-9:
AC CHARACTERISTICS
Param
No.
Max
Units
Conditions
Characteristic
30
TMCL
2000*
ns
VDD = 5.0V
31
TWDT
9*
18*
30*
ms
32
TDRT
9*
18*
30*
ms
34
TIOZ
2000*
ns
*
Note 1:
Min
Typ(1)
Sym
Preliminary
DS41338B-page 71
MCV14A
FIGURE 11-7:
T0CKI
40
41
42
AC CHARACTERISTICS
Param
Sym
No.
40
41
42
*
Note 1:
Tt0H
Tt0L
Tt0P
Characteristic
T0CKI High Pulse
Width
T0CKI Low Pulse
Width
T0CKI Period
Min
No Prescaler
With Prescaler
No Prescaler
With Prescaler
ns
10*
ns
ns
10*
ns
20 or TCY + 40* N
ns
Conditions
Whichever is greater.
N = Prescale Value
(1, 2, 4,..., 256)
DS41338B-page 72
Preliminary
MCV14A
TABLE 11-11: FLASH DATA MEMORY WRITE/ERASE TIME
Standard Operating Conditions (unless otherwise specified)
Operating Temperature -40C TA +85C (industrial)
Operating Voltage VDD range is described in
Section 11.1 DC Characteristics: MCV14A (Industrial)
AC CHARACTERISTICS
Param
No.
Sym
Characteristic
Min
Typ(1)
Max
Units
43
TDW
3.5
ms
44
TDE
3.5
ms
*
Note 1:
Conditions
Preliminary
DS41338B-page 73
MCV14A
NOTES:
DS41338B-page 74
Preliminary
MCV14A
12.0
PACKAGING INFORMATION
12.1
Example
XXXXXXXXXXXXXX
XXXXXXXXXXXXXX
YYWWNNN
MCV14A
-I/PG e3 0215
0410017
Example
MCV14A-E
/SLG0125
0431017
XXXXXXXXXXX
XXXXXXXXXXX
YYWWNNN
Legend: XX...X
Y
YY
WW
NNN
e3
Note:
Customer-specific information
Year code (last digit of calendar year)
Year code (last 2 digits of calendar year)
Week code (week of January 1 is week 01)
Alphanumeric traceability code
Pb-free JEDEC designator for Matte Tin (Sn)
This package is Pb-free. The Pb-free JEDEC designator ( e3 )
can be found on the outer packaging for this package.
In the event the full Microchip part number cannot be marked on one line, it will
be carried over to the next line thus limiting the number of available characters
for customer specific information.
Standard MCV device marking consists of Microchip part number, year code, week code, and traceability
code. For MCV device marking beyond this, certain price adders apply. Please check with your Microchip
Sales Office. For QTP devices, any special marking adders are included in QTP price.
Preliminary
DS41338B-page 75
MCV14A
14-Lead Plastic Dual In-Line (P) 300 mil Body [PDIP]
Note:
For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
NOTE 1
E1
D
E
A2
L
A1
b1
b
eB
Units
Dimension Limits
Number of Pins
INCHES
MIN
NOM
MAX
14
Pitch
.210
A2
.115
.130
.195
A1
.015
.290
.310
.325
E1
.240
.250
.280
Overall Length
.735
.750
.775
.115
.130
.150
Lead Thickness
.008
.010
.015
b1
.045
.060
.070
.014
.018
.022
eB
.100 BSC
.430
Notes:
1. Pin 1 visual index feature may vary, but must be located with the hatched area.
2. Significant Characteristic.
3. Dimensions D and E1 do not include mold flash or protrusions. Mold flash or protrusions shall not exceed .010" per side.
4. Dimensioning and tolerancing per ASME Y14.5M.
BSC: Basic Dimension. Theoretically exact value shown without tolerances.
Microchip Technology Drawing C04-005B
DS41338B-page 76
Preliminary
MCV14A
14-Lead Plastic Small Outline (SL) Narrow, 3.90 mm Body [SOIC]
Note:
For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
D
N
E
E1
NOTE 1
1
e
h
A2
A1
L1
Units
Dimension Limits
Number of Pins
MILLIMETERS
MIN
NOM
MAX
14
Pitch
Overall Height
1.27 BSC
A2
1.25
Standoff
A1
0.10
0.25
Overall Width
E1
3.90 BSC
Overall Length
8.65 BSC
1.75
6.00 BSC
Chamfer (optional)
0.25
0.50
Foot Length
0.40
1.27
Footprint
L1
1.04 REF
Foot Angle
Lead Thickness
0.17
0.25
Lead Width
0.31
0.51
15
15
Notes:
1. Pin 1 visual index feature may vary, but must be located within the hatched area.
2. Significant Characteristic.
3. Dimensions D and E1 do not include mold flash or protrusions. Mold flash or protrusions shall not exceed 0.15 mm per side.
4. Dimensioning and tolerancing per ASME Y14.5M.
BSC: Basic Dimension. Theoretically exact value shown without tolerances.
REF: Reference Dimension, usually without tolerance, for information purposes only.
Microchip Technology Drawing C04-065B
Preliminary
DS41338B-page 77
MCV14A
APPENDIX A:
REVISION HISTORY
DS41338B-page 78
Preliminary
MCV14A
INDEX
A
A/D
POR
Specifications.............................................................. 66
ALU ....................................................................................... 7
B
Block Diagram
Comparator for the MCV14A ...................................... 55
On-Chip Reset Circuit ................................................. 43
Timer0......................................................................... 29
TMR0/WDT Prescaler................................................. 33
Watchdog Timer.......................................................... 46
Q
Q cycles .............................................................................. 10
Carry ..................................................................................... 7
Clocking Scheme ................................................................ 10
Code Protection ............................................................ 35, 48
CONFIG1 Register.............................................................. 36
Configuration Bits................................................................ 35
D
Digit Carry ............................................................................. 7
E
Errata .................................................................................... 3
F
Flash Data Memory
Code Protection .......................................................... 22
FSR ..................................................................................... 18
Fuses. See Configuration Bits
R
RC Oscillator....................................................................... 38
Read-Modify-Write.............................................................. 27
Register File Map
MCV14A ..................................................................... 12
Registers
CONFIG1 (Configuration Word Register 1)................ 36
Special Function ................................................... 12, 13
Reset .................................................................................. 35
S
Sleep ............................................................................ 35, 47
Special Features of the CPU .............................................. 35
Special Function Registers ........................................... 12, 13
Stack................................................................................... 17
STATUS Register ............................................................... 49
Status Register ............................................................... 7, 14
Loading of PC ..................................................................... 17
M
Memory Map
MCV14A...................................................................... 11
Memory Organization.......................................................... 11
Flash Data Memory..................................................... 19
Program Memory (MCV14A) ...................................... 11
Timer0
Timer0 ........................................................................ 29
Timer0 (TMR0) Module .............................................. 29
TMR0 with External Clock .......................................... 31
Timing Diagrams and Specifications .................................. 68
Timing Parameter Symbology and Load Conditions .......... 67
TRIS Register ..................................................................... 23
Z
Zero bit ................................................................................. 7
O
Option Register ................................................................... 15
OSC selection ..................................................................... 35
OSCCAL Register ............................................................... 16
Oscillator Configurations ..................................................... 37
Oscillator Types
HS ............................................................................... 37
LP................................................................................ 37
RC............................................................................... 37
XT ............................................................................... 37
Preliminary
DS41338B-page 79
MCV14A
NOTES:
DS41338B-page 80
Preliminary
MCV14A
PRODUCT IDENTIFICATION SYSTEM
To order or obtain information, e.g., on pricing or delivery, refer to the factory or the listed sales office.
PART NO.
/XX
XXX
Device
Temperature
Range
Package
Pattern
Examples:
a)
b)
Device:
MCV14A
MCV14AT(1)
Temperature
Range:
Package:
P
SL
Pattern:
Special Requirements
=
=
Plastic (PDIP)
14L Small Outline, 3.90 mm (SOIC)
Note 1:
Preliminary
DS41338B-page 81
ASIA/PACIFIC
ASIA/PACIFIC
EUROPE
Corporate Office
2355 West Chandler Blvd.
Chandler, AZ 85224-6199
Tel: 480-792-7200
Fax: 480-792-7277
Technical Support:
http://support.microchip.com
Web Address:
www.microchip.com
India - Bangalore
Tel: 91-80-3090-4444
Fax: 91-80-3090-4080
India - New Delhi
Tel: 91-11-4160-8631
Fax: 91-11-4160-8632
Austria - Wels
Tel: 43-7242-2244-39
Fax: 43-7242-2244-393
Denmark - Copenhagen
Tel: 45-4450-2828
Fax: 45-4485-2829
India - Pune
Tel: 91-20-2566-1512
Fax: 91-20-2566-1513
France - Paris
Tel: 33-1-69-53-63-20
Fax: 33-1-69-30-90-79
Japan - Yokohama
Tel: 81-45-471- 6166
Fax: 81-45-471-6122
Germany - Munich
Tel: 49-89-627-144-0
Fax: 49-89-627-144-44
Atlanta
Duluth, GA
Tel: 678-957-9614
Fax: 678-957-1455
Boston
Westborough, MA
Tel: 774-760-0087
Fax: 774-760-0088
Chicago
Itasca, IL
Tel: 630-285-0071
Fax: 630-285-0075
Cleveland
Independence, OH
Tel: 216-447-0464
Fax: 216-447-0643
Dallas
Addison, TX
Tel: 972-818-7423
Fax: 972-818-2924
Detroit
Farmington Hills, MI
Tel: 248-538-2250
Fax: 248-538-2260
Kokomo
Kokomo, IN
Tel: 765-864-8360
Fax: 765-864-8387
Los Angeles
Mission Viejo, CA
Tel: 949-462-9523
Fax: 949-462-9608
Santa Clara
Santa Clara, CA
Tel: 408-961-6444
Fax: 408-961-6445
Toronto
Mississauga, Ontario,
Canada
Tel: 905-673-0699
Fax: 905-673-6509
Australia - Sydney
Tel: 61-2-9868-6733
Fax: 61-2-9868-6755
China - Beijing
Tel: 86-10-8528-2100
Fax: 86-10-8528-2104
Korea - Daegu
Tel: 82-53-744-4301
Fax: 82-53-744-4302
China - Chengdu
Tel: 86-28-8665-5511
Fax: 86-28-8665-7889
China - Hong Kong SAR
Tel: 852-2401-1200
Fax: 852-2401-3431
Korea - Seoul
Tel: 82-2-554-7200
Fax: 82-2-558-5932 or
82-2-558-5934
China - Nanjing
Tel: 86-25-8473-2460
Fax: 86-25-8473-2470
China - Qingdao
Tel: 86-532-8502-7355
Fax: 86-532-8502-7205
Malaysia - Penang
Tel: 60-4-227-8870
Fax: 60-4-227-4068
China - Shanghai
Tel: 86-21-5407-5533
Fax: 86-21-5407-5066
Philippines - Manila
Tel: 63-2-634-9065
Fax: 63-2-634-9069
China - Shenyang
Tel: 86-24-2334-2829
Fax: 86-24-2334-2393
Singapore
Tel: 65-6334-8870
Fax: 65-6334-8850
China - Shenzhen
Tel: 86-755-8203-2660
Fax: 86-755-8203-1760
China - Wuhan
Tel: 86-27-5980-5300
Fax: 86-27-5980-5118
Taiwan - Kaohsiung
Tel: 886-7-536-4818
Fax: 886-7-536-4803
China - Xiamen
Tel: 86-592-2388138
Fax: 86-592-2388130
Taiwan - Taipei
Tel: 886-2-2500-6610
Fax: 886-2-2508-0102
China - Xian
Tel: 86-29-8833-7252
Fax: 86-29-8833-7256
Thailand - Bangkok
Tel: 66-2-694-1351
Fax: 66-2-694-1350
Italy - Milan
Tel: 39-0331-742611
Fax: 39-0331-466781
Netherlands - Drunen
Tel: 31-416-690399
Fax: 31-416-690340
Spain - Madrid
Tel: 34-91-708-08-90
Fax: 34-91-708-08-91
UK - Wokingham
Tel: 44-118-921-5869
Fax: 44-118-921-5820
China - Zhuhai
Tel: 86-756-3210040
Fax: 86-756-3210049
03/26/09
DS41338B-page 82
Preliminary