DatasheetsPDF.com

AN560 Dataheets PDF



Part Number AN560
Manufacturers Microchip Technology
Logo Microchip Technology
Description Lowpower 3-wire non-volatile memories
Datasheet AN560 DatasheetAN560 Datasheet (PDF)

www.DataSheet.co.kr Using the 93LC56 and 93LC66 AN560 Using the 93LC56 and 93LC66 INTRODUCTION The Microchip Technology Inc. 93LC56/66 are lowpower 3-wire non-volatile memories and are suitable for many embedded system code and data storage applications. These devices are easily interfaced to most microcontrollers in today's market place, but Microchip’s 8-bit RISC series PIC16CXX offers the best code density of any microcontroller on the market today. Using the PIC16C54, the assembly programs.

  AN560   AN560


Document
www.DataSheet.co.kr Using the 93LC56 and 93LC66 AN560 Using the 93LC56 and 93LC66 INTRODUCTION The Microchip Technology Inc. 93LC56/66 are lowpower 3-wire non-volatile memories and are suitable for many embedded system code and data storage applications. These devices are easily interfaced to most microcontrollers in today's market place, but Microchip’s 8-bit RISC series PIC16CXX offers the best code density of any microcontroller on the market today. Using the PIC16C54, the assembly programs contained in this application note have been fully tested and provide the correct timing and 3-wire sequences to fully operate the 93LC56/66 in a PIC16CXX-based embedded application. The PIC16C54 was clocked at a 10MHz frequency. This application note is intended to provide the engineer with readily available stand-alone code modules to accomplish all of the necessary functions to utilize these devices in a low power application using the efficient PIC16C54 microcontroller. The 93 series of devices have essentially four I/O pins: CS CLK DI DO Chip Select Clock Data In Data Out 3-Wire Byte Write Program – Delay Routine – Start Bit Routine – Bit Out Routine – Transmit Data Routine – Power-up Routine – Erase/Write Enable Routine (EWEN) – Byte Write Routine – Erase/Write Disable Routine (EWDS) 3-Wire Byte Write with Data Polling Program – Data Polling Delay Routine – Start Bit Routine – Bit Out Routine – Transmit Data Routine – Power-up Routine – Erase/Write Enable Routine – Write Routine – Erase/Write Disable Routine (EWDS) This series of devices use a series of commands to accomplish the normal memory functions. These are READ, WRITE, EWEN, ERASE, ERAL, WRAL, EWDS. For a more detailed discussion of the function of these devices reference the appropriate data sheet and AN536, also published by Microchip Technology. The following programs are included in this application note and are fully functional stand-alone modules. They are intended for use by those who are not already familiar with interfacing a PIC16CXX microcontroller to a 93 series device. For those with more experience, please refer to application note AN530. 3-Wire Sequential Read Program – Delay Routine – Start Bit Routine – Bit In Routine – Receive Data Routine – Bit Out Routine – Transmit Data Routine – Power-up Routine – Read Routine 8 3-Wire Byte Read Program – Start Bit Routine – Receive Data Routine – Bit Out Routine – Transmit Data Routine – Power-up Routine – Read Routine Author: Bruce Negley Memory Products Division © 1994 Microchip Technology Inc. DS00560D-page 1 8-99 Datasheet pdf - http://www.DataSheet4U.net/ www.DataSheet.co.kr Using the 93LC56 and 93LC66 16c5x/7x Cross-Assembler V4.12 Released Line 0001 0002 0003 0004 0005 0006 0007 0008 0009 0010 0011 0012 0013 0014 0015 0016 0017 0018 0019 0020 0021 0022 0023 0024 0025 0026 0027 0028 0029 0030 0031 0032 0033 0034 0035 0036 0037 0038 0039 0040 0041 0042 0043 0044 0045 0046 0047 0048 0049 0050 0051 PC Opcode LIST P=16C54,c=132 ;**************************************************************** ; 3-Wire Byte Read Program (80 bytes) ; ; This program demonstrates how to interface a ; Microchip PIC16C54 to a 93LC56 or 93LC66 Serial EE ; device. This program will read 8 consecutive addresses ; in the ‘random read’ mode. This means that the opcode ; and address for each byte will be sent to the device. ; This program will repeat forever. ; ; Another, more efficient method of reading consecutive ; addresses is called the ‘sequential read’ mode. This ; involves sending the opcode and address for the first ; byte to read, then continuing to provide clocks for the ; next addresses. The device will automatically increment ; the address. An example of the sequential read mode is ; provided in the ‘3wseqr.asm’ file. ; ; This program communicates to the serial EE in the ; x16 mode, and ASSUMES THE USER HAS SET THE ORG PIN ; ON THE DEVICE TO Vcc. ; ; Timing is based on using the PIC16C54 in ‘XT’ mode ; using a 4Mhz crystal. Clock speeds to the serial EE ; will be approximately 50 kHz for this setup. ; ; PIC16C54 to Serial EE Connections: ; ; PIC16C54 Serial EE ; —————— —————— ; Pin 10 (RB4) —> Chip Select ; Pin 11 (RB5) —> Clock ; Pin 12 (RB6) —> Data In ; Pin 13 (RB7) —> Data Out ; ORG = Vcc ; ;************************************************************ ; Register Assignments ;************************************************************ status equ 3h ; status register port_a equ 5h ; port 5 (port_a) port_b equ 6h ; port 6 (port b) comm lines to serial EE eeprom equ 0ah ; bit buffer addr equ 0ch ; address register datai equ 0dh ; stored data input reg. datao equ 0eh ; stored data output reg. txbuf equ 10h ; transmit buffer count equ 11h ; bits transmitted so far bits equ 12h ; bits to transmit bytcnt equ 13h ; byte counter for read routine Mon Jun 06 10:49:10 1994 Page 2 Mon Jun 06 10:49:10 1994 Page 1 0003 0005 0006 000A 000C 000D 000E 0010 0011 0012 0013 16c5x/7x Cross-Assembler V4.12 Releas.


LB035Q01-TD01 AN560 D2359


@ 2014 :: Datasheetspdf.com :: Semiconductors datasheet search & download site.
(Privacy Policy & Contact)