PIC16F59-E/P Microchip Technology, PIC16F59-E/P Datasheet
![IC PIC MCU FLASH 2KX12 40DIP](/photos/6/61/66192/150-40-dip_sml.jpg)
PIC16F59-E/P
Specifications of PIC16F59-E/P
Available stocks
Related parts for PIC16F59-E/P
PIC16F59-E/P Summary of contents
Page 1
... PIC16F59 1.0 PROGRAMMING THE PIC16F59 The PIC16F59 is programmed using a serial method. The Serial mode will allow the PIC16F59 to be programmed while in the user’s system. This allows for increased design flexibility. This specification applies to PIC16F59 devices in all packages ...
Page 2
... Function RB6 ICSPCLK RB7 ICSPDAT MCLR/V Program/Verify mode Legend Input Output Power Note 1: In the PIC16F59, the programming high voltage is internally generated. To activate the Program/Verify mode, high voltage of I IHH DS41243B-page 2 1 • 40 T0CKI 2 39 RE7 3 38 RE6 4 37 RE5 5 RE4 ...
Page 3
... MCLR pin was initially at V that all I/O are in the Reset state (high-impedance inputs). The PIC16F59 program memory may be written in two ways. The fastest method writes four words at a time to the program memory array. However, one-word writes are also supported. ...
Page 4
... PPDP HLD ICSPDAT ICSPCLK TABLE 2-1: COMMAND MAPPING FOR PIC16F59 Command Load Data for Program Memory Read Data from Program Memory Increment Address Begin Programming End Programming Bulk Erase Program Memory DS41243B-page 4 2.4.3 SERIAL PROGRAM/VERIFY OPERATION The ICSPCLK pin is used for clock input and the ICSPDAT pin is used for data input/output during serial operation ...
Page 5
... READ DATA FROM PROGRAM MEMORY COMMAND ICSPCLK ICSPDAT T 1 SET © 2008 Microchip Technology Inc DLY LSb strt_bit DLY 1 HLD T 2 DLY strt_bit LSb T 1 DLY T 1 HLD Input Preliminary PIC16F59 MSb stp_bit T 1 SET -+T 1 HLD DLY MSb stp_bit Input Output DS41243B-page 5 ...
Page 6
... PIC16F59 2.4.3.3 Increment Address The PC is incremented when this command is received. A timing diagram of this command is shown in Figure 2- not possible to decrement the address counter. To reset this counter, the user must either exit and re-enter Program/Verify mode or increment the PC from 0xFFF to 0X000. FIGURE 2-5: ...
Page 7
... Increment PC to 0x800 2. Perform a Bulk Erase command 3. Wait T to complete Bulk Erase ERA FIGURE 2-8: BULK ERASE PROGRAM MEMORY COMMAND 1 ICSPCLK 1 ICSPDAT T 1 SET © 2008 Microchip Technology Inc. DIS SET HLD HLD Preliminary PIC16F59 T DIS Next Command ERA Next Command 1 2 DS41243B-page 7 ...
Page 8
... PIC16F59 FIGURE 2-9: ONE-WORD PROGRAM FLOWCHART – PIC16F59 PROGRAM MEMORY Start Enter Program Mode PC = 0xFFF Increment Address Bulk Erase Device One Word Program Cycle Read Data from Program Memory Data Correct? Yes Increment No All Locations Address Done? Command Yes Exit Program ...
Page 9
... FIGURE 2-10: FOUR-WORD PROGRAM FLOWCHART – PIC16F59 PROGRAM MEMORY Start Enter Program Mode PC = FFF Increment Address Command Bulk Erase Device Four-Word Program Cycle Increment No All Locations Address Done? Command Yes Reset and Re-enter Program/Verify Read Data Command Data Correct? Yes Increment ...
Page 10
... PIC16F59 FIGURE 2-11: PROGRAM FLOWCHART – PIC16F59 CONFIGURATION MEMORY Start Enter Program Mode PC = 0xFFF One-Word Programming Cycle (see Figure 2-9) Read Data Command Data No Correct? Yes Increment Address Command No Address = 0x800? Yes Load Data Command One-Word Programming Cycle (see Figure 2-9) ...
Page 11
... WORD AND USER ID Increment PC © 2008 Microchip Technology Inc. Start Enter Program/Verify mode PC = 0x3FF (Config Word) Bulk Erase Device Wait T ERA Done Start Enter Program/Verify mode PC = 0x3FF (Config Word 0x200? (First user ID) Yes Bulk Erase Device Wait T ERA Done Preliminary PIC16F59 DS41243B-page 11 ...
Page 12
... PIC16F59 3.0 CONFIGURATION WORD The PIC16F59 has several Configuration bits. These bits can be programmed (reads ‘0’), or left unchanged (reads ‘1’), to select various device configurations. REGISTER 3-1: CONFIGURATION WORD — — — — bit 11 Legend Readable bit W = Writable bit -n = Value at POR ‘ ...
Page 13
... Checksum is calculated by reading the contents of the PIC16F59 memory locations and adding up the opcodes up to the maximum user addressable location, (e.g., 0x7FF for the PIC16F59). Any carry bits exceed- ing 16 bits are neglected. Finally, the Configuration Word (appropriately masked) is added to the check- sum ...
Page 14
... PIC16F59 5.0 PROGRAM/VERIFY MODE ELECTRICAL CHARACTERISTICS TABLE 5-1: AC/DC CHARACTERISTICS TIMING REQUIREMENTS FOR PROGRAM/VERIFY MODE AC/DC CHARACTERISTICS Sym. Characteristics General V V level for programming operations, DDPROG DD program memory V V level for Bulk Erase operations, DDERA DD program memory I I level for programming operations, ...
Page 15
... PowerTool, REAL ICE, rfLAB, Select Mode, Total Endurance, UNI/O, 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. ...
Page 16
... Taiwan - Kaohsiung Tel: 886-7-536-4818 Fax: 886-7-536-4803 Taiwan - Taipei Tel: 886-2-2500-6610 Fax: 886-2-2508-0102 Thailand - Bangkok Tel: 66-2-694-1351 Fax: 66-2-694-1350 Preliminary © 2008 Microchip Technology Inc. EUROPE Austria - Wels Tel: 43-7242-2244-39 Fax: 43-7242-2244-393 Denmark - Copenhagen Tel: 45-4450-2828 Fax: 45-4485-2829 France - Paris Tel: 33-1-69-53-63-20 ...