Using the 93LC56 and 93LC66
AN560
Using the 93LC56 and 93LC66
3-Wire Byte Write Program
INTRODUCTION
– Delay Routine
The Microchip Technology Inc. 93LC56/66 are low-
power 3-wire non-volatile memories and are suitable for
manyembeddedsystemcodeanddatastorageapplica-
tions. Thesedevicesareeasilyinterfacedtomostmicro-
controllers 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 applica-
tion. 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
accomplishallofthenecessaryfunctionstoutilize these
devices in a low power application using the efficient
PIC16C54 microcontroller.
– 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
The 93 series of devices have essentially four I/O pins:
– Transmit Data Routine
– Power-up Routine
CS
CLK
DI
Chip Select
Clock
– Erase/Write Enable Routine
– Write Routine
Data In
DO
Data Out
– 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
devicesreferencetheappropriatedatasheetandAN536,
also published by Microchip Technology.
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
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.
8
3-Wire Byte Read Program
– Start Bit Routine
– Receive Data Routine
– Bit Out Routine
Author:
Bruce Negley
Memory Products Division
– Transmit Data Routine
– Power-up Routine
– Read Routine
© 1994 Microchip Technology Inc.
DS00560D-page 1
8-99