DataSheet.es    


PDF AN111 Data sheet ( Hoja de datos )

Número de pieza AN111
Descripción Using the Xicor 16K to 64K Supervisory EEPROMs
Fabricantes Xicor 
Logotipo Xicor Logotipo



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


Total 5 Páginas

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

Application Note
AN111
Using the Xicor X5163/X5323/X5643 CPU Supervisors with the
68HC11 Microcontroller
by Applications Staff, September 1998
Description
The following code demonstrates how Xicor's CPU Super-
visors with EEPROM can be interfaced to the 68HC11
microcontroller when connected as shown in Figure 1.
The circuit uses the 68HC11’s built-in SPI port with the
PD4/SCK pin connected to the serial clock (SCK), the
PD3/MOSI pin connected to serial data in (SI), the PD2/
MISO pin connected to serial data out (SO), and the PD5/
www.DaPtCaSSh0e/eCt4SU.cpoinm connected to chip select (CS). The SPI
interface of the CPU Supervisors operate at 2MHz, so the
68HC11 can operate the SPI port at the maximum speed.
This code allows the 68HC11 to read and write data from
the EEPROM and select EEPROM Block Lock configura-
tions. It also allows the 68HC11 to change the watchdog
timer settings (if available) or turn off the watchdog timer.
More Information
Additional code can be found on the Xicor WWW site at
http://www.xicor.com.
RESET
U?
30 XT
29 EX
39 RESET
41
40
IRQ
XIRQ
8 PA0
7
6
PA1
PA2
17 PE0
18 PE1
19
20
PE2
PE3
22 VRH
21 VRL0
PA3
PA4
PA5
PA6
PA7
PB0
PB1
PB2
PB3
PB4
PB5
PB6
PB7
PC0
PC1
PC2
PC3
PC4
PC5
PC6
PC7
PD0
PD1
PD2
PD3
PD4
PD5
MODA
MODB
E
AS
R/W
5
4
3
2
1
16
15
14
13
12
11
10
9
31
32
33
34
35
36
37
38
42
43
44
45
46
47
25
24
27
26
28
U?
2
5
6
SO
SI
SCK
1 CS
7
RESET
3
WP
Vcc
R?
10K
RESET
X5163, X5168
X5323, X5328
X5643, X5648
Figure 1. Interfacing the Xicor CPU Supervisors to the 68HC11 Microcontroller using the SPI Port
AN111-1

1 page




AN111 pdf
*** Register Usage: A,B
*******************************************************************************
wr_status:
jsr EE_wren
* SEND WRITE ENABLE COMMAND
bclr PORTD,X,#CE_BIT
* ACTIVATE CE
jsr EE_wrsr_cmd
* ISSUE WRITE STATUS COMMAND
tba * GET THE STATUS BYTE
jsr outbyt
* SEND IT TO EEPROM
bset PORTD,X,#CE_BIT
* DEACTIVATE CE
rts
*******************************************************************************
*** Name: EE_wrsr_cmd
*** Description: Sends the write command to the EEPROM
*** Function: This program creats the write command sequence and transmits
*** it to the EEPROM.
*** Calls: outbyt
*** Input: Y = BYTE ADDRESS
*** Return Value: None
*** Register Usage: A
*******************************************************************************
EE_wrsr_cmd:
ldaa #WRSR_CMD
* SEND WRITE COMMAND TO THE EEPROM
www.DataSheet4U.com jmp outbyt
*******************************************************************************
*** Name: ACK_POLL
*** Description: Verifies if the EEPROM is ready and accepting commands
*** Function: This program sends the status register read command to the
*** EEPROM and returns to the caller when the WIP bit in the status
*** byte is cleared or the maximum number of retries is reached.
*** This routine can also be used to read the status of the WDx and
*** BLx bits.
*** Calls: outbyt
*** Input: None
*** Return Value: None
*** Register Usage: A,B
*******************************************************************************
ACK_POLL:
ackpol1:
bclr PORTD,X,#CE_BIT
* ACTIVATE CE
ldaa #RDSR_CMD
* READ STATUS COMMAND
jsr outbyt
* SEND THE COMMAND
ldaa #DUMMY
* DUMMY COMMAND
jsr outbyt
* SEND THE COMMAND
bset PORTD,X,#CE_BIT
* DEACTIVATE CE
ldaa SPDR,X
* LOAD RECEIVED DATA FROM SPI
asra
bcc ackpol1
rts
ORG $FFFE
FDB TEST
END
AN111
-5

5 Page










PáginasTotal 5 Páginas
PDF Descargar[ Datasheet AN111.PDF ]




Hoja de datos destacado

Número de piezaDescripciónFabricantes
AN11012Using the TEA1703 to reduce standby powerNXP Semiconductors
NXP Semiconductors
AN11013GreenChip III TEA1753 integrated PFC and flyback controllerNXP Semiconductors
NXP Semiconductors
AN1101SSMCMOS single power supplyPanasonic Semiconductor
Panasonic Semiconductor
AN11051Pin FMEA for HEF4000 familyNXP Semiconductors
NXP Semiconductors

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