DataSheet.es    


PDF AN560 Data sheet ( Hoja de datos )

Número de pieza AN560
Descripción Lowpower 3-wire non-volatile memories
Fabricantes Microchip Technology 
Logotipo Microchip Technology Logotipo



Hay una vista previa y un enlace de descarga de AN560 (archivo pdf) en la parte inferior de esta página.


Total 22 Páginas

No Preview Available ! AN560 Hoja de datos, Descripción, Manual

www.DataSheet.co.kr
Using the 93LC56 and 93LC66
AN560
Using the 93LC56 and 93LC66
INTRODUCTION
The Microchip Technology Inc. 93LC56/66 are low-
power 3-wire non-volatile memories and are suitable for
many embedded system code and data storage applica-
tions. These devices are easily interfaced to most micro-
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
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 Chip Select
CLK Clock
DI Data In
DO Data Out
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 Byte Read Program
– Start Bit Routine
– Receive Data Routine
– Bit Out Routine
– Transmit Data Routine
– Power-up Routine
– Read Routine
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)
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
Author:
Bruce Negley
Memory Products Division
8
© 1994 Microchip Technology Inc.
8-99
DS00560D-page 1
Datasheet pdf - http://www.DataSheet4U.net/

1 page




AN560 pdf
www.DataSheet.co.kr
Using the 93LC56 and 93LC66
0189
0190
0191
0192
0193
0194
0195
0196
0197
0198
0199
0200
0201
0202
0203
0204
003A 0C08
003B 0033
003C
003D
003E
003F
0040
0041
0042
0043
0044
0045
0046
0901
0C02
0032
0C80
0030
0929
0C08
0032
020C
0030
0929
rbyte
0047 0914
movlw
movwf
call
movlw
movwf
movlw
movwf
call
movlw
movwf
movf
movwf
call
call
.8
bytcnt
BSTART
.2
bits
b’10000000'
txbuf
TX
.8
bits
addr,w
txbuf
TX
RX
; set number of addresses to
; read as 8
;
; generate the start bit
; set # bits to 2
;
; get opcode (10b)
; into output buffer
; and transmit it
;
; set number of bits to 8
; get the address
; into the output buffer
; and transmit it
; read the high byte
16c5x/7x Cross-Assembler V4.12 Released Mon Jun 06 10:49:10 1994 Page 5
Line PC Opcode
0205
0206
0207
0208
0209
0210
0211
0212
0213
0214
0215
0216
0217
0218
0048 020D
0049 0037
004A 0914
004B 020D
004C 0037
004D 0486
004E
004F
0050
0051
02AC
02F3
0A3C
0A38
0000
END
movf datai,w
movwf hbyte
; move input data to w
; xfer it to high byte
call
movf
movwf
RX
datai,w
hbyte
; read the low byte
; move input data to w
; xfer it to low byte
bcf port_b,chpsel ; clear the chip select line
incf
decfsz
goto
goto
addr
bytcnt
rbyte
READ
; add 1 to the address
; have all bytes been read?
; no, read another byte
; yes, start over
8
© 1994 Microchip Technology Inc.
8-103
DS00560D-page 5
Datasheet pdf - http://www.DataSheet4U.net/

5 Page





AN560 arduino
www.DataSheet.co.kr
Using the 93LC56 and 93LC66
16c5x/7x Cross-Assembler V4.12 Released Mon Jun 06 10:49:00 1994 Page 1
Line PC Opcode
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
LIST P=16C54,c=132
;****************************************************************
; 3-Wire Byte Write with Data Poll Program (107 bytes)
;
; This program demonstrates how to interface a
; Microchip PIC16C54 to a 93LC56 or 93LC66 Serial EE
; device. This program will execute the erase/write enable
; command, write to 8 consecutive addresses, and then
; use the ‘data polling’ method to determine when the
; write cycle is complete. The program then executes
; the erase/write disable command. This sequence will
; repeat forever.
;
; When writing to a 3-wire serial EE device, the
; internally timed write cycle will begin after
; the opcode, address and data are sent to the
; device. There are two ways to make sure that the
; cycle is complete before you send it another command.
; The simplest method is to simply wait for the maximum
; write cycle time, which can be obtained from the data book.
; A more efficient method is “Data polling.” This is
; done by toggling the chip select line low and then
; back high after the opcode, address and data are sent.
; The chip select line must be low for at least 250ns
; before bringing it high again. The device will pull
; the data out line low at that point, and set it high
; when the write cycle is complete. The user can then check
; or “poll” the dataout line until it goes high before
; sending the next command.
;
; As an option, the user can connect a LED to pin 18
; on the PIC16C54 (use about a 1K resistor in series) as a
; timeout indicator. This LED will come on if the
; data polling is unsuccessful and the device being
; programmed does not respond. This can be tested by
; simply running the program with no part in the socket.
;
; 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
16c5x/7x Cross-Assembler V4.12 Released Mon Jun 06 10:49:00 1994 Page 2
Line PC Opcode
0052
0053
0054
0055
0056
0057
0058
0059
0060
0005
0006
; Pin 12 (RB6) —> Data In
; Pin 13 (RB7) —> Data Out
; ORG=Vcc
;
;************************************************************
; Register Assignments
;************************************************************
port_a equ 5h ; port 5 (port_a)
port_b equ 6h ; port 6 (port b) used comm lines to serial EE
8
© 1994 Microchip Technology Inc.
8-109
DS00560D-page 11
Datasheet pdf - http://www.DataSheet4U.net/

11 Page







PáginasTotal 22 Páginas
PDF Descargar[ Datasheet AN560.PDF ]




Hoja de datos destacado

Número de piezaDescripciónFabricantes
AN560Lowpower 3-wire non-volatile memoriesMicrochip Technology
Microchip Technology
AN5601KCOLOR SIGNAL/ VIDEO SIGNAL AND SYNCHRONOUS SIGNAL PROCESSING IC FOR PAL/NTSC TVPanasonic Semiconductor
Panasonic Semiconductor
AN5607NKVideo Signal Processor IC for PAL / NTSC Color TVPanasonic
Panasonic
AN5612(AN5613) Video Signal / Chrominance Signal Processing IC for Color TVMatsushita Electric
Matsushita Electric

Número de piezaDescripciónFabricantes
SLA6805M

High Voltage 3 phase Motor Driver IC.

Sanken
Sanken
SDC1742

12- and 14-Bit Hybrid Synchro / Resolver-to-Digital Converters.

Analog Devices
Analog Devices


DataSheet.es es una pagina web que funciona como un repositorio de manuales o hoja de datos de muchos de los productos más populares,
permitiéndote verlos en linea o descargarlos en PDF.


DataSheet.es    |   2020   |  Privacy Policy  |  Contacto  |  Buscar