PIC16HV540-04/P Microchip Technology, PIC16HV540-04/P Datasheet

IC MCU OTP 512X12 18DIP

PIC16HV540-04/P

Manufacturer Part Number
PIC16HV540-04/P
Description
IC MCU OTP 512X12 18DIP
Manufacturer
Microchip Technology
Series
PIC® 16Cr

Specifications of PIC16HV540-04/P

Core Size
8-Bit
Program Memory Size
768B (512 x 12)
Core Processor
PIC
Speed
4MHz
Peripherals
Brown-out Detect/Reset, POR, WDT
Number Of I /o
12
Program Memory Type
OTP
Ram Size
25 x 8
Voltage - Supply (vcc/vdd)
3.5 V ~ 15 V
Oscillator Type
External
Operating Temperature
0°C ~ 70°C
Package / Case
18-DIP (0.300", 7.62mm)
Controller Family/series
PIC16HV
No. Of I/o's
12
Ram Memory Size
25Byte
Cpu Speed
4MHz
No. Of Timers
1
Digital Ic Case Style
DIP
Processor Series
PIC16H
Core
PIC
Data Bus Width
8 bit
Data Ram Size
25 B
Maximum Clock Frequency
4 MHz
Number Of Programmable I/os
12
Number Of Timers
8
Operating Supply Voltage
3.5 V to 15 V
Maximum Operating Temperature
+ 70 C
Mounting Style
Through Hole
Minimum Operating Temperature
0 C
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
AC164001 - MODULE SKT PROMATEII 18/28DIP
Eeprom Size
-
Data Converters
-
Connectivity
-
Lead Free Status / Rohs Status
 Details

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16HV540-04/P
Manufacturer:
Microchip
Quantity:
1 736
High-Performance RISC CPU:
• Only 33 single word instructions to learn
• All instructions are single cycle (200 ns) except for
• Operating speed: DC - 20 MHz clock input
• 12-bit wide instructions
• 8-bit wide data path
• Seven special function hardware registers
• Four-level deep hardware stack
• Direct, indirect and relative addressing modes for
Peripheral Features:
• 8-bit real time clock/counter (TMR0) with 8-bit pro-
• Power-On Reset (POR)
• Brown-Out Protection
• Device Reset Timer (DRT) with short RC oscilla-
• Programmable Watchdog Timer (WDT) with its
• Sleep Timer
• 8 High Voltage I/O
• 4 Regulated I/O
• Wake up from SLEEP on-pin change
• Programmable code protection
• Power saving SLEEP mode
• Selectable oscillator options:
• Glitch filtering on MCLR and pin change inputs
program branches which are two-cycle
data and instructions
grammable prescaler
tor start-up time
own on-chip RC oscillator for reliable operation
- RC:
- XT:
- HS:
- LP:
2000 Microchip Technology Inc.
Enhanced PIC16C54 EPROM-Based 8-Bit CMOS Microcontroller
Low-cost RC oscillator
Standard crystal/resonator
High speed crystal/resonator
Power saving, low frequency crystal
DC - 200 ns instruction cycle
With On-Chip Voltage Regulator
Preliminary
Pin Configurations
CMOS Technology:
• Selectable on-chip 3V/5V Regulator
• Low-power, high-speed CMOS EPROM technol-
• Fully static design
• Wide-operating voltage range:
• Temperature range:
• Low-power consumption
PIC16HV540
MCLR/V
MCLR/V
PDIP, SOIC, Windowed CERDIP
SSOP
ogy
- 3.5V to 15V
- Commercial: 0 C to 70 C
- Industrial: -40 C to 85 C
- < 2 mA typical @ 5V, 4 MHz
- 15 A typical @ 3V, 32 kHz
- < 4.5 A typical standby current @ 15V (with
WDT disabled), 0 C to 70 C
T0CKI
T0CKI
RA2
RA3
RB0
RB1
RB2
RB3
RA2
RA3
RB0
RB1
RB2
RB3
V
V
V
PP
SS
PP
SS
SS
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
10
1
1
18
17
16
15
14
13
12
11
10
20
19
18
17
16
15
14
13
12
11
DS40197B-page 1
RA1
RA0
OSC1/CLKIN
OSC2/CLKOUT
V
RB7
RB6
RB5
RB4
RA1
RA0
OSC1/CLKIN
OSC2/CLKOUT
V
V
RB7
RB6
RB5
RB4
DD
DD
DD

Related parts for PIC16HV540-04/P

PIC16HV540-04/P Summary of contents

Page 1

... Power saving SLEEP mode • Selectable oscillator options: - RC: Low-cost RC oscillator - XT: Standard crystal/resonator - HS: High speed crystal/resonator - LP: Power saving, low frequency crystal • Glitch filtering on MCLR and pin change inputs 2000 Microchip Technology Inc. PIC16HV540 Pin Configurations PDIP, SOIC, Windowed CERDIP RA2 1 RA3 2 T0CKI 3 MCLR ...

Page 2

... Special Features of the CPU ..................................................................................................................... 31 8.0 Instruction Set Summary ........................................................................................................................... 43 9.0 Development Support ................................................................................................................................ 55 10.0 Electrical Characteristics - PIC16HV540 ................................................................................................... 61 11.0 DC and AC Characteristics - PIC16HV540................................................................................................ 69 12.0 Packaging Information ............................................................................................................................... 73 Index ........................................................................................................................................................................ 79 On-Line Support ....................................................................................................................................................... 81 Reader Response .................................................................................................................................................... 82 PIC16HV540 Product Identification System............................................................................................................. 83 Most Current Data Sheet To obtain the most up-to-date version of this data sheet, please check our Worldwide Web site at: http://www ...

Page 3

... The small footprint package, for through hole or surface mounting, make this microcontroller suitable for applications with space limitations. Low-cost, low-power, high-performance, ease of use and I/O flexibility make the PIC16HV540 very versatile even in areas where no microcontroller 2000 Microchip Technology Inc. PIC16HV540 use has been considered before (e.g., timer functions, replacement of “ ...

Page 4

... TMR0, bit 0 and by setting the prescaler, clock out frequencies of CLKIN/8 to CLKIN/1024 can be generated. The CLKOUT pin can also be used as a general purpose output by modifying TMR0, bit 0. DS40197B-page 4 TABLE 1-1: PIC16HV540 DEVICE Clock Maximum Frequency (MHz) Memory EPROM Program Memory RAM Data Memory (bytes) ...

Page 5

... When placing orders, please use the PIC16HV540 Product Identification System at the back of this data sheet to specify the correct part number. For the PIC16HV540 family of devices, there is one device type, as indicated in the device number PIC16HV540. These devices have EPROM program memory and operate over the standard voltage range of 3 ...

Page 6

... PIC16HV540 NOTES: DS40197B-page 6 Preliminary 2000 Microchip Technology Inc. ...

Page 7

... Consequently, all instructions (33) execute in a single cycle (200ns @ 20MHz) except for program branches. The PIC16HV540 address 512 program mem- ory. All program memory is internal. The PIC16HV540 can directly or indirectly address its register files and data memory. All special function reg- isters including the program counter are mapped in the data memory ...

Page 8

... PIC16HV540 FIGURE 3-1: PIC16HV540 BLOCK DIAGRAM 4 RB7 RB<3:0> FILTER BOD PC PCWU (PIN CHANGE) 9-11 9-11 EPROM 512 INSTRUCTION REGISTER 9 12 INSTRUCTION DECODER DIRECT ADDRESS 8 STATUS W ALU “TRIS 5” RL/ 3V/5V Regulator DS40197B-page 3V/5V Regulator V REG RL/SL SWDTEN (OPTION2 REGISTER) BODL/BODEN T0CKI CONFIGURATION WORD ...

Page 9

... TABLE 3-1: PINOUT DESCRIPTION - PIC16HV540 DIP, SOIC SSOP Name No. No. RA0 17 19 RA1 18 20 RA2 1 1 RA3 2 2 RB0 6 7 RB1 7 8 RB2 8 9 RB3 9 10 RB4 10 11 RB5 11 12 RB6 12 13 RB7 13 14 T0CKI 3 3 MCLR OSC1/CLKIN 16 18 OSC2/CLKOUT 15 17 ...

Page 10

... PIC16HV540 3.1 Clocking Scheme/Instruction Cycle The clock input (OSC1/CLKIN pin) is internally divided by four to generate four non-overlapping quadrature clocks namely Q1, Q2, Q3 and Q4. Internally, the pro- gram counter is incremented every Q1, and the instruc- tion is fetched from program memory and latched into instruction register in Q4 decoded and executed during the following Q1 through Q4 ...

Page 11

... Accessing a location above the physically implemented address will cause a wrap- around. The reset vector for the PIC16HV540 is at 1FFh. A NOP at the reset vector location will cause a restart at location 000h. FIGURE 4-1: PIC16HV540 PROGRAM MEMORY MAP AND STACK PC< ...

Page 12

... Shaded boxes = unimplemented or unused, – = unimplemented, read as ’0’ (if applicable unknown unchanged value depends on condition. Note 1: The upper byte of the Program Counter is not directly accessible. See Section 4.6 of the PIC16HV540 data sheet (DS40197B) for an expla- nation of how to access these bits. DS40197B-page 12 ...

Page 13

... STATUS bits, see Section 8.0, Instruction Set Summary. R-1 R/W-x R/W-x R/W bit0 SUBWF RRF or RLF borrow did not occur Load bit with LSb or MSb, respectively borrow occurred Preliminary PIC16HV540 R = Readable bit W = Writable bit - n = Value at POR reset DS40197B-page 13 ...

Page 14

... PIC16HV540 4.4 OPTION Register The OPTION register is a 6-bit wide, write-only register which contains various control bits to configure the Timer0/WDT prescaler and Timer0. EXAMPLE 4-1: INSTRUCTIONS FOR INITIALIZING OPTION REGISTER movlw ‘0000 0111’b ; load OPTION setup value into W OPTION ; initialize OPTION register ...

Page 15

... OPTION2 Register The OPTION2 register is a 6-bit wide, write-only regis- ter which contains various control bits to configure the added features on the PIC16HV540. A Power-on Reset sets the OPTION2<5:0> bits. Example 4-2 illustrates how to initialize the OPTION2 register. Note: All Power-on Resets will disable the Brown-out Detect circuit ...

Page 16

... Stack PIC16HV540 device has a 12-bit wide L.I.F.O. (last in, first out) hardware 4 level stack. A CALL instruction will push the current value of stack 1 into stack 2 and then push the current program counter value, incremented by one, into stack level 1. If more than four sequential CALL’ ...

Page 17

... CONTINUE : The FSR is a 5-bit (PIC16HV540) wide register used in conjunction with the INDF register to indirectly address the data memory area. The FSR<4:0> bits are used to select data memory addresses 00h to 1Fh. PIC16HV540: Do not use banking. FSR<6:5> are unimplemented and read as '1's ...

Page 18

... PIC16HV540 NOTES: DS40197B-page 18 Preliminary 2000 Microchip Technology Inc. ...

Page 19

... To use a port pin as output, the corresponding direction control bit (in TRISA, TRISB) must be cleared (= 0). For use as an input, the corresponding TRIS bit must be set. Any I/O pin can be programmed individually as input or output. Preliminary PIC16HV540 DS40197B-page 19 ...

Page 20

... PIC16HV540 FIGURE 5-1: BLOCK DIAGRAM OF PORTA<0:3> PINS DATA BUS D Data WR Latch PORTA CK W REG D TRIS TRIS Latch PORTA CK Reset FIGURE 5-2: BLOCK DIAGRAM OF PORTB<0:3> PINS DATA BUS D Q Data WR Latch PORTB REG D Q TRIS TRIS Latch PORTB PORTB WAKE-UP ON PIN CHANGE ...

Page 21

... BLOCK DIAGRAM OF PORTB<7> PIN DATA BUS D Q Data WR Latch PORTB REG D Q TRIS TRIS Latch PORTB PORTB 2000 Microchip Technology Inc Step-up P Circuit Step-down Step-up P Circuit Step-down Circuit WAKE-UP ON PIN CHANGE Preliminary PIC16HV540 V DD RB4-RB6 pins V SS Circuit V DD RB7 pin V SS DS40197B-page 21 ...

Page 22

... PIC16HV540 TABLE 5-1: SUMMARY OF PORT REGISTERS Name Address Bit 7 Bit 6 Bit 5 N/A TRIS I/O control registers (TRISA, TRISB) 05h PORTA — — — 06h PORTB RB7 RB6 RB5 03h STATUS PCWUF PA1 PA0 N/A OPTION2 — — PCWU Legend: Shaded boxes = unimplemented, read as ‘0’, —= unimplemented, read as '0 unknown unchanged. ...

Page 23

... MOVF PORTB,W RB7:RB0 Port pin written here Instruction executed MOVWF PORTB (Write to PORTB) 2000 Microchip Technology Inc NOP NOP Port pin sampled here MOVF PORTB,W NOP (Read PORTB) Preliminary PIC16HV540 This example shows a write to PORTB followed by a read from PORTB. DS40197B-page 23 ...

Page 24

... PIC16HV540 NOTES: DS40197B-page 24 Preliminary 2000 Microchip Technology Inc. ...

Page 25

... A summary of registers associated with the Timer0 module is found in Table 6-1. PSout 1 Sync with Internal Clocks Programmable 0 (2) Prescaler (2 cycle delay) 3 (1) (1) PSA PS2, PS1, PS0 Internal Oscillator Drive Circuit Preliminary PIC16HV540 Data bus TMR0 reg PSout Sync OSC2/ M CLKOUT U X “SLEEP” Oscillator Mode (3) Select DS40197B-page 25 ...

Page 26

... PIC16HV540 FIGURE 6-2: ELECTRICAL STRUCTURE OF T0CKI PIN T0CKI pin Note 1: FIGURE 6-3: TIMER0 TIMING: INTERNAL CLOCK/NO PRESCALE (Program Counter) PC-1 PC Instruction MOVWF TMR0 MOVF TMR0,WMOVF TMR0,WMOVF TMR0,WMOVF TMR0,WMOVF TMR0,W Fetch T0 T0+1 Timer0 Instruction Executed FIGURE 6-4: TIMER0 TIMING: INTERNAL CLOCK/PRESCALE 1:2 ...

Page 27

... Timer0 mod- ule is actually incremented. Figure 6-5 shows the delay from the external clock edge to the timer incrementing ( Preliminary PIC16HV540 Small pulse misses sampling 4Tosc max. DS40197B-page 27 ...

Page 28

... MOVLW ’xxxx0xxx’ OPTION 6.3 Programmable Clock Generator When the PIC16HV540 is programmed to operate in the RC oscillator mode, the CLKOUT pin is connected to the compliment state of TMR0<0>. Use of the pres- caler rate select bits PSA:PS0 in the OPTION register will provide for frequencies of CLKIN/8 to CLKIN/1024 on the CLKOUT pin ...

Page 29

... SWDTEN is a bit in the OPTION2 register. 2000 Microchip Technology Inc Sync Cycles (1) (1) PSA 8-bit Prescaler 8 (1) PS<2:0> Internal Oscillator 1MUX Drive Circuit 1 0 (1) MUX PSA WDT Time-Out Preliminary PIC16HV540 Data Bus TMR0 reg OSC2/ M CLKOUT U X “SLEEP” Oscillator Mode Select DS40197B-page 29 ...

Page 30

... PIC16HV540 NOTES: DS40197B-page 30 Preliminary 2000 Microchip Technology Inc. ...

Page 31

... Wake-up from SLEEP on Pin Change • Enhanced Watchdog Timer (WDT) • SLEEP • Code protection The PIC16HV540 Family has a Watchdog Timer which can be shut off only through configuration bit WDTEN. It runs off of its own RC oscillator for added reliability. There delay provided by the Device Reset Timer (DRT), intended to keep the chip in reset until the crystal oscillator is stable ...

Page 32

... PIC16HV540 7.2 Oscillator Configurations 7.2.1 OSCILLATOR TYPES The PIC16HV540 can be operated in four different oscillator modes. The user can program two configura- tion bits (FOSC1:FOSC0) to select one of these four modes: • LP: Low Power Crystal • XT: Crystal/Resonator • HS: High Speed Crystal/Resonator • RC: ...

Page 33

... R and C compo- OSC2 nents used. Figure 7-5 shows how the R/C combination is con- nected to the PIC16HV540. For Rext values below 2 the oscillator operation may become unstable, or stop completely. For very high Rext values (e.g the oscillator becomes sensitive to noise, humidity and leakage ...

Page 34

... If you change from this device to another device, please verify oscillator characteris- tics in your application. DS40197B-page 34 7.3 Reset PIC16HV540 devices may be reset in one of the follow- ing ways: • Power-On Reset (POR) • MCLR reset (normal operation) • MCLR wake-up reset (from SLEEP) for given Rext/ • ...

Page 35

... POR (Power-on Reset) BOR (Brown-out Reset) WDT Time-out RESET 8-bit Asynch Ripple Counter (Start-up Timer) Preliminary PIC16HV540 STATUS Addr: 03h 1001 1xxx (1) u00u uuuu 1001 0uuu (2) u000 1uuu 1000 0uuu 000u uuuu x00x xxxx ...

Page 36

... If these conditions are not met, the device must be held in reset until the operating conditions are met. For more information on PIC16HV540 POR, see Power-Up Considerations - AN522 in the Embedded Control Handbook. The POR circuit does not produce an internal reset when V declines ...

Page 37

... T DD this example, the chip will reset properly if, and only if, V1 2000 Microchip Technology Inc. T DRT V1 time-out expires long before V has reached its final value. In DRT DD V min. DD Preliminary PIC16HV540 ) DD T DRT ): FAST V RISE TIME SLOW V RISE TIME DD DD DS40197B-page 37 ...

Page 38

... REG is 1.8V. This minimum B V minimum requirements. This operational setting is DD primarily intended for use when the PIC16HV540 is in SLEEP. RAM retention is protected by the 1.8V trip level. For the regulation and Brown-out circuits to function as intended the applied V the regulation voltage setting. ...

Page 39

... WDT. This gives the max- imum SLEEP time before a WDT Wake-up Reset. 7.8 Internal Voltage Regulators The PIC16HV540 has 2 internal voltage regulators. The PORTA I/O pads and OSC2 are powered by one internal voltage regulator V voltage regulator V , powers the PICmicro REG core ...

Page 40

... PIC16HV540 voltage may approach the maximum value. Again this condition should be considered when interfacing to external circuitry. In addition, the voltage level applied to the external V pin and operational temperature affects the internal regulation voltage. FIGURE 7-12: WATCHDOG TIMER BLOCK DIAGRAM From TMR0 Clock Source ...

Page 41

... SLEEP is invoked. The PCWUF bit indicates a change in state while in SLEEP at pins PORTB:<0-3,7> (since the SLEEP state was entered). The WDT is cleared when the device wakes from SLEEP, regardless of the wake-up source. Preliminary PIC16HV540 is cleared, the PCWUF bit pin low. ...

Page 42

... PIC16HV540 7.11 Program Verification/Code Protection If the code protection bit(s) have not been pro- grammed, the on-chip program memory can be read out for verification purposes. Note: Microchip does not recommend code pro- tecting windowed devices. 7.12 ID Locations Four memory locations are designated as ID locations where the user can store checksum or other code-iden- tification numbers ...

Page 43

... INSTRUCTION SET SUMMARY Each PIC16HV540 instruction is a 12-bit word divided into an OPCODE, which specifies the instruction type, and one or more operands which further specify the operation of the instruction. The PIC16HV540 instruc- tion set summary in Table 8-2 groups the instructions into byte-oriented, bit-oriented, and literal and control operations ...

Page 44

... PIC16HV540 TABLE 8-2: INSTRUCTION SET SUMMARY Mnemonic, Description Operands ADDWF f,d Add W and f ANDWF f,d AND W with f CLRF f Clear f CLRW – Clear W COMF f, d Complement f DECF f, d Decrement f DECFSZ f, d Decrement f, Skip if 0 INCF f, d Increment f INCFSZ f, d Increment f, Skip if 0 IORWF ...

Page 45

... Operands: Operation: Status Affected: None Encoding: Description: . Words: Cycles: Example: Before Instruction FLAG_REG = 0xC7 After Instruction FLAG_REG = 0x47 Preliminary PIC16HV540 AND W with f [ label ] ANDWF f (W) .AND. (f) (dest) 0001 01df ffff The contents of the W register are AND’ed with register 'f the result is stored in the W register ...

Page 46

... PIC16HV540 BSF Bit Set f Syntax: [ label ] BSF f,b Operands Operation: 1 (f<b>) Status Affected: None Encoding: 0101 bbbf ffff Description: Bit ’b’ in register ’f’ is set. Words: 1 Cycles: 1 Example: BSF FLAG_REG, Before Instruction FLAG_REG = 0x0A After Instruction FLAG_REG = 0x8A BTFSC Bit Test f, Skip if Clear ...

Page 47

... Z bit is set. Words: 1 Cycles: 1 Example: CLRF FLAG_REG Before Instruction FLAG_REG = 0x5A After Instruction FLAG_REG = 0x00 2000 Microchip Technology Inc. PIC16HV540 CLRW Clear W Syntax: [ label ] CLRW Operands: None Operation: 00h (W Status Affected: Z Encoding: 0000 Description: The W register is cleared. Zero bit (Z) is set. Words: 1 ...

Page 48

... PIC16HV540 COMF Complement f Syntax: [ label ] COMF f,d Operands [0,1] Operation: (f) (dest) Status Affected: Z Encoding: 0010 01df ffff Description: The contents of register ’f’ are comple- mented. If ’d’ the result is stored in the W register. If ’d’ the result is stored back in register ’f’. ...

Page 49

... Words: Cycles: Example: Before Instruction RESULT = W After Instruction RESULT = W Z CNT, 1 LOOP Preliminary PIC16HV540 Inclusive OR literal with W [ label ] IORLW 255 (W) .OR. (k) (W) 1101 kkkk kkkk The contents of the W register are OR’ed with the eight bit literal 'k'. The result is placed in the W register. ...

Page 50

... PIC16HV540 MOVF Move f Syntax: [ label ] MOVF f,d Operands [0,1] Operation: (f) (dest) Status Affected: Z Encoding: 0010 00df ffff Description: The contents of register ’f’ is moved to destination ’d’. If ’d’ destination is the W register. If ’d’ the destination is file register ’f’. ’d’ useful to test a file register since status flag Z is affected ...

Page 51

... RETLW k2 ; • • • RETLW kn ; End of table Before Instruction W = 0x07 After Instruction W = value of k8 2000 Microchip Technology Inc. PIC16HV540 RLF Rotate Left f through Carry Syntax: [ label ] Operands [0,1] Operation: See description below Status Affected: C Encoding: 0011 Description: The contents of register ’f’ are rotated one bit to the left through the Carry Flag. If ’ ...

Page 52

... PIC16HV540 SLEEP Enter SLEEP Mode Syntax: [label] SLEEP Operands: None Operation: 00h WDT; 0 WDT prescaler PCWUF Status Affected: TO, PD, PCWUF Encoding: 0000 0000 0011 Description: Time-out status bit (TO) is set. The power down status bit (PD) is cleared. The WDT and its prescaler are cleared ...

Page 53

... Cycles: 1 Example TRIS PORTA Before Instruction W = 0XA5 After Instruction TRISA = 0XA5 *A TRIS 7 operation will update the OPTION2 SFR. 2000 Microchip Technology Inc. PIC16HV540 XORLW Exclusive OR literal with W Syntax: [label] Operands 255 Operation: (W) .XOR. k Status Affected: Z Encoding: 1111 Description: The contents of the W register are XOR’ ...

Page 54

... PIC16HV540 NOTES: DS40197B-page 54 Preliminary 2000 Microchip Technology Inc. ...

Page 55

... Customizable tool bar and key mapping • A status bar • On-line help 2000 Microchip Technology Inc. PIC16HV540 MPLAB allows you to: • Edit your source files (either assembly or ‘C’) • One touch assemble (or compile) and download to PICmicro tools (automatically updates all project information) • ...

Page 56

... PIC16HV540 9.4 MPLINK/MPLIB Linker/Librarian MPLINK is a relocatable linker for MPASM and MPLAB-C17 and MPLAB-C18. It can link relocatable objects from assembly or C source files along with pre- compiled libraries using directives from a linker script. MPLIB is a librarian for pre-compiled code to be used with MPLINK ...

Page 57

... The PICDEM-3 provides an addi- tional RS-232 interface and Windows 3.1 software for showing the demultiplexed LCD signals on a PC. A sim- ple serial interface allows the user to construct a hard- ware demultiplexer for the LCD signals. Preliminary PIC16HV540 DS40197B-page 57 ...

Page 58

... PIC16HV540 9.16 PICDEM-17 The PICDEM- evaluation board that demon- strates the capabilities of several Microchip microcon- trollers, including PIC17C752, PIC17C762, and PIC17C766. All necessary hardware is included to run basic demo programs, which are sup- plied on a 3.5-inch disk. A programmed sample is included, and the user may erase it and program it with ...

Page 59

... Debugger Programmers Kits Eval Preliminary PIC16HV540 á á á á á á á á and Boards Demo DS40197B-page 59 ...

Page 60

... PIC16HV540 NOTES: DS40197B-page 60 Preliminary 2000 Microchip Technology Inc. ...

Page 61

... ELECTRICAL CHARACTERISTICS - PIC16HV540 † Absolute Maximum Ratings Ambient temperature under bias.............................................................................................................. –20°C to +85°C Storage temperature ............................................................................................................................. –65°C to +150°C Voltage on V with respect to V ...................................................................................................................0 to +16V SS DD Voltage on MCLR with respect to V ................................................................................................................0 to +14V SS Voltage on all other pins with respect to V ...

Page 62

... PIC16HV540 10.1 DC Characteristics: PIC16HV540-04, 20 (Commercial) PIC16HV540-04I, 20I (Industrial) DC Characteristics Power Supply Pins Characteristic Sym. Supply Voltage V (2) RAM Data Retention Voltage V V start voltage to ensure V DD POR Power-on Reset V rise rate to ensure S DD VDD Power-on Reset (3) Supply Current option (4) XT and RC ...

Page 63

... Higher leakage current may be measured at different input voltage. 3: Negative current is defined as coming out of the pin. 4: For the RC option, the OSC1/CLKIN pin is a Schmitt Trigger input not recommended that the PIC16HV540 be driven with external clock in RC mode. 2000 Microchip Technology Inc. ...

Page 64

... Lowercase subscripts (pp) and their meanings CLKOUT cy cycle time drt device reset timer io I/O port Uppercase letters and their meanings Fall H High I Invalid (Hi-impedance) L Low FIGURE 10-1: LOAD CONDITIONS - PIC16HV540 Pin DS40197B-page 64 T Time mc MCLR osc oscillator os OSC1 t0 T0CKI wdt watchdog timer P Period R Rise V Valid Z ...

Page 65

... Timing Diagrams and Specifications FIGURE 10-2: EXTERNAL CLOCK TIMING - PIC16HV540 Q4 Q1 OSC1 CLKOUT TABLE 10-1: EXTERNAL CLOCK TIMING REQUIREMENTS - PIC16HV540 AC Characteristics Standard Operating Conditions (unless otherwise specified) Operating Temperature Parameter Sym. Characteristic No. F External CLKIN Frequency OSC Oscillator Frequency T External CLKIN Period ...

Page 66

... PIC16HV540 FIGURE 10-3: CLKOUT AND I/O TIMING - PIC16HV540 Q4 OSC1 CLKOUT I/O Pin (input) I/O Pin Old Value (output) Note: All tests must be done with specified capacitive loads I/O pins and CLKOUT. TABLE 10-2: CLKOUT AND I/O TIMING REQUIREMENTS - PIC16HV540 Standard Operating Conditions (unless otherwise specified) ...

Page 67

... FIGURE 10-4: RESET, WATCHDOG TIMER, AND DEVICE RESET TIMER TIMING - PIC16HV540 V DD MCLR Internal POR 32 DRT Time-out Internal RESET Watchdog Timer RESET I/O pin (Note 1) Note 1: I/O pins must be taken out of hi-impedance mode by enabling the output drivers in software. FIGURE 10-5: BROWN-OUT DETECT TIMING ...

Page 68

... PIC16HV540 TABLE 10-3: RESET, WATCHDOG TIMER, AND DEVICE RESET TIMER - PIC16HV540 AC Characteristics Standard Operating Conditions (unless otherwise specified) Operating Temperature Parameter No. Sym Characteristic 30 TmcL MCLR Pulse Width (low) Twdt Watchdog Timer Time-out Period 31 T Device Reset Timer Period DRT 32 Tio I/O Hi-impedance from MCLR Low ...

Page 69

... DC AND AC CHARACTERISTICS - PIC16HV540 The graphs and tables provided in this section are for design guidance and are not tested or guaranteed. In some graphs or tables the data presented are outside specified operating range (e.g., outside specified V mation only and devices will operate properly only within the specified range. ...

Page 70

... PIC16HV540 FIGURE 11-4: TYPICAL RC OSCILLATOR FREQUENCY vs 300pF) EXT 900 800.0 700.0 600.0 500 400.0 300.0 200 100k E XT 100.0 R 0.0 3 (V) DD FIGURE 11-5: TYPICAL I vs WATCHDOG TIMER DISABLED (V = 5V) IO 4.0 -40 3.5 3.0 2 2.0 1.5 1 (V) DD FIGURE 11-6: MAXIMUM I vs WATCHDOG TIMER ...

Page 71

... DD FIGURE 11-14: MAXIMUM 1000 900 800 700 600 500 400 300 15 200 100 Preliminary PIC16HV540 vs. DD FREQUENCY, WATCHDOG TIMER DISABLED, RC MODE (V = 15V 5V -40°C TO +85°C) 1 1.5 2 2.5 3 3.5 4 Frequency (MHz) vs. DD FREQUENCY, WATCHDOG TIMER ENABLED, RC MODE (V = 15V 5V) ...

Page 72

... PIC16HV540 FIGURE 11-15 PORTA 15V ( -10 - (V) OH Note: Current being applied is being applied simultaneously to all 4 PORTA pins. FIGURE 11-16 PORTA 5V -10 - (V) OH Note: Current being applied is being applied simultaneously to all 4 PORTA pins. DS40197B-page Preliminary 2000 Microchip Technology Inc. ...

Page 73

... L .125 .130 .135 c .008 .012 .015 B1 .045 .058 .070 B .014 .018 .022 eB .310 .370 .430 Preliminary PIC16HV540 MILLIMETERS MIN NOM MAX 18 2.54 3.56 3.94 4.32 2.92 3.30 3.68 0.38 7.62 7.94 8.26 6.10 6.35 6.60 22.61 22.80 22.99 3.18 3.30 3 ...

Page 74

... PIC16HV540 12.2 18-Lead Plastic Small Outline (SO) – Wide, 300 mil (SOIC Dimension Limits Number of Pins Pitch Overall Height Molded Package Thickness Standoff § Overall Width Molded Package Width Overall Length Chamfer Distance Foot Length Foot Angle Lead Thickness Lead Width Mold Draft Angle Top ...

Page 75

... B1 .050 .055 .060 B .016 .019 .021 eB .345 .385 .425 W1 .130 .140 .150 W2 .190 .200 .210 Preliminary PIC16HV540 MILLIMETERS MIN NOM MAX 18 2.54 4.32 4.64 4.95 3.94 4.06 4.19 0.38 0.57 0.76 7.62 7.94 8.26 7.24 7.37 7.49 22.35 22 ...

Page 76

... PIC16HV540 12.4 20-Lead Plastic Shrink Small Outline (SS) – 209 mil, 5.30 mm (SSOP Dimension Limits Number of Pins Pitch Overall Height Molded Package Thickness Standoff § Overall Width Molded Package Width Overall Length Foot Length Lead Thickness Foot Angle Lead Width Mold Draft Angle Top ...

Page 77

... For OTP 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. 2000 Microchip Technology Inc. PIC16HV540 Example PIC16HV540 XXXXXXXXXXXXXXXXX 9923NNN Example PIC16HV540 XXXXXXXXXXXX XXXXXXXXXXXX 9923NNN Example Example PIC16HV540 XXXXXXXXXXXX 9923NNN Preliminary PIC16HV5 XXXXXXXX 9923NNN DS40197B-page 77 ...

Page 78

... PIC16HV540 NOTES: DS40197B-page 78 Preliminary 2000 Microchip Technology Inc. ...

Page 79

... Timer0 (TMR0) Module TMR0 with External Clock Timing Diagrams and Specifications Timing Parameter Symbology and Load Conditions TRIS Registers U UV Erasable Devices W ............................................................................. 35 W Wake-up from SLEEP Wake-up from SLEEP on Pin Change .. 55 Watchdog Timer (WDT) Preliminary PIC16HV540 ........................ 5 ....................................................... 14 ............................................. 32 ...................................... 77 ................................................ ................. 57 ............... 57 ............. 57 ...... 57 , .............................31 38 ...

Page 80

... PIC16HV540 ................................................................ 39 Period ............................... 39 Programming Considerations ................................................ 2 WWW, On-Line Support Z ....................................................................... 7 Zero bit DS40197B-page 80 Preliminary 2000 Microchip Technology Inc. ...

Page 81

... Conferences for products, Development Systems, technical information and more • Listing of seminars and events 2000 Microchip Technology Inc. PIC16HV540 Systems Information and Upgrade Hot Line The Systems Information and Upgrade Line provides system users a listing of the latest versions of all of Microchip's development systems software products. ...

Page 82

... Company Address City / State / ZIP / Country Telephone: (_______) _________ - _________ Application (optional): Would you like a reply? Y Device: PIC16HV540 Questions How does this document meet your hardware and software development needs you find the organization of this data sheet easy to follow? If not, why? 4. ...

Page 83

... PIC16HV540 PRODUCT IDENTIFICATION SYSTEM To order or obtain information, e.g., on pricing or delivery, refer to the factory or the listed sales office. PIC16HV540 -XX X /XX XXX Sales and Support Data Sheets Products supported by a preliminary Data Sheet may have an errata sheet describing minor operational differences and recom- mended workarounds ...

Page 84

... Serialized Quick Turn Programming (SQTP service mark of Microchip Technology Incorporated in the U.S.A. All other trademarks mentioned herein are property of their respective companies. © 2002, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved. Printed on recycled paper. Microchip received QS-9000 quality system ...

Page 85

... Korea Microchip Technology Korea 168-1, Youngbo Bldg. 3 Floor Samsung-Dong, Kangnam-Ku Seoul, Korea 135-882 Tel: 82-2-554-7200 Fax: 82-2-558-5934 Singapore Microchip Technology Singapore Pte Ltd. 200 Middle Road #07-02 Prime Centre Singapore, 188980 Tel: 65-6334-8870 Fax: 65-6334-8850 Taiwan Microchip Technology Taiwan 11F-3, No. 207 ...

Related keywords