uam5206
TRANSCRIPT
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 1/128
PROYECTO
TERMINAL
GRABADOR
DE
EPROMs
AUT~NOMO
REALIZADO POR:
JOSÉ IGNACIO
FLORES
TAPIA.
NÉSTOR SANCHEZ GÓMEZ.
CON
ASESOR íA DE:
MIGUEL
ANGEL
RUíZ SANCHEZ
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 2/128
El proyecto presente se dividió para su análisis y diseño en tres bloques principales,
que son:
1.
HARDWARE
2.
SOFTWARE
3.
MANUAL
DE
USUARlO
Para el bloque de HARDWARE tenemos:
Anális is: En esta etapa se analizan los requerimientos delsistema grabador, y en base
a estos se proponen varias soluciones
y
alternativas.
Diseño: Aquí se realiza un bosquejo en el cual se proporciona una descripción de
los
diferentes circuitos utilizados de acuerdo a los requerimientos de la etapa anterior. S e
parte de la configuraciónde
los
pines de las EPROMs, después se analizan
los
circuitos de control para cada uno de
los
pines, acontinuación se describen los
componentes para lanterfaz con
los
anteriores,or último se analiza el
microcontrolador usado
y
los periféricos que son memoria externa RAM y ROM, así
como los latch, buffers, decodificadores para el control de los periféricos.
Implementación: E n esta parte se proporciona una lista de los principales circuitos
integrados que se requerirán para el grabador con una descripción y una justificación
de porque se usaron.Además
del
diagrama inalsimbólicoy un diagrama con la
distribución física.
Para el bloque de
SOFTWARE
tenemos:
Análisis: Para levar acabo esta etapa se toma en cuenta el bloque anterior, en el cual
se analizan las necesidadesy las posibles formas de cubrirlas.
Diseño: S e proyectan soluciones (en diagramas de flujo) en base a las diferentes
funciones que será capaz de desarrollarel sistema grabador.
Implementación: Aquí se proporciona una relación de los códigos fuentes para dar
solución a cada una de las funciones del grabador.
En el bloque del MANUAL
DE
USUARIO se proporciona una guía paso a paso de cómo
debe ser operado el grabador por el usuario.
PAGINA
2
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 3/128
PROYECTOTERMINAL GRABADOR
DE
E PR OM S A U T ~ N O M O
CONTENIDO
J U S T I F I C A C I ~ N
OB J ETIVO
CARACTERíSTICAS
I N T R O D U C C I ~ N
ANALISIS Y DISEÑO DE HARDWARE
IMPLEMENTACIÓN DE HARDWARE
ANÁLISIS
Y
DISEÑO DE SOFTWARE
IMPLEMENTACIÓN DE SOFTWARE
RESULTADOS
MANUAL DE USUARIO
lnterfaz de usuario
Funcionamiento
BIBLIOGRAFíA
Justificación
y
hojas técnicas de
los C.1.s
Listados de programas de prueba
Descripción
Códigos
4
5
5
6
7
13
18
25
36
38
38
38
41
ANEXO 1
ANEXO
2
ANEXO 2
ANEXO
2
PÁGINA 3
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 4/128
PROYECTOERMINAL
GRABADOR DE EPROMS AUTÓNOMO
Justificación.
En el presente proyecto se realizará el diseño de un sistema grabador de EPROMs
autónomo de una PC.Estoesque pueda grabar de EPROM a EPROM sin que se
tenga que hacer uso de una PC, además de que también se podrá usar para grabar de
una PC a una EPROM a través de un RS232 que es una interfaz por
el
puerto serial.
Enungrabador convencional se pueden realizar varias operaciones, entre lasmas
elementales están:
CARGAR: El programador acepta un archivo en código HEX, y lo carga en su buffer de
memoria.
DESPLEGAR: Se despliega el contenido del buffer de memoria del programador en la
pantalla de la PC.
COPIAR: Se lee el contenido de la EPROM y se almacena en el buffer de memoria del
programador.
PROGRAMAR: Se almacena el contenido del buffer de memoria del programador en el
arreglo de memoria de la EPROM.
COMPARAR: Se compara el contenido de la EPROM con el contenido del buffer de
memoria del programador.
VERIFICAR: Se examina el contenido de la EPROM y se determina si esta ha sido
borrada.
TIPO:Se selecciona el tipo de EPROM que será insertada n l socket del
programador.
EDITAR: Se puede alterar el contenido del buffer de memoria del programador.
GRABAR: Comprende los procesos de COPIAR y PROGRAMAR,
Cada que se requiere realizar alguna de estas operaciones, por fuerza es necesario
hacer uso de una computadora, en la cual este instalado el software y el hardware del
grabador, pero ¿quepasa si necesitamos únicamente realizar arias copias del
contenido de una misma EPROM?, o
si
queremos comparar el contenido de una
EPROM con el contenido de la otra. En estos casos usar una PC únicamente para este
propósito es un desperdicio, podemos entonces pensar en el diseño de un grabador de
EPROMs que sea autónomo de una PC y que nos sirva para estos propósitos, con la
ventaja de queen cualquier momentoque se requiera ealizaralguna operación
adicional a estas podemos conectar el grabador a una PC cualquiera y vía puerto serial
llevar acabo nuestros propósitos.
PAGINA
4
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 5/128
PROYECTOERMINAL GRABADOR DE EPROMS A U T ~ N O M O
Objetivo.
Diseñar e implementar un grabador de EPROMs autónomo (Que copie de EPROM a
EPROM, además de PC a EPROM).
Características:
El grabador tiene capacidad para grabar EPROMs de hasta 64Kb, que es mucho
mas de las necesidades cotidianas en un laboratorio de Sistemas Digitales, esto
es, grabará EPROMs de la forma 27XXX, ue va desde la 2716 (2Kb) hasta a
27512 (64Kb).
Se pueden hacer copias múltiples de una sola EPROM, es decir, el contenido de
la EPROM fuente
se
vacía en la RAM del sistema y después el contenido de la
RAM e puede vaciar el contenido en las N EPROMs destino que se deseen.
Para ealizar
lo
anterior se contará con un solo socket, y elprogramará
pidiendoal usuario la EPROM fuente y la EPROM destino cuando sean
requeridas
El sistema grabador funcionara tanto en forma autónoma (para realizar copias),
comoes forma dependiente (interfazarse con un PC a través de un puerto
serial).
PAGINA 5
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 6/128
PROYECTOERMINALRABADOR
DE
EPROMsUTóNOMO
INTRODUCCI~N.
En los sistemasdigitalescapaces de trabajar independientemente (tales como una
PC), existe un lugar donde se encuentran localizadas las instrucciones que permitirán
que dicho sistema realice las funciones para las cuales fue diseñado, dicho lugar es
una memoria.
Debido a que seria muy costoso mantener el sistema siempre uncionandocon su
programa en una memoria RAM (Random Access Memories), ya que estas pierden su
información al dejar de existir un voltaje de alimentación surgen memorias que permiten
mantener información aun sin que exista alguna señal de alimentación, dichas memorias
son llamadas EPROM(Erasable Programmable Read Only Memories).
Estas memorias,como yase comento,mantienen datos en ellas aun sin voltaje de
alimentación presente permitiendo apagar el sistema cuando no se esté utilizando; en
contraste con lo anterior, la forma en la cual se les introduce la información es diferente
que en una RAM convencional. Para grabar información en una memoria EPROM se
hace necesario un sistema especial que nosayude a realizar esta tarea llamado
GRABADOR o también PROGRAMADOR.
Para grabar las memorias EPROM se hace necesario mandarle no
solo
direcciones y
datos, sino también otras señales de control, tales como ChipEnable (CE), Output
Enable (OE) yProgramming Pulse Voltage (Vpp) siendo este último un voltaje alto
(normalmente 25 V o 21 V o
12.5 V
según el tipo de EPROM) comparado con lógica
l T L ( O V y 5 v ) .
LosgrabadoresdeEPROM mas conocidos, son aquellos quedependendeuna
computadora (funciones del microprocesador, memoria R A M , etc), pero en el presente
proyecto se intentara el diseño de
un
grabador autónomo.
PAGINA 6
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 7/128
PROYECTOERMINAL GRABADOR DE EPROMS AUTÓNOMO
ANALISIS
Y DISEÑO
DEL HARDWARE.
Dado que
lo
que se necesita es diseñar un grabador de EPROMs,
lo
primero que se
debe de analizar es la configuración de
los
pines para cada una de estas memorias. En
base a un análisis de las terminales que presentan los diferentes modelos de EPROMs,
con
los
cuales se podrá trabajar, que van desde la 2716 hasta la 27512, e observó
que existen 7 terminales que difieren, tal como
se
observa en la siguiente tabla:
2751
2
Al
5
Al2
A7
A6
A5
A4
A3
A2
AI
A0
O0
o1
02
GND
27256 27128
VPP VPP
A12
A7
7
A12
GND
ND
02
2
o1
1
O0
0
A0
0
AI
I
A22
A33
A4
4
A55
A66
-
764
-
PP
Al
2
A7
A6
A5
A4
A3
A2
AI
A0
O0
o1
02
GND
-
A7
A6
A5
A4
A3
A2
AI
A0
O0
o1
o2
GND
A7
A6
A5
A4
A3
A2
AI
A0
O0
o1
02
GND
-
1
2
3
4
5
6
28
27
26
25
24
23
22
21
M
19
1 1
18
12 17
13
16
14
15
271 6
-
vcc
A8
A9
m
O E
CE
07
06
05
04
03
-
2732
vcc
A8
A9
&l
O W P P
CE
07
06
05
04
03
2764
vcc
PGM
N.C.
A8
A9
All
OE
CE
07
06
05
04
03
-
27128
vcc
PGM
Al
3
A8
A9
&l
OE
m
CE
0 7
06
05
04
03
-
27256
vcc
Al
A13
A8
A9
OE
CE
07
06
05
04
03
27512
vcc
Al
Al
A8
A9
l
0W P P
m
CE
07
06
05
04
03
Como puede observarse, algunos modelos son de 28 pines y otros de 24. Analizando
la figura se obtiene la siguiente relación de voltajes en la que podemos observar de
acuerdoal ipo de EPROM que voltaje necesita paracada uno de los pinesen los
cuales se aplica algún voltaje.
NOTA: En la columna del #PIN
se
observan expresiones para dos números diferentes
de pines, esto es porque
los
pines son diferentes dependiendo si son EPROMs de 24 o
de 28 pines. Los números entre paréntesis de as demás columnas se refieren a los
diferentes voltajes que se necesitan en esos pines.
De la relación anterior se observa que para los pines 20 y 27, no existe un problema
complicado para las diferentes señales según el tipo de EPROM, en comparación con
los
pines restantes. Para estos últimos fue necesario diseñar un circuito que pudiera
PAGINA
7
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 8/128
PROYECTOERMINALRABADORE
ser controlado directamente por el programa, para proporcionar la señal necesaria, por
lo cual se desarrollo el circuito de
la
figura
1
en base a el circuito de la figura 2 en el
cual se observan las consideraciones deorriente y deoltaje),uetilizan
reguladores de voltaje
LM317
entre otros elementos.
+12v
4
15L1
'e;"
o
2x1
221u
PIN 28 DELSOCKET
%EM1 , , 7407
5 4 8
2N2222
212907
4 7 0 G
P E S A
PIN 1 DEL SOCKET
22111
PIN 22 DEL SOCKET
P C 0 4
PAGINA
S
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 9/128
PROYECTOERMINALRABADOR
DE
EPROMs AUTóNOMO
FIGURA
2.
CIRCUITO BASE PARA CONTROLARPINES DEL SOCKET
~ ~ ~~~ ~
T
~~ "_ ~
OV, 5V, 12.5V , 21V, 25V
H A B I L I T A 5 V
H A B I L I T A 1 2 . 5 v
H A B I L I T A 2 1 V
H A B I L I T A 2 5 V
HABI L I TA OV
V o u t = V r e f ( l + ( R l x / R Z ) ) + l a d j R l x
V o u t = 1 . 2 5 ( l + (R lx /22 l ) )+ ( .OOOO5*R lx )
-1.4
Los pines 20 y 27 utilizan un circuito cornbinacional mas sencillo que puede observarse
en el circuito de la figura3.
FIGURA 3. CIRCUITO COMBINACIONAL PARA CONTROL DEPINES 20
Y 27.
d
PAS-B
P IN 27 D E L S O C K E T
..................
O PAO-B
P I N 20 D E L S O C K E T O
De esta formapara activar algún voltaje del circuito de control de voltajes, basta
mandar un cero lógico
y
para activar cero volts se precisa
de
un uno lógico,
lo
cual
hace posible su control desde el programa principal.
Para llevar acabo dicho control
se
precisa
de
un circuito que organice todo el
funcionamiento, es aquí donde se hace necesario el uso de un microcontrolador, entre
los
circuitos considerados están: 8031, 8051, 8032,
8052,
odos ellos de Intel. Una de
la características para decidir entre ellos fueron
los
requerimientos de memoria ROM
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 10/128
PROYECTOERMINAL GRABADOR
DE
EPROMS
A U T ~ N O M O
interna, externa
o
ambas que se tienen en el proyecto, además del costo y la existencia
de ellos en el mercado..
Como la programación se realizará en lenguaje ensamblador, no se necesita de ningún
interprete dentro del micro, además de que algunas funciones extras que se presentan
en
los
micros 8051, 8032 y 8052, como son las interrupciones, no serán usados en el
presente proyecto.
Tomando en cuenta una breve investigación demercado,se obtuvo como resultado
que el microcontrolador 8031 es mas barato que el 8051 casi en una tercera parte, y
que el 8052 esun micro que esta discontinuado, por ocualse esuelveutilizarel
microcontrolador 8031 para el grabador.
El microcontrolador se encargará de proporcionar las “señales” para eer la EPROM
fuente, grabar la EPROM destino, etc. Para llevar acabo esta entrega de “señales” de
precisa de algunos pasos intermedlos, como
lo
es almacenar los datos fuentes en la
memoria RAM el sistema, además de realizar el direccionamiento de los datos (poner
los
datos en las localidades de memoria correctas).
Entre los posibles circuitos auxiliares a utilizar , se encuentran algunos buffers, unas
PPIsProgrammable Periferical Interfaz), las cuales seránas encargadase
proporcionar los mensajesadecuados al socket, y para a interfaz con el usuario se
precisará e ircuitería, comoon decodificadores, displays e 7 segmentos, y
circuiteríacombinacional y secuencia1 para control y manipulación del grabador. Un
diagrama inicial de o que será el grabador de EPROMs se observa en la figura
4.
Parael grabador se tiene proyectado usar una EPROM que sea la encargada de
almacenar el software propio del grabador, debido a esto no se hace necesario que el
microcontrolador a usar posea memoria
ROM
interna.
Para la parte de la interfaz con el usuario sepropone elusode un displayde 7
segmentos (será el que desplegara mayor información del estado de los procesos que
se realicen en el grabador), un par de leds que indicaran cuando se puede remover
una EPROM del socket y cuando
no,
ademásde un tercero que indicara si se esta
trabajando en mododependiente
o
enmodo dependiente,
y un
parde botones. El
primer botón (PBZ)se usará para navegaren todos los menús ysubmenús. El
segundo botón (PBI) será para iniciar el proceso seleccionado por PB2.
El circuito propuesto paraesta parte se muestra en la figura5.
Cabe señalar que para la interfaz
de
usuario se podría haber usado
un
número mayor
de displays y mas botones,
o
inclusive un
LCD
y un teclado controlados por un 8279,
enesteproyecto no se realizo
de
esa manera, pero queda abiertopara posteriores
modificaciones, además de que podría servir muy bien para efectos de
un
sistema de
desarrollo del microcontrolador 803’: realizando las modificaciones pertinentes.
PAGINA 10
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 11/128
PROYECTOERMINALRABADOR
DE
EPROMsUTÓNOMO
Con
lo
que se ha descrito hasta este momento el grabador de EPROMs funcionará de
forma autónoma, perosi se quiere usar de forma dependiente, es decir, como un
grabador convencional, debemos de considerar algunos aspectos extras, como son:
¿Cómo se implementará la comunicación entre el grabador y la PC?,
¿Cómo debe de ser el programa que controle al grabador?
y
‘Cómo será el programa que controle a la PC?.
Para responder a estas preguntas de debe de analizar, conqueescon
lo
que se
cuenta en cuanto a hardware y en cuanto a software,
y
ver si con esto essuficiente
o
si
necesitamos implementar algo mas.
Evidentemente para solucionar
e l
problema de comunicación entre la PC y el grabador,
dadas as características del microcontrolador que cuenta con as salidas adecuadas
para este
fin
(TXD RXD),
e
puede usar un RS232, ue es una interfaz serial,.
Lo
que
se debe de hacer entonces es implementar e l hardware necesario, en a figura 6 se
muestran las conexiones para este propósito.
FIGURA 4. DIAGRAMA INICIAL DELGRABADOR
PÁGINA 11
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 12/128
PROYECTO
TERMINAL
GRABADOR
DE
EPROMS
AUTÓNOMO
FIGURA
5. CIRCUITO PROPUESTO PARA NTERFAZ CON EL USUARIO
PA4-B
*
PA5-Be
CLK
4.7KG
DATOS
LED
1 naranja
74co Modoependhndep
PC5-B.
330Q
PA6-B V.
I
LED 3 verde LED
3 rojo
(remover) (No emover) I
I
330Q
PA7-B. V.
PBI (ENTER)
PB2
(Selector)
PC7-
FIGURA
6.
lnterfaz
serial RS232
TXD.
.
.
RXW
.
:.:.:.
DBQ
PAGINA 12
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 13/128
PROYECTOERMINAL
GRABADOR DE
EPROMS A U T ~ N O M O
IMPLEMENTACI~NDEL HARDWARE.
Después de todo este análisis, ya se puede decidir que componentes se utilizaránpara
llevar acabo el proyecto. En la figura 7 se presenta la distribución física de estos en el
grabador de EPROMs, en la figura 8 hay una lista de todos
los
circuitos y componentes
usados y en elANEXO 1 se proporciona una breve justificación para cada uno, además
de las hojas técnicas de
los
C.I.
(Circuitos Integrados) mas importantes.
A continuación se presentan los diagramas correspondientes a los bloques de la figura
4 , que son los circuitos con los cuales se implemento el grabador.
FIGURA 7 DISTRIBUCIÓN FíSICA DE LOS COMPONENTES.
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 14/128
PROYECTO TERMINAL
GRABADOR
DE
EPROMs AUTóNOMO
IC-NÚMERO
ICE
IC2
IC3
IC4
IC5
IC6
IC7
IC8
IC9
IC1o
IC1 1
IC12
IC13
IC14
IC15
IC16
IC1 7
IC1 8
IC1
9
IC20
D I
LMI
LM2-LM6
T I
T5
T6-TI
O
R4.7
RX:X
CAPX.X
POT1
LEDX
TMRI
BOB1
LISTA DE LOS COMPONENTES USADOS
NúMERO ID
8031
8255-A
8255-B
62256
6264
2764
74LS373
74LS245-A
74LS245-B
74LS138
74LS04
74LS08
7407
7407
74LSOO
MUA78S40
1488
1489
74LS51
74LS164
MAN7409
LM337
LM3 1 7
2N2222
2N2902
4.7 K
Varios
Varios
20K
led
11.0592mhz
150 microH
DESCRIPCI~N
Microcontrolador de 8 bits
Interfaz periférica programable
lnterfaz periférica programable
RAM de 32kb 8bits
RAM de 8Kb x 8bits
EPROM de 8Kb x 8bits
Latch
8
bits
Buffer bidireccional de
8
bits
Buffer bidireccional de 8 bits
Decodificador de 3 a 8
Compuertas lógicas NOT
Compuertas lógicas AND
Buffers para DC mayor a TTL
Buffers para DC mayor a TTL
Compuertas lógicas NAND
Convertidor de DC a DC
Convertidor de TTL a RS232
Convertidor de RS232 a TTL
Compuerta AND-OR-NEGADA con dos
compuertas de dos y tres entradas.
Registro de entrada serie/salida paralela
Display de 7 segmentos
Regulador deVoltaje
Regulador deVoltaje
Transistores
Transistores
Resistencias de 4.7K para efectosde PULL-
OP
Resistencias varias
Capacitores varios
Potenciómetro de precisión de 20K
Leds
Cristal para velocidad del KIT
Bobina de Miller
PÁGINA 14
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 15/128
PROYECTO TERMINAL
GRABADOR DE
PROMS A U T ~NOMO
FIGURA 9. BLOQUE PARA EL MICROCONTROLADOR, LOS BUFFERS,
EL LATCH
Y
EL DECODIFICADOR.
PÁGINA
15
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 16/128
PROYECTOERMINAL GRABADOR DE
EPROMS
A U T ~ N O M O
FIGURA
I O .
CONEXIONES PARA LARAM, A EPROM
Y
LAS PPIs
PPI-E
PPI-A
RESET
-
OM
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 17/128
PROYECTO
TERMINAL
GR AB ADOR DE EPROMs AUTóNOMO
FIGURA 11.
SOCKET
DEL
GRABADOR
NOTA:
Los
pines marcados con ‘ ‘0
“
son los
pines
que van a estar controlados por los
circuitos de las figuras 1 y 3.
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 18/128
PROYECTOTERMINAL GRABADORDE EPROMS
A U T ~ N O M O
ANALISIS
Y DISEÑO DEL SOFTWARE.
Para obtener un buen diseño del software, tenemos que analizar varias COSaS primero,
como son:
1 - Forma en la que se va a utilizar el grabador (Dependiente o Independiente)
2.-
Determinar las funciones que tendrá el grabador, en base a el modo de trabajo
elegido.
En el caso de que sea de modo autónomo, se podrán realizar as operaciones
de GRABAR y COMPARAR.
En el caso de que sea en modo dependiente, se podrán realizar las operaciones
de CARGAR DE PC A BUFFER, CARGAR DE BUFFER A PC, COPIAR BUFFER
A EPROM, COPIAR EPROM A BUFFER, COMPARAR EPROM CON BUFFER,
VERIFICAR
SI
EPROM BORRADA y SELECCIONAR TIPO, las cuales ya han
sido descritas anteriormente.
3.-
lmplementar cada una de las funciones en base al modo de trabajo elegido.
Antes de
la
implantación del software, se diseñaron algunos diagramas delujo
principales, que nos marcan la forma en la que tienen que funcionar
los
programas.
Enel diagrama de flujo 1 se muestra lo que sería el menú principal,con el cual
podemos elegir el modo de trabajo. Notamos claramente lo que se menciono acerca de
las funciones de los botones PBI y PB2, donde PB2 nos sirve para desplazarnos en
los menús y PBI para aceptar la opción escogida por PB2. AI inicio se espera a que se
pulsePB2araniciar, después se desplaza a modo “Independiente modo
“d”ependiente en forma alternada mientras se este presionando PB2. Si estando en “d”
se presiona PBI entonces nos iremos al menú del modo dependiente y si estamos en
T se presiona P BI nos iremos al menú del modo independiente.
En el diagrama de flujo 2, observamos el menú del modode trabajo independiente,
donde
solo
se tienen las opciones deGRABAR
DE
EPROMAEPROM , de
COMPARAR EL CONTENIDO DE
LA
EPROM CON
EL
CONTENIDO DEL BUFFER y
la opción de salir que se maneja con una c minúscula.
El menú para modo de trabajo dependiente se muestra en el diagrama de flujo
3,
en
este modo se ienen algunas otras opciones ademásde las quepermite el modo
independiente. En este modo ya no se hace uso de
los
botones para manipular el flujo
de la información, ahora se manipula el programa por medio de señales (números) que
le manda un programa que estará corriendo en la PC (ITFC.EXE) a la que esté
conectado el grabador por medio del puerto serie, entonces el programa está
monitoreando el puerto serial y ejecutará la opción
de
acuerdo al caracter leído.
El diagrama de flujo 4 explica la rutina de GRABAR
en
modo independiente.
~.
PÁGINA
1s
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 19/128
PROYECTOTERMINAL -
RABADOR
DE
EPROMS A U T ~ N O M O
DIAGRAMA
DE
FLUJO
I. MENÚ PRINCIPAL
“ HOLA”
I
7
SI
DESPLEGAR
“ I ”
DESPLEGAR
“d”
o
B2?
MENU MODO
DEPENDIENTE
p’
I
I
NDEPEND.
PAGINA 19
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 20/128
PROYECTOTERMINAL
GRABADOR
DE EPROMS A U T ~ N O M O
DIAGRAMA DE FLUJO 2. MENÚ EN MODO INDEPENDIENTE
desplegar
" O "
+
I '
G R A B A R
desplegar
C
desplegar
I
o
9
-
C O M P A R A R
DIAGRAMA DE FLUJO 3 MENÚ EN MODO DEPENDIENTE
y
espera
caracter por
puerto
serial
seleccionar el
t ipo de EPR OM
con la cual
s e
+
va
a trabajar
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 21/128
PROYECTOERMINAL GRABADOR DE EPROMS A U T ~ N O M O
DIAGRAMA DE FLUJO 4. RUTINA PARA GRABAR
EN MODO
INDEPENDIENTE
1
Poner
tipo en
W ’
desplegar
+
ig. tipo
P
esplegar
sig. tipo
l
lmacenar
I
4
abilitar
hardware
@tipo
-+
pedir EPROM
fuente
“ ll
l e e r
datos
al buffer
pedir EPROM
destino
7
orrada?
SI
escribir
en EPROM
PÁGINA 21
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 22/128
PROYECTO
TERMINAL R ~ A D O RE
EPROMS AUTÓNOMO
Las rutinas de grabado para cada uno de los tipos de EPROMs permitidos en este
grabador, se obtuvieron de algunos diagramas de flujo propuestos en el manual de
INTEL de MEMORY, en el diagrama de flujo 5 se muestra un algoritmo de grabación
QUICK PULSE, el cual funciona de la siguiente manera:
Seleccionar dirección para grabar, poner voltajes de programación, poner datos
a grabarse, inicializar una variable en
O,
se da un pulso de programación de
100
microsegundos.
Se incrementa la variable, se lee el dato grabado en la EPROM, se verifica que
se haya grabado correctamente,
s i
es así, se monitorea si es la última dirección
y en casopositivo se ponen todos los voltajes en 5 voltsyse ealiza una
comparación completa.
En caso de que no se haya grabado correctamente se checa si a variable es
igual a
25,
si es igual a 25 se verifica el byte, si es correcto se checa si e s la
última dirección
y
se procede de la forma anterior, si no es correcto, se manda
un
mensaje de error.
Cuando la variable es menor que
25
se vuelve
a
dar un pulso de programación
de 100 microsegundos y se procede de la misma manera.
En el diagrama de flujo 6 se muestra un algoritmo de programación INTELIGENTE. La
forma de operar de este algoritmo es similar al QUIK-PULSE, excepto por que manda
un pulso extra de duración 3 veces el valor de la variable tratando de asegurar que la
grabación sea correctay para disminuir el tiempo de grabación.
Para cada tipode EPROM as direcciones de fin variar? de acuerdo a la capacidad y los
voltajes de programación también.
Se recomienda el
uso
del algoritmo de programación QUICK-PULSE paraaquellos
tipos de EPROMs que usen voltajes de 21V y de 25V. del algoritmo INTELIGENTE
para los tipos que usen voltajes de 12.5V.
"_
-
PAGINA 22
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 23/128
PROYECTO
TERMINAL
GRABADOR DE EPROMS A U T ~ N O M O
DIAGRAMA DE FLUJO 5. Algoritmo de programación QUICK-PULSE
+ P A S S
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 24/128
PROYECTOERMINAL cR .\BADOR
DE
EPROMS A U T ~ N O M O
DIAGRAMA DE
FLUJO
6. Algoritmo de programación INTELIGENTE
f
t
ES
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 25/128
PROYECTOTERMINAL - GK.L\BADOR
DE
EPROMS AUT~NOMO
IMPLEMENTACIÓN
DEL SOFTWARE.
A continuación se presenta el código fuente del programa principal implementado
únicamente para EPROMs 2764A.En el ANEXO 2 se incluyen listados de programas
que fueron usados para probar el sistema por partes.
;LISTA DE ETIQ UETAS
#INCLUDE EQUS.TXT
LIST
LIST
PCTRL2
PCTRLI
PA2
PA1
PB2
PB1
PC2
PC1
DIRBUFF
TIPO
TIP0.3
STATO.0
STAT0 1
ADRO
ADRl
START0
START1
END0
END1
TEMP1
FILLK
FILLKW
CHKSUM
NBYTES
RTYPE
TEMP2
VBYTE
X
XCERO
XUN
O
XDOS
XTRES
XCUATRO
XCINCO
XSElS
XSIETE
XOCHO
XNUEVE
XA
XB
XCMAY
XCMIN
XD
XE
XF
XG
XH
XI
XL
xs
xu
XY
XlNT
.EQU
6003H
.EQU
4C@3H
.EQU
6000h
.EQU
4000H
.EQU
6001H
EQU
4001h
EQU
6002H
EQU
4002H
EQU
8MX)H
.EQU
29H
EQU
30H
.EQU
OOH
.EQU
01H
.EQU
31H
.EQU 32H
.EQU
33H
.EQU
34k
.EQU
35H
.EQU
36H
.EQU
37H
.EQU
38H
.EQU
39H
EQU
3AH
EQU
3BH
EQU
3CH
.EQU
3DH
.EQU
3EH
EQU 3FH
.EQU
ODFH
EQU
086H
.EQU
OBBH
.EQU
OAFH
EQU OE6H
.EQU
OEDH
.EQU
OFDH
.EQU
087h
EQU
OFFH
.EQU
OEFH
.EQU
077h
EQU
07Ch
EQU
059H
EQU
03CH
.EQU
03EH
EQU
079H
.EQU 071H
.EQU
06FH
EQU
076h
EQU
050H
EQU
058H
.EQU
O G D H
.EQU
05EH
EQU
06EH
EQU
OB3H
,PALABRAS DE DIRECCiON DE ACCESO PARA
.CONFIGURAR LAS
PPIs
,PALABRAS DEDIREt-;:JN PARA ACCESAR A
,LOS PUERTOS DE 3 L ; A PPI
,SE L ISARA 1' PARA , J >PI-A
Y
'?
PARA LA PPI-B
VARIABLES USADAL
E1.l
EL PROGRAMA
-
PÁGINA25
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 26/128
PROYECTO T E R MI N A L ~
K
X B ADOR DEPROMsUTóNOMO
0063
0064
85
0066
O067
O068
m69
0070
0071
0072
0 0 7 3
0074
0 0 7 5
0076
0077
0078
0 0 7 9
o080
0081
0082
0083
0084
0085
0086
m 87
O088
0089
o090
0091
0092
0093
0094
0 0 9 5
O09 6
0097
0098
0099
o100
o1 o1
o102
o1a3
o1o4
o1
o5
o1
o6
O107
o1
o8
o1a3
o1 10
o111
0112
O113
0114
O115
0116
o1 17
O118
o119
o120
o1 21
o1
o123
O124
o125
O126
O1
27
o1
28
o1
29
o130
O131
O132
o133
o1
3 4
Moo
Xx309o6003 INICIOOVPTR,#PCTRL' ,CONFIGURACIOI.I
DE
LA PPI-B
M03 7488 MOV A,#88HARAODOS Di :t'ERACION
2005 FO MOVX @D Pi R. k VER HOJAS 7 k: I C A S
20069o4003 MOVPTRPCTRLl CONFIGURAC
;;1
DE LA PPI-A
2009
74 80 MOV,#80H
2008
FO
MOVXDPTR.A
2ooC 31 A7 ACALL PWRDWN
200E
200E
71
29
REGRESOCALL
HOLA
2010 74 B3 MOV A,#XINTDESPLIEGA SIGNL L)E- INTERROGACION
201271 BE ACALLMPRIME
201471 66 MON-PB2CALLHECK-PBSMONITOREA PbL PARAELECCIONAR
2016 B440 FBJNE,#049H,MON_PBZ ,ELODO DE 1 KABAJO
20198000 SJMPOD-INDP
201B
201B 7450 MOD-INDP MOV,#XI .MOI\IITOREA PBIAitAOMENZARON
201D 71
BE
ACALLMPRIMEODO INDEPElhO:ti~lTE, PB2 PARA
201F16 CHKI ACALLHECK-PBSAMBIARODCjC?ENDIENTE
2021 844002 CJNE A,#040H,CHK2
202401 2B AJMP MOD-DEP
2026 8480 F6 CHK2JNE A,#080H CHKI
2029
o1
98 AJMPENU-IND
M2B
202B743E MOD-DEP MOV,#XDMONITOREAB1 f fiF?i?. COMENZARON
202D 71 BE ACALLMPRIMEODO DEPENDI:.: 1-E O PB2 PARA
202F
71 66
CHECK1CALLHECK-PBSAMBIAR
A
MOL
'
IDEPENDIENTE
2031 844002 CJNE A,#040H CHECK2
203401 1B AJMPOD-INDP
2036 848 0 F6 CHECK2JNE,#080H CHECK1
2039018 AJMPENU-DEP
203B
2038
203B
7479
MENU-DEP MOV A,#XE
2030
71
BE ACALLMPRIME
203F 7450 MOV A , W H .PROGRAMAUERTO
SEK:E
H i MODO
1
2041 F598 MOVCON,A
2043
2043
74 F4 MOV A,#OF4H CARGA VALOR DE BAUDRATE
2045
F5 8D MOVH1.A
2047
20474
M
MOV A,# MH ,PROGRAMAIMER 1 EN MJLJ~:
2049
F5
89
MOVMOD,A
2048
2048
7440 MOV A . W H ARRANCA TIMER 1
204D F58 MOVCON,A
204F
204F
204F
204F ;RUTINA DEMENUNMODOEPENDIENTE
204F
906002 WRRS MOVPTR,#PC2
2052 74
OF MOV A,#OFH
2054
FO
MOVXDPTR.A
2055
CO
EO
PUSH A
20571 58 ACALLECIBE
M59
8401 O 4 CJNE
A,#01ESF2
205C DO EO POP A
205E01 6B AJMPEM-PROG
2060840204 ESF2CJNE A,#O2,ESSAL
2063
DO
EO POP
206501 7DJMP PROG-MEM
2067
DO
EO ESSALPOPA
-018 AJMP MOD-DEP
2068
2068
;
MANDA 80 BYTESDELCONTENIDODELBUFFERDE LA
KAh l
DEL KIT A
PC
2068
71 58 MEM-PROG ACALLECIBERECIBEYTE Al O CIE DPTR
206D
F5 83
MOV DPHA
206F7158 WRDL ACALLECIBEECIBE BYTEAL<,
.:E
JPTR
2071 F582 MOVPL,D
2073
20739 80 MOV
R1.#80H
2075
.**~***,~*l l * f * * f * f * * t t * * * * * * * * * * t l t t * t - ~ * * . ~ . . . . .
.** t*t~******,***~***********~.*~***r.~..*...*~*.~******~~*..***.*.~....
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.* L ~. .~ ~~~~ .~ ~. ~~~ ~ . ...~..
. t t t . * t * t * t * * f f * * * t t* * ~ ~ ~ * * . ~ ~ ~ ~ * * . * ~ * . ~ * . . ~ * * . . ~~ ~ * ~ * * ~ * ~ ~ ~ * * ~ * ~ . . . . .
.****
****f***~tf.*.****t*****f.*****~~~..*~*.~*~t*f***.*****.**~~t.t-I...
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 27/128
PROYECTOERM
IN
AL - ..~ ~~~GK.4BADORDEPROMs AUTóNOMO
O135 2 0 7 5 EO
O136 207671 4A
O1372078 A3
O138 2 0 7 9 D9 FA
O139 207B O1 38
O140 M7D
014107D
O14207D
O143 M7D71
58
O 1 4 4 207FFB
O145 208071 58
O146
2082 FA
LOOPEOVXA,@DPTR
ACALL TRANS
INCPTRIGUIENTEATC
DJNZR1LOOPE
AJMP MENU-DEP
**
ttt****tt*...,..~* ~*..******.~***~~~***.~*..****~.~..~**~***.*~..-..
, RECIBE EL CONTENIDO DE
UN
PROGRAMA DE LA PC A L 6J;FER DEL KIT
PROG-MEMACALLRECIBERECIBE ELTOTAL DE 6 V E S
DE
CODIGO
MOV3,A
ACALLRECIBER3CONTIENEBYTEALTO
MOV2,A ,R? CONTIENEYTEAJO
o147 2083
O148 2083 71 S3 LOOPCAPCALLRECIBERECIBE 2 BYTES DE ÜiR tL:c lON
01- 2085 F5 83 MOVPH,A
O150 208771 58 ACALLECIBE
0151
2089 F582 MOV DPL,A
0152 2088 71 58 ACALLECIBEiEClBEATO
O153 208D FO MOVXDPTR,A
O 1 5 4 208 EIA DEC R2
O15508FAF1JNEZ,#OFFH,LOOPCAP
O156 M921B DEC R3
0157 2093 BB FF ED CJNE R3.#OFFH,LOOPCAP
O158 209601 38 AJMPENU-DEP NRRS
o159 2098
O160 2098
0161 2098 ;RUTINA DE MENUNMODONDEPENDIENTE
O162 209851 EDENU-INDCALLONF-ESCR
O163
M9 A 31 A7 ACALL PWRDWN
O16409C 746F MOV,#XG
O185E71 BE ACALLMPRIME
O1660AO1 F6CALLED?
O167 MA 2
31
A7 ACALLWRDV'JN
O168 20A471 66 ACALLHEYK-PBS
O169 MA6B4401A CJNE.#O<)HtdICIO-GRAB
O170 20A9 74 59 MOV.#XCMAY
O1
71
20AB1 BE ACALLMPRIME
O1720AD1
F6
ACALLEC2
O173 MAF 31 A7 ACALL PWRDWN
O174 2081 71 66 ACALLHECK-PBS
O175 20 83 8440 12 CJNE.#040HNICIO-COMP
O176 2086 74 3C MOV A # X C M I N
O1
77
2088
71 BE ACALLMPRIME
O178 208A 71 F6 ACALLEDL
O1790BC 31 A7 ACALLWKCVVIN
0180 20BE 71 66 ACALLHECK-PBS
0181 20CO B440OA CJNE,#CJOHAL-IND ,checa C O I I
pb2
0182 20C3
0183 MC3
0184 20C3 84 80D2 INICIO-GRABCJNE ,tO30H,MENU-IND
O185 20C6 O1 D2 AJMPRABAR-IND
0186 MC88480 CD INICIO-COMPCJNE
A
#080HMENU_IND
0187 M CB 21 25 AJMPOMPR-IND
O188 MC D 480 C8AL-IND CJNE A , m O HMENU-IND
O189
20DOO1 1B AJMPOD-INDP
O190 20D2
O191
20D27529 FFRABAR-INDOV TIPII)OFFH
0192 MD50529 PROX-TIPONCIPO
O193 20D7 E529 MOV,TIFL?
O194 20D9 71BCALL GE;"C
O1950DB1 F6CALL LEC..
O196 20DD1 66 ACALLHCC.I_ PBS
0197 20DF 8 4 40 07 CJNE A M14CH START ,PB2
O198 ME 2E 52 9 MOV ATIFC
O199 20E4 B4 O8 EEJNE.#D",t-.ROX-TIPO
O200
20E701 0 2 AJMPRAHiiR-JND
O201 20E9
O202 ME 9
O203
20E9 84 80 E9 START CJNE,#08Cti PROX-TIPOPB1
OM4
ME C 31 28 ACALL
I N l r
_ t i l i k F INICIALIZARL Bu: t ; iDE
LA
RAMN OOH
O205
20EE 7471 FUENTEOV,#XF
O206 20F071 BE ACALL IMPC?IIV1E
.. f*******~.t~...fttlttlttt********tttl~....~.**~*******.**~******~.i..~..
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 28/128
PROYECTO T E R M I N A L "_
(
;
A
BADORE EPROMsUTóNOMO
0207 20F2 71 F6 ACALLEC.'
O208 20F431 A7 ACALLW"3'uIYbd
O209 20F6 71 66 ACALLHE-:I(_PBS
0210 20F8 840 F3 CJNE A.#WOh FUENTEPB1
021 1 20FB
71
E3 ACALLEU
0212 20FD 711CALL DEi4:'IX
0213
20FF1
48
ACALLCMCCARGARLONTF
PIID0
DE LAPROMN
LA
RAM
0214 2101 743E DESTINOOV,#XE
0215 21031 BE ACALLMPRIME
021
61051 A7 ACALL PWRDWN
0217 2107 71 66 ACALLHECK-PBS
0218 21098480OC CJNE,#O?O+,SALIR-DEST
0219 210C713 ACALL LEL
0220 210E51 16 ACALL PCM3 PROGRAMARAPROR,' .;3N EL CONTENIDO DE LAAM
O2211 105
29
MOV A.TIPS
O 2 2 2
21 12 71BCALLE-TSC
O223 2114 711CALL
DELa\~X
0224 21161 O1 AJMPESTINO
O225 2118743C SALIR-DEST MOV,#XCMIN
0226 211A71 BE ACALL IMPP:IME
0227 21
1
C1 A7 ACALL PW'T'CWN
O228 211E716 ACALL CHEIK-PBS
O229 212 08480DE CJNE A,#EO+ESTINO
O230 212301
9s
AJMPE1 -i~~II\lL:
o231125
0232 2125
O233
212531 28 COMPR-INDCALL INIC_?'I FF
O 2 3 4 212731
48
ACALLCM:
O235
212901
98
AJMPENLJ
. N E
O236 2128
0237 2128
O238 2128
O 2 3 2128 C083 INIC-BUFFUSH DPH
0240 21D CO 82 PUSH DPL
0241
21F COO PUSH
A
0242 2131
903000
MOVPTH3000H
0243 21347400 PONCEROOV A,#03b
0244 2136 FO MOVXDPTR A
0245 2137 74 FE MOV,#OFEH
0246 21
39
85 82
OC
CJNE A,DpL F'KOX-CERO
0247 213C 74 3FOV A,WFH
02481 3E537 CJNE A,DPH PROX-CERO
0249 211
DO
EO POP A
O250 2143
DO82
POP DPL
O2511 45
DO
83 POP DPF
0252 2147 22 RET
o m 148
O254
2148A3 PROX-CERONCPTR
O255 214921 34 AJMPOIIC.F.RO
o256
2148
0257
2148
o258 2148 ;LEEELCONTENIDO DE UN
RA:~ G,C
DE LAEPROM ESPECií I':ADO POR EL USUARIO
o259 2148
;YESPUESTOEN LAMEMORIP J F L BUFFERUSANDOLA
MtJFAA
DlRECClON
0260
2148
o261
2148 CCMDMOVPTR,#PCTUL
o262 2148 .MOV.#89H
0263 2148 ,MOVXDPTR,A
O264 2148314 ACALL PWRLP
O265 214D1 00 ACALLONF..ECT
0266
214F900000 CCMDI MOVPTR
AXXDH
M67 2152
O268 2152316 CREADCALLDPROM
02El 2154 COO PUSH
A
0270 2156 E53 MOV A,DFki
0271 2158 4430 ORL A,=, .
:
m B
M72 21
5A F53 MOV DPh <
0273 21% DOO POP
A
0274 215E FO MOVX @L)L T L P,
0275 215F4 F F MOV A,#OFl'I
0276 211 85 82 O 6 CJNE
A .0 ; ' .IrEXT
0277 21644 3F MOV A :-;L.
02781 66 05 83 O1 CJNE A 0; -I LIvEXT
.*****f.***.
INICIALIZAR BUFFEF
. ahC E R O S Y
CARGAR EPIL
I I A
RAM *************
..tt INlClALlZA EL BUFFEX 3FL KIT EN
W H
****t*t****r~''r********
.********.** COPIA DATOS DE
Lt.
P R O M ALBUFER
*tff*~*f'.'t~'*f~*********
~~
PAGINA 28
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 29/128
PROYECTOTERMINAL
c ?\BADOR DE PROMS A U T ~ N O M O
0279
0280
o281
0282
O283
0284
O285
0286
0287
O 288
O289
O290
o291
o292
O293
O294
O295
O296
0297
O298
O293
o300
0301
0302
0303
a304
a#)5
a306
0307
a308
0309
o31o
o31 1
o312
o313
o314
o315
o31
6
o31 7
o31
8
o31
9
o320
o321
o322
o323
o324
o325
o326
0327
0 3 2 8
o329
a330
O331
a332
0333
0334
o335
0336
O337
o338
0339
0340
0341
0342
a343
o344
a345
o346
0347
o348
0349
a350
2169
22
RET
21 6A
216A A3 CNXTNCPTR
21
6B E5
83
MOV A,DF-I
216D 5 4 CF ANL A. # l 'C ~l l I B
21F F5
3
MOV DPH +
2111
52
AJMP CRMI'
21 73 22
RET
21 74
21 74 .esteprocedimento nicializa
los
' ~ ~ l ' d , t . : ,
ue
se
mandanalsocket
- 1 ,
2174
,5
volts
217 490600 0 PWRUP MOVPTR
::PA:
21 77 7480 MOV A,& --
21 79 FO MOVX
@ D ' l
3 A
21A 90 40 O1 MOV DPT '< ifPB1
217D 7417 MOV A,# l ' 4
21F FO MOVX @ D F ' l ' i A
2180 90 60 O1 MOVPTF dPB2
2183 746 MOV A#KA+
21
85
FO MOVX @CF H
A
2186 90 60 02 MOV DPT" %PC2
21
89
74 OE MOV#OE.-
218B FO MOVX @DP: Y A
218C 75 90 FFOV1 W L
218F1 92 ACALL DL
'%
2191 22
RET
21 92
2192
782LYW MOV3,#32+
219431 93 DL-CALLELAY 1
2196
DB FCJNZ3 i ' .
X
2198 22 RET
2199
21
99
2199
7400 DELAY1OV,#O
2198
D5 EO FDL1 DJNZ A.DL1
219E D5 EO FD DL2 DJNZ A,DL2
21A1
22
RET
21A2
21A2
21A2 78 OA DLYM MOV R3,##OAt
21A4 DB FE DLYM I DJNZ3,DL'.
21 A6 22 RET
21 A7
21 A7
.~~f.********ft*tl~tf**
OWER Dc,LJ \l
.*.******t******l*t**tt*tlt***'r..****t
21A7 , a q u semandanvoltajesde O volts
? S I
comodatos y direcciones anrblen O
21A790 40 00 PWRDWN' MOV DPTFiPA1
21
AA 74
00
MOV A.#0:'i+
21AC FO MOVX @ A
21
AD
90
60
02
MOVP? 3
:QC2
21
BO 74 OE MOV
A.#(1F
21
82
FO MOVX @ L b ;iA
21 83 90
60 O1 MOV DP: - XPB2
21 B64 A6
M O V a
M:;.
.
21 B8 FO MOVX @ F ;? k
21 B9
90 4
O1 MOV DPT:
::PBI
21 BC 74 A8
21 BE FO
21BF906000 MOVPTL :PA?
21 C24 4EOV A #4C ' 4
21 C4 FO MOVX
r I
'"
:
A
21c5 22 RET
21 C6
21 C6
21 C6 ,ESTARUTINALEEEL CONTE'I
i ' i i
3E UNALOCALIDAD.
21 C6 ;ELDPTR'CONTIENE LA
L O C A , I : . A U A
SER LEIDA
21 C6 ;EL RESULTADOESREGRESA i EN ELCC
21 C6
21C6 85 8332 RDPROMMOV ADKl
,
>L i
21 C9 852 31OV ADRG
I:
21cc
21CC1 CE AJMPDG4
21 CE
.~.*****.*.~.~ff*ftft POWER . . . I . . . . . . . . * * * * * * * * * * * ~ * * ~ ~ ~ ~ . ~ * . . . . . 1
.*****.*~**,*f*ltll**ff
RETARDO
['F
3
millsegundos
***********'"*+***
I tttt tt . retardo de, mil,seg , , ~,, ~ . * * t f * f * * * . * t . * . . * l * * * i t * t * * L . .
. ftl.. l f . llf. tt
RETARDO Lt- 3 iilcrosegundos ************l'''*ff****
MOV A
#I:,:,.
, i
MOVX Q L I R A
I*f.*fl..*I**
RUTINAPARA
L t L
+ROM * * . * * * * * * * * * * * * * * * . e
...l.
f*
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 30/128
PROYECTOERMINAL cx~BADOR E
EPROMS
A U T ~ N O M O
0351
a352
a353
a354
a355
a356
a357
0368
0359
O360
O361
a362
o363
a364
0385
0366
a367
0368
m
0370
O371
0372
0373
0374
0 3 7 5
0376
0377
0378
0 3 7 9
a380
0381
m 2
a383
0384
o385
0386
m 7
0388
0389
0390
a391
a392
0393
a394
0 3 9 5
0 3 9 6
0397
0398
0399
o400
0401
0402
0403
O404
O4 0 5
O4 0 6
0407
O408
0409
o41
o
o41 1
o412
O41
3
O41 4
O 4 1
5
O41 6
O41
7
O41
8
o41
9
o420
o421
o422
21
CE E5 32 RD64
21 DOD2 E5
21 D2
20
E3 OA
21D5
21D5904001 A11L64
21 D8 D2 E3
21 DA
4
3F
21DC FO
21DD 21 E7
21 DF
21DF904001llH64
21 E2 C2 E3
21E454 F
21E6 FO
21 E7
21 E7
90
40
00 RDNX64
21 EAE5 31
21 EC FO
21ED906002
21 FO 74 OE
21 F2 FO
21F390 60
O1
21 F6 74 26
21 F8FO
21F9906000
21FC 74 83
21 FE FO
21FF904002
m 2 3 1A2
2204 EO
2205 COEO
m 7 9 3 6 0 0 0
22OA 74 81
ZZOC FO
m D OEO
m F 5 32 3
221
2
85 31 82
2215 22
2216
2216
MOVA.ADR1
SETB A.5
JB A.3,Al
1
' : I - .
MOV DPTR.#FB
SETB A.3
ANL A,#001
? i
B
MOVX
@DP
'
A
AJMP RDk
' ~ i
MOV DPTR # F ' f
CLR A.3
ANL A,#001' ' ' l iB
MOVX@DF
fi
MOVDPTR I 5 '
MOV A.ADK:
MOVX @DF' i
MOVDPTR
ill
; 2
MOVA.#OE.
MOVX @DP. F c
MOV DPTR
r; 3L
MOV A , # 1 6 r ,
MOVX@DF
I ii.
MOVDPTP
: f
A?
MOV A,#KiL
MOVX@DP 1. A
MOVDPTE ::: 2
ACALL
DLYI':
MOVXA.@L:"-R
PUSH A
MOV OPTS : 4 2
MOV A.#61"
MOVX @DF
F: 4
POP A
MOV DPP. : I
MOV DPL t - i
RET
2216
2216 ;PROGRAMALOCKET
SEG
1 4
EPROM
I...**********..***
ESCRIBE DATC :; >EL BUFFER A LA EPROM "****'***********
221651 EDCMD
2218 31 74
221A 75
33 00
PCMDI
221D 75 34 00
2220 85
33
82
2223
8534 83
2226
222651 EDAGAIN
2228
71 13
A EO
2228 71 1E
222D51 59
222F 20 O1OD
2232 74 FF
2234 B5 82 1
2237 74
OF
2239
8583
19
223C 31 A7
223E 22
223F
223F 74
76 P E R R
224171 BE
224371 81
2245
71 81
2247 74 86
224971 BE
2248 71 81
471 81
ACALL
CON F.^;
~ ;R
ACALL
PLV " ;'
MOV STAR' .COH
MOV
ST;* #03H
MOV
DP -
AKTO
MOV
DPt
+RT1
ACALLONF
- i R
ACALL
TGF:
ACALLDFE
ACALL Whir '-?OM
JBTAT 'ERR
MOV A,#(
CJNE A Di >',IEXT
MOV
A N I
'
CJNE A;¡ JEXT
RET
MOV
A,#XH
MOVX
A,C:
r .
TR
ACALL
l''v'u, ~ v N
ACALL Irdb; IL'F
ACALL DE'
ACALL DE.. I
.
MOV A#Y.J'.
ACALL MP'.: . ¡E
ACALL
DEI ' X
ACALL
DE
PÁGINA30
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 31/128
PROYECTO
TERMJNAL
G R
BADO OR
DEEPROMS
A U T ~ N O M O
0423 224F 71 66 ACALL Cnt . "ES
0424
2251 84808 CJNE
A , N X ~
;'ERR
0425
225422 RET
0426
2256
0427255A3NEXT INC DPTR
0428
2233 41 26 AJMP PAk;
' : ,
0429
225822 RET
04302259
0431 2259
. t.
RUTINA PARA ES(: 3-. EPROM
*t*.***r...*r***.
0432
2259
;ESTARUTINAESCRIBE EL
LCI '
' I I D O
DELBUFFER A UNA
8
JCALIDAD
04332259 ;EL'DPTR' CONTIENE
LA
LOCAL
u A SER ESCRITA
04342259 ;EL VALOR A ESCRIBIRSE ESTA , EL ACC
04352259
O436
-85832WRPROM MOVDRl J
0437 225C 852 31OV ADRO 1
O438 22 5F F5 39 MOV FILLKV,
0439
2261
O440 2261 41
63
AJMP
WR B 4
0441 2263
0442
2263
.~f.fl**.....t*f*****., EPROM
_,.,\., ...*l. ff.****************** *~**....*
O443 2263906000
WR64A
O444 2266 7481
O445 2268 FO
o446 226996001
0447 226C 74 2D
O448 226E FO
O449 226F906002
o450 2272 740E
0451 227 4 FO
0452 2275 74 32
O453 2277D2E5
O454 22 79 M E3OA
o455
227c
O456
227C904001Wl lLGA
0457 227F D2 E3
0458
2281 54 3F
C459 2283FO
0460 2284418E
0461 2286
04622286904001W11 H6A
O463
2289 C2 E3
O464
2288 543 F
0485
228D FO
O466 228E
0467 28E 904000 WNX64A
O468 2291 E531
O469 2293FO
0470 2294 90
40
02
0471 229731A2
0472 2299 31 A2
0473229831A2
0474 229D 31 A2
0475
229F 75 3F 00
04762A2 E53 9 AGN64
047722A4 FO
0478 22A5906000
0479 22A8 74 85
0480
22AAFO
O481
22AB
COEO
0482
22AD
31 A2
0483 22AF 31 A2
0484228131 A2
O485
228331A2
04862285DO EO
0487
2287053F
O488 2289
O489 2289 E53F NOV64A
0490
22BB CO EO
0491 22BD906000
049222C0 7481
0493 22C2FO
0494 22C3
90
40 02
MOVDPTR,#F
MOV A,#06:
MOVX @ D F .
MOV DPTF: ;i ' :L
MOV A.#2D.~
MOVX @DP-
MOVPTH
'_ I
MOV A,WCt S ,
MOVA.#AI:
SETB A 5
MOVX @DF'".
JB A3.WJ"'
.
MOVDPTK
iiF
SETB
A
?
ANL A . m '
'18
MOVX@D .
AJMP w m - ,
MOVDPTK
#F '
CLR A3
A N L A , W : j \
i
1B
MOVX
@ D F .
-,
j j
MOV DPTH t :
M O V
A
MOVX@ Ut
.
MOVDPTP -
ACALL
DL';.
ACALL DL'(:
ACALL
D i
ACALL Di ' l_'
M O V X , K
MOVX@Dt'
+
MOV A,FILLI<L',
MOVDPTR i' .\?
MOV A
8 5 '
MOVX @D i '~
PUSH
A
ACALL DL\
ACALL DL 1
ACALL D i
i.
ACALL DL .'.
POP A
INC
X
MOVA,X
PUSH
A
MOVDPÍ-F ; 42
MOV A,&'.<
MOVX@ I+
i
MOV DPTh .:
I
-
PÁGINA
3
1
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 32/128
PROYECTOTERMINAL
-~
G KABADOR DEPROMs AUTóNOMO
0495
496
o497
04
0 4 9 9
OM30
0501
0502
0503
0504
O 5 0 5
0 5 0 6
0507
0 5 0 8
0509
o51o
o511
o512
o51
3
o514
o51
5
o 5 1
6
o51
7
o51
8
o519
o 5 M
o521
o522
o523
o524
o525
o526
o527
o528
o529
0530
0531
0532
05J3
o534
0535
o536
0537
o538
o539
0540
O541
0542
cm3
o544
o545
0546
0547
0548
a549
0550
0551
0552
0563
0564
a555
0556
0557
0558
0559
0560
O561
O562
o 5 6 3
o564
0565
0566
22C6 DO EO
2208 04 20 D7
22C B
22CB E5FOVER64
22CD906000
22DO 74 85
22D2 FO
22D3906000
22D6 74 81
22D8 FO
22D9 C2 O1
22DB 85 32 83
22DE 85 31 82
22E1 22
22E2414 PERR6A
POPA
CJ NE A , # X
..<;Id64
MOVA.X
MOV DPT"
r '
?L'
MOV A,#85~
MOVX@DF 4
MOV DPT .' . 42
MOV A,%
MOVX@Dr'
'
CLR STAT:
MOVPP
MOVPL - i l
RET
AJMP PGMEk
22E4
22E4
22E4 D2 O1 PGMERR SETB STATC.
22E6 8523 MOVPL
í '
22E9 85 31 82 MOV DPL t L ,
22EC 22 RET
. , . .I UTINA DEERE( ,
k;h
PROGRAMAClON
*******r'''''**********.i
~~
Z E D
22ED
.***"**.*.*f.*
C ON F I G
P P I - A;
,; ESCR,TURA It . +. -
22ED ,en espeaal puerto C dea PPI-..
Z E D COEO CONF-ESCR PUSH
A
22EF CO 83USHPH
22F1 C0 82 PUSH DPL
22F3904003 MOV DF'T? :TRL1
22F6 740 MOV A,#6:'-
22F8 FO MOVX@DF .1
22F9 DO82 POPP
22FB DO 83OPPH
22FD DO EO POP A
22FF 22 RET
m
2300
m C 0 O CONF-LECT PUSH P
2302
CO
83USH DF'b
2304 CO 82 PUSH DPL
2306 9040 03 MOV DPTn i:F TRLI
2309 749 MOV A,#SC'"
2308 FO MO VX @U i
'
c
230C DO 82OP DPL
230E DO 83OPPri
231
O
DOO POP
A
231 22 RET
2313
2313
2313 ,para fectos e rabar parttr ilt.
1
(*,.aildad3000h
2313 COO TDPBUSH
A
231 5
E5
83 MOV A
D P L
23174430 ORL A , # K :IXX)B
231953OV DPh
231 B DOO POP
231 D2
231E
231E
231 E ;paragrabarapartlrde la
d l r e c r l d I K k
de
la
EPROM
destino
231 E COO TDPEUSH
A
232053OV
A
at
2322
54
C ANL Ad 1 8 1 i B
232453 MOV
DL'&.
.
2326 DO EO POP A
2328
22 RET
2329
2329
2329
2329 74 76 HOLA MOV.#76l-
2328 71 BE ACALL lb::-.
t
232D 711 ACALL L i z . '
232F 711 ACALL De:-'
.******t..**..* CONFIG
; ,, .* ****************f...... e***
m ,enspeclaluerto C dea PPI-?
.***
... . +
TRANSFORMA E; : . :,E EpROMA RAM Lltlt. . ..I t
.****.* A A . . . . . *
TRANSFORM+, L
E
9AM A EPROM LI**.t**.**,1..r*l**tt*tttt
.**~*****..,..********~ lMPRllv,t - , y
r**l*****************t**~**~.r.r*
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 33/128
PROYECTO
T E R M I N A L G I )~
BADOR
DE EPROMS A U T ~ N O M O
0567
2331 745FOV A.&i
C E 3
233371BE ACALL IMP - 'E
C569
2335 711 ACALL DE,
'/
0570 2337 71 81 ACALL DEL(-
'
0571 2339 74 58 MOV A.# jt
0572
2338 71 BE ACALL IMP;- 'E
0 5 7 3
233D 71 81 ACALL DEL.
''
0574
233F 71 81 ACALL D E L -
0575 2341 747 MOV At-t 7.
0576
2343
71 BE ACALL IMF
7
.
'E
0577
2345 71 81 ACALLU E: 1 <
0578
2347 71 81 ACALL DEL-\
X
a579
234s 22 RET
0580 234A
0581 234A F5 99 TRANSMOVBUF.A
0582
234C COO PUSH A
0583
234E 71 95 ACALL DISPLAY
0584 2350DOEOOP
0585 23523 099 FD
W T B
JNB SCON
1 W't
TRANSMITEYTEDlRECC .JNADO
0586 23 55 C2 93 CLR SCON 1
0587 235722 RET
05 8823 5 8
O589 2358 3998
FDRECIBE JNB SCONO.REi
~
,RECIBEECO DE TERMINAL
0590 2358 C2 98 CLR SCON O
O591
235D €599
MOV,SBUF
0592
235F COEO PUSH
0583
23611
95
ACALL DISPLAY
0584
2363DO EO POP
A
o595 236522 RT
586
2366
0587
2366
0598
2366
0599 2366
;monltorea
los
botones
de contro l . .' ' í PB2) y no regresa hasta qLle no
o600
2366 C083
CHECK-PES:
PUSH
IF1+
;se haya
preslonado uno de
los
:
0601
2368
C082
PUSH
UPI-
0602 236 A93 600 2 MOV DP-F dPC2
O603
236D 74 00 CHECA MOV A,#UOt.
0604 236F EO
MOVX A @ ? ' TK
0605
237054CO
ANL A
MlC
. I I
0 6 0 6
237230E605 JNB
A+.>
~ P B S
0607 237530
E7 02
JNB
k
I -PBS
0608 2378 61 6D
AJMP U t i
' A ,
.** 1....***************.*****""***~.
* * ~ ~ *tlttt,~*tttt****~~,~**..,.....ii
~.*..*******f~******.fffft*****t*
.lt~ .... . f . ~.~ ~ ..1.
. ..r.r***********t*************+t***
0609
237A 71 81 FIN-PBS ACALL DECA
/ I _
0610 237C DO 82 POP [:F.
06137E DO 83OP GPr
0612 2380 22 RET
0613 2381
0614
2381
0615 2381
0616 2381 79 60 DELAYX MOV RI ,# WP .RETARDO
0617383D901 DELAY0JNZ R1 DEi.4YI1
0618
2385
22 RET
0619
2386
06M
2386 78 00 DELAY3OV RO,WJk:
0621 2388D8E RETA1 DJNZO,REl~b
0622
238AD8FE RETA2
0623 238C 08 E RETA3
DJNZ RO.RE?
^
3
0624 238ED8FE RETA4JNZO.Rt"
A 4
O62 5
m 0 8 EETA5JNZO,RET35
0626
2392
G I
83
0627 m 4 2 2
06282395
0629
2x35
06302x35 ;
ESCRIBE EN EL DISPLAY EL X' ITENlDODELACUMULADOH EN DOSDlGlTOS
HEXA
O631
23 C 0 8 2
DISPLAY PUSHPL E':CRlBE EN EL
DISPLAY
EL CONTENIDOEL
0632 2397 CO83USHPH b C MULADOR ENlGlTOSEY4DECIMALES.
O633
2XBCOEOUSH A
0634
2333 54
OF
ANL A
W F H
0635
239D
71 AB ACALL GE 7SL' ESCRIBE EL
BYTE
BAJO
O636
239F
DOE 0
POP
A
0637
23A1 C4WAP
A
O638
23A25 4OF ANL A.#OFh
.*** 't*t**.lrr****tI*tl**lr.trrt........r.+r.~~ttt.t***********~****~****
DJNZ RO.KE-1 .2
AJMP
D E G
0
RET
.It****r*+tl+.tr*.*.*~****..*..~~......+.....+*t**tl+rr*****r******tt+tt*r
~
PÁGINA
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 34/128
PROYECTOERM
I
NAL G R
~ B A D O R
E
EPROMS
A U T ~ N O M O
-
~~ .
0639
O640
0641
0642
o643
o644
o645
o646
0647
0648
m49
O650
0851
0852
0853
0854
0666
o656
0857
o658
0859
0660
O661
0662
o663
o664
0665
o666
0667
o668
0669
0670
0671
0672
0673
0674
0675
0676
0677
0678
0679
0680
0681
0682
0683
0684
0685
0686
0687
0688
o689
0690
0691
0692
o693
m 4
0 6%
06
m 7
0698
06?23
0700
0701
0702
0703
0704
0705
0706
0707
0708
0709
071
O
23A471 AB ACALL GET7SC: SE ESCRIBE EL BYTE LTO
Z A G
DO
83OPPH
23A8 DO 82OPPL
B A A 22 RET
23AB
23A BREGRESA EL CODIGODE
y
SECVENTOSDEL ACUMULADOR
23AB
23AB C082ETi SC PUSH DPL
23AD CO 83USHPH
B A F
CO
FO
PUSH B
2381 90 240 9 MOV DPTR,#TAB~LA
238493 MOVC
A.@A+DP'R
GARGA DATO DE 7 SEGMENTOS
238 5 71 BE ACALL IMPRIME
2387
DO
FO POP
B
238 9 DO 83OPPH
23BB DO 82OPPL
23BD
22
RET
238
E
23BE
238
E
238 ;mandaal dlsplay el contenldo
del
acmulador cargadoantes
de
llamar
23BE
.a esteurocedlmiento,normallllente
;on
alguncodigoestablecidoen
id
.~**.rr*.*+r-* t**t***. **.~*.*....~. ....r.+tl*t*****t*****Ilttt****.*~.
.*** r*t.+.+r*****.**..**.******.....,+...*.r..*******t.****tttll***********.
23s ;etiquetas
23BE CO 82 IMPRIME
23CO CO 83
23c2 co EO
23c49060OO
23C7
78
0 8
2369 F 5 FO
ETQ- I
23C
B 4 80
23CO03
23CE 03
23CF
44
10
23D1 FO
23D2
4 EF
23D3 FO
23D5E5 FO
23D7
n
23D8 D8
EF
23DA 74
00
23DC DOEO
23DE
DO 83
23EO
DO 82
B E 2 22
PUSHPL
PUSH UPH
PUSH
A
MOV
DWR . d P A 2
MOV ROME
MOV
B A
ANL
P W U H
R R
i:
RR
A
ORL
A # ' O b
MOVX @DPT;i
A
ANL A#OEFF
MOV
A
ti
RL A
DJNZ RI ET . 4
MOV
A # K +
POP k
POP
DF'b
POP Dr7t~
RET
B E 3
23E3
23E3
CO EO
LED1
;rutina que permite encender al
Icd
'
:ed
rolo)
PUSH A
23E5
CO 82USH DPL
2 3 E - i
CO 83USH
3PH
23FJWGOOO MOV r)F
-R
w42
23EC 73 80 MOV
, - , O
B E E
FO MOVX @DF -,? A
2 3 E F DO
83OP
DFb
23F' DO 82 POP ::PI
23F3
DO EO POP k
23F5 22
RET
23F6
23FCj
COO LED2USH
A
23F5
CO
82 PUSH
DPL
23FA CO
83USH
SPH
23FC90GOOO
MGV U P T R . t P A 2
2 3 F F
74
40
MOV P #30H
2401
FO MOVX (QDP;~Y
A
2 4 2
DO 83CP dFti
2 4 - 1
DO
82
POP
r J r ,
2 4 i
DO
EO
POP
A
24x- 2
RE
i
2 4 0 ,
24m
,TABLASEATOS
2403
240cjDFABLA
BYTE
11011~1'18
l)
.**.~....
*********** ***.,.,.***lri..tlr.tr+.********tt*******tt+tt** * .~.
*~tt**+*rr*. tt*~LIl***~*~....*~~....r.....r**~**~**t.****tt*ltt*t*****t**
B C 1 - ;rutmaarancender led 1 leií lerci.
.I r*.r.r...+rrr*~~~.t~~*'t+rl.l*r....r.l.....r******..~. ****~**..****.*~
.gfedcba
.. - _ _ _ .
P GIN 34
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 35/128
PROYECTO T E R M N .AL
GR.ABADOR
DE EPROMS A U T ~ N O M O
0711 240A 86
BYTE
l r X X ?
i 38 :
0712 2406 BB
BYTE
1 0 1 1 ' ~ 0 ~ ' 1 B
0713 240CAF
BYTE
10101111B
3
0714 240D EG
BYTE
111OC:llJ3 4
0715
240E ED
.BYTE
11107 iC lB
5
0716
240F FD
BYTE
l l l l l ~ ' O I B 6
0718411 FF BYTE 111111~1B
8
0719412 EF .BYTE 111011 1B 9
0720413
77
.BYTE
0111Gl 1B A
072141 4 7 C
BYTE O111 11CK)B B
0722 2415
53
.BYTE
0107' ~K~l B
2
0723416 3E BYTE 03111''::R U
0724 241 7 79 BYTE OIlI X lEI t
0725 2418 71 BYTE O111MXllB F
0726419
0727419
0728 241ARG $+I ,OBLIGA AL El SAMBLADORA GENERAR
0729 241ACOM RUN WORD INICIC: "OR SEPARADONAINEA DE CODIGO
0730 241C END ;PARA
LA
CIREC .:ON
DE
ARRANQUE.
O731 241C
0732 241C
O733 241C
t a m : Number f errors = O
-
o717 241o a7 .BYTE 1oooO111B
7
".
PÁGINA 35
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 36/128
PROYECTOERMINAL GRABADORDE EPROMS A U T ~ N O M O
RESULTADOS
En
relación a os avances obtenidos en el presente proyecto podemos establecer que:
Es
posible "simular" la lectura y escritura alsocket, es decir, se pueden enviar señales
para datos, direcciones y control de voltajes tanto para eer como para escribir de la
EPROM.
Sedice simular" por el hecho de que no se han ogrado ealizar dichas
funciones en forma efectiva cuandoe coloca una EPROM en el socket, únicamentese
han verificado con una punta lógica y unultímetro.
Para
los
voltajes de control e sigue la siguiente técnica:
Si se quiere tener un voltaje
X
en
el
pin
Y
del socket, se debe enviar un
O
lógico
a la línea correspondiente al voltaje X del pin Y y 1's en as demás líneas de
voltajes. Esta técnica es válida n los pines 1, 22, 23, 26 28.
Por ejemplo si queremos que en el pin 22 se obtengan voltajes de 21 Volts y de
O
Volts respectivamente tendremos las siguientes asignaciones:
a) PCO-B = 1, PCI-B = 1, PC2-B =
O
PC3-B = 1, PA1
B
= O.
b) PCO-B
=
X,PCI-B
=
X, PC2-B = X, PC3-B = X, PA1
B
= 1.
donde laX significa cualquier valor
1
o O).
Para los pines20 y 27 funciona de la siguientemanera:
El
PB6-B para el pin27 y el PB6-B para el pin20 tienen la función de selectores,
es decir, estas íneas establecen si a salida cambia respecto a una (PN-B, si
PB6-B
esta en
1)
uotra
(PB6-A,
si
PB6-B
estaen
O)
línea de control (estos
valoressonparaelpin 27 del socket, paraelpin 20 funcionade la misma
forma), el valor obtenidoen la salida será la entrada seleccionada invertida.
Por ejemplo si queremos que en el pin 27 se obtenga primero un 1 y después un
O proporcionados porPA2-B tendremos las siguientes asignaciones:
a) PB6-B = 1, PB6-A = X, PA2-B
=
O.
b) PB6-B
=
1, PB6-A
= X,
PA2-B
=
1.
donde laX significa cualquier valor(1
o
O).
Las PPIs (8255) estánprogramadassegún as hojas técnicas ver anexo I ) , de la
siguiente manera:
PPI-A se programa con todos
los
puertos de salida en la fase de escritura de la
EPROM en el socket, y se programa con los puertos A
y B
de salida
y
el puerto
C de entrada en la fase de lectura de la EPROM en el socket, esto es por que el
puerto C de la PPI-A maneja
los
datos.
PAGINA
36
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 37/128
PROYECTOTERMINAL GRABADOR
DE
EPROMsUTóNOMO
PPI-B
se programa con los puertos
A,
B y la parte alta del puertoC como salidas
y apartebajadelpuerto
C
comoentrada,durante odoeldesarrollodel
programa, el hecho de que la parte baja del puerto C
(PCO-PC3)
se programe
como entrada es por que son las líneas que controlan los botones
(PBI
y PB2) y
estos proporcionan siempre una entrada al sistema.
El
sistema ya cuenta con elprototipode odoel programa en el cual ya están
establecidos todos
los
mensajes necesarios para la comunicación con el usuario, tanto
en orma ndependiente medianteel display, los leds y el reconocimiento de los
botones PBI y PB2), como en forma ependientemediante el display la
comunicación serial). Como consecuencia de esto ya existe completa comunicación
entre el sistema y cualquier computadora a través del puerto serie y mediante rutinas
mostradas en el anexo 2.
Dentro de estas rutinas existen algunas para leer el contenido de memoria de cualquier
partedel sistema, rutinas para escribir en cualquier parte de la memoria RAM del
sistema, rutinas para verificar
los
distintos voltajes en
los
pines de control, etc.
AI
existir un prototipo del programa principal únicamente restaría hacer un llamado a la
rutina correspondiente en el lugar indicado implementando la función llamada n algún
otro lugar del programa.
S e lograron mandar las señales de control, datos y direcciones tanto ara lectura como
para escritura al socket pero al momento de insertar laEPROM no funcionaban, por
lo
cual, se sugiere verificar a sincronización adecuada de dichas señales, así como
verificar los tiempos y la implementaciónde los algoritmos de programación.
Debido a
los
constantes problemas de hardware (chips quemados, en particular
PPIs)
se aconseja revisar la mplementación de la fuente de 5 V. colocándola fuera de la
tarjeta para evitar conflictos en la transferencia de información
ó
en los voltajes de
alimentación porexceso de temperatura.
Cabe señalar que para la interfaz de usuario se podría haber usado un número mayor
de displays y mas botones, o inclusive un LCD
y
un teclado controlados por un 8279,
en este proyecto no se realizó de esa manera, pero queda abierto para posteriores
modificaciones, además de que podría servir muy bien para efectos de un sistema de
desarrolloelmicrocontrolador 8031 realizando las modificacionesertinentes
(programas para la PC,programas para el sistema y algún hardware adicional).
El hecho de que solo se use un socket, se debe a la intención de ahorrar espacio y
tiempo ya que todo
lo
que se lograría con 2 sockets es posible realizarlo con uno solo,
aunque para mayor comodidad del usuario sería mejor implementar un segundo socket,
pero esto queda para mejoras posteriores.
PÁGINA37
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 38/128
PROYECTO TERMlh .AL
” G R
-<HADOR
DE
EPROMS A U T ~ N O M O
MANUAL DE USUARIO.
lnterfaz con el usuario
En este bloque se localizan los push bottons
1
y 2, así corno el display y los leds, de
acuerdo al circuito de la figura 5:
El led 1 se ha colocado en consideración a que existiera ¡a conexión al puerto serial de
una PC (Computadora Personal). para indicar en cual de los dos modos se está
operando; modo local: CopiadeEPROM a EPROM sin necesidad de una PC, Modo
Remoto: Copia deun archivo en código maquina en
una
PC a EPROM vía el puerto
serial de la PC.
Los otros dos leds Contrapuestos indicarán al usuario
ei
momento en que se están
aplicando
los
voltajes necesarios a la EPROM para evrtarque está sea removida en
ese momento, el led rojo indicara que se esta leyendo
o
escribiendo a la EPROM y el
led verde indicara el momento en el que se puede quitar G poner la EPROM..
El PB2 (Push Botton 2) y el P BI servirán como teclado para que el usuario realice la
selección del ipo de EPROM, asícomo el proceso de programación. El PB2 servirá
como selector en l os menús y submenús yel PBI corno unaseñalpara aceptar la
opción elegida por PB2 (ENTER).
El display indicará en cada momento al usuario las diferentes etapas que conforman el
proceso de grabar EPROMs. desde seleccionar el modode trabajo (Dependiente o
Independiente). Si se esta en modo independiente, selecclonar el tipo de EPROM con
la quese vaa trabajar, y
e l
estado en el queseencuentre elproceso de copia.
(Selección, lectura, programación, verificación, errores, etc ) .
FUNCIONAMIENTO:
Enbase a la explicación de los bloques principales, a continuación sebosqueja el
funcionamiento:
AI encender el grabador enviara u n mensaje de inicio (“HOLA”)l usuario y pondrá en
el display un signo de interrogación ( :). Esperara que
se
presione PB2, y estará en
modo NDEPENDIENTE (despliega
“I”). AI
presionar nuevamente PB2 se ira a modo
DEPENDIENTE (despliega “d”).
Estará oscilando en ese menú mientras no se presione P B I . Si se desea trabajar en
modo NDEPENDIENTE se debe
presionar P B I
Cuando este la
“I”
en el display de 7
segmentos, en ese momento se entrará al menú del modo INDEPENDIENTE. Si lo que
se desea
es
trabajar en modo
DEPENDIENTE, se
tendra clue presionar P BI cuando
la
“d”
este en eldisplay y se entrara almenú del modoDEPENDIENTE. El proceso
anterior
se
describe en el diagrama de flujo 1 que muestra además las acciones que se
realizan vía software.
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 39/128
PROYECTO TERMI NAL
CK
~ jDOR DE
EPROMS
A U T ~ N O M O
El menú del modo INDEPENDIENTE se describe a continuación:
“G” - - -a Indica grabar de EPROM a EPROM.
“C”
---->
Indica compar-ar el ccntenido de la EPROh‘ con el buffer del grabador.
“c” ----> Es una señal generalizada que indicara sb/tr al menú anterior en
todos los menus y submenús.
Para realizar cualquiera de las acciones anteriores se debe de seleccionar con el
PB2
y después arrancar el proceso con
el
PBI . Este proceso
lo
observamos en el diagrama
de flujo 2.
Cada una de las opciones del modo INDEPENDIENTE nos lleva a una rutina. La rutina
para GRABAR se muestra en e l diagrama de flujo 4.
A continuación de detalla el proceso de GRABAR.
AI iniciar el proceso de programación. e l usuario deberá establecer el tipo de EPROM
con la que va a trabajar, esto se realiza en base a una tabla de equivalencia la cual se
selecciona con el PB2, esta tabla inicia con el tipo
O, y
va aumentando hasta agotarla
y
vuelve a iniciar en forma cíclica,
la
tabla es la siguiente:
# selección
O
1
2
3
4
.~
EPROM
#
- lección~
pp
2716
7
1 V732A
65 V732
5
5 V
12.5-
764A
81 v764
Después de elegir el tipo de EPROM. se presiona el Pi; ~ para iniciar el proceso, en
este punto se pedirá que se cargue ¡a EPROM fuente rvediante la aparición de una
señal en el display (“F”); a continuación se vuelve a presionar el P BI y el grabador
leerá datos de la EPROM fuente, segiln el tamaño de la EPROM, durante este proceso
estará encendido el led rojo.
Una vez llenoel buffer, aparecerá otra señal en el dlsiJlay “d”) indicandoque se
cargue la EPROM destino existiendo la posibilidad tic, elegir la opciónde salir
presionando PB2 para elegir
“c ”
y después PB1 para salic Si se elige “d” y ya se cargo
la EPROM destino
se
presiona nuevamente el PBI, el grdbador procederá a cargarla
con la información del buffer. mientras vuelve a encender
el
led rojo.
Si existiera un error, el display mostrara alternadamente urla
“H” y un número 1 el cual
indicara que existe un error.
se
deberá presionar el PBI para reiniciar el proceso.
Si no existió ningún error, el grabador checará s i la EPHOM ha sido copiada en su
totalidad (solo para EPROMs 27512 que son de64V.t1), ysies así el grabador
regresara al iniciodel proceso mostrando el tipo de E?ROM seleccionado, de lo
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 40/128
PROYECTO
TERMIN
AL
.~
C H \ I3.4DOR DE EPROMsUTóNOMO
contrario se pediráal usuario que inserte la EPROM /Lente nuevamente y todo el
proceso anterior se repetirá hasta copiar completamente
z i
contenido de la EPROM.
El hecho de que
solo
se use un socket, se debe a a ntención de ahorrar espacio y
tiempo ya que todo lo que
se
lograría con 2 sockets es po-ible realizarlo con uno
solo,
aunque para mayor comodidad del usuario seria mejor imprementar
un
segundo socket,
pero esto queda para mejoras posteriores.
Si se eligióenel menú principal la opción derabajar en modo dependiente, se
mostrara una “E” que indica “E”spera L:n caracter del puer?,. serial. En este momento se
deberá correr el programa
“ITFC.EXE”
para inrtefazar la
1):’
con el grabador.
Este programa muestra u n menú con las opciones de:
ARCHIVO: Abrir
*
Guardar como
Cargar al buffer
*
EPROM: Programar
Verificar copia
Cargar a buffer
Imprimir
BUFFER: Editar
*
Imprimir
AYUDA Acerca de
Manual
La opciónAbrir, del menú
ARCHIVO
abre un archivo c o : ~nformación en HEX, y lo
alista para Cargarlo al buffer del grabador.
La opción Editar del menú BUFFER carga a la
RAM
de a
P C
80 bytes de código HEX
a partir de una dirección especificada por el usuario y los despliega en la pantalla.
Las opciones marcadas con * son las que están impl’mentadas enel programa
ITFC.PAS.
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 41/128
PROYECTOERMIN.L\L
G L
, ADOR DE EPROMS AUTÓNOMO
~
BIBLIOGRAFíA.
Intel. MICROCONTROLLER HANDBOOK. Familia ?JICS-51,
Capítulo 7.- ArchitectureMCS-51
Capitulo 8.- MCS-51 Programmer's Guide anu Instruction Set.
Capitulo
9.-
Data Sheets.
Capitulo 10.- MCS-51 Aplication Notes.
IntelEMORY.
Capitulo 3.- Dinamic and Static
RAMS
(Rancmn Access Memories)
51256 (pag. 3-80), 5164 (pag. 3-37).
Capitulo 4.- EPROMs (Erasable Programmable Read Only Memories)
2716 (pag. 4-I) , 2732 (pag. 4-5j. 2764 (pag. 4.18),
27128 (pag. 4-42), 27256 (pag 463), 27512 (pag. -111)
Algoritmo de programación QulS--Pulse (pag. 4-397)
Intel. DISPOSITIVOS PERIFÉRICOS.
PPI (Programmable Peripherical Interface)
t ; L d ; 5 .
Pags 3-100
a
3-119.
SGS
DATABOOK, LOW POWER SCHOTTKY
T i l . C s
C.I.
:
74373, 74245, 74138, 7400, 7404, 7408 7407. 74LS151
William G. Houghton MASTERING DIGITAL DEVICE CONTROL.
Capitulo 1 - The Intel 8051 Family.
Capitulo 2.- External Program Memory Expansion
Capitulo 3.- External Data Memory Expansio::
Capitulo 4.- Expanding 110
Capitulo 8.- Adding An RS-232 Port
0 Motorola. SEMICONDUCTOR TECHNICAL DATA.
MUA78S40 pag. 3-330
LM317 pag.-21
LM337 pag. 3-43
Intronics,nc. INTRODUCING TO EPROM PROGRHMER.
Pag. 1 -
11.
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 42/128
PROYECTOERMINAL GI
A.
%ADOR DEPROMS AUTóNOMO
-
ANEXO
JUSTIFICACI~N
Y
HOJAS
TÉCNICAS
DE
CIRCUITOS INTEGRADOS
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 43/128
PROYECTO
TERMINAL
c ; ,
I ~ D O R
E
EPROMS
AUT~NOMO
803 1
:
0
microcontrolador de 8 bits.
0
4 puertos de
8
bits cada uno.
0
Memoria
RAM
nterna de
128
x
8
bits.
0 2 timers de 16 bits.
0 Interrupciones.
0
Tecnología HMOS.
El
uso de este chip se basa
en
la existencia
y
pre:
o
que de el se obtuvo en
el
mercado. así omo
de
contar con laserminale..; necesariaspara manejar
informaciónde
8
bits, y direcciones de 16 bits.
iLle
on características del
grabador.
74245:
0
Buffer bidireccional octal de tres estados.
0
Terminal para habilitar salidas.
0
Control para transmisión
y
recepción.
0
Canal bidireccional de
8
bits.
0 Estado de alta mpedancia.
Este circuito, debido a sus 8 bits
y
a sus tres estaao, permite el intercambio de
información, en este caso del microcontrolador con
¡
resto del grabador.
74373:
0 Latch octal con salida en tercer estado.
0
Control de entradas al latch.
0
Control de salidas del atch.
0
Canal de 8 bits para datos de entrada
0 Canal de 8 bits para datos de salida (en tercer cs4.3do).
Para este circuito se toma en cuenta su capacidat1 .jara el manejo de
8
bits
y
su
estado de alta impedancia.
74138:
0
Decoficicador
y
demultiplexor de tres
a
ocho.
0
Tres entradas de control para direcciones.
0
Tres entradas de habilitación
0
Ocho salidas posibles.
El
uso
de este circuito se basaen las necesidades de poder controlar hasta
ocho dispositivos con
so lo
tres líneas para habilitarlos.
8255:
0 Interface periférica pfogramable.
0
3 buses de
8
bits.
0
Control de lectura.
0 Control de Escritura.
0
Control de selección
0
Buses con estado de alta impedancia
0
Línea de reset.
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 44/128
PROYECTOERMINAL GI? 4 -3~ D O R E EPROMS A U T ~ N O M O
O
2 líneas de selección de bus.
Este circuito integrado nos permite realizar a commicación entre la parte que
maneja el usuario, y el socket del grabador con el mcrocontrolador.
2764:
0 Capacidad para 8Kb x 8bits
O CHMOS compatible con microprocesadores y microcontroladores.
O
Latch de direcciones integrados.
O
Tamaño universal de 28 pines con dos líneas
de
control.
0 Bajo consumo de potencia (1
O0
microA máximo;
0 Características de nmunidad al ruido.
0
Alta velocidad de respuesta.
Esta memoria tipo EPROM tiene las características necesarias para adaptarla a
nuestro sistema y almacenara el programa prlncipal (BIOS) del sistema
grabador..
6264:
O Capacidad para 8Kb x 8bits
0 Operación estática.
O Tiempos iguales de acceso para lectura
y
escritura.
O
5 volts de alimentación.
0 Compatiblecon TTL.
O Datos comunes de entrada
y
salida.
Esta memoria tipo RAM iene la usamos únicamente con propósitos de desarrollo del
sistema, es decir, sirve comoalmacén temporal del programa principalpara realizar
pruebas. ya terminado el sistema no será necesario
su
uso.
62256:
0 Capacidad para 32Kb
x
8bits
0 Operación estática.
0 Tiempos iguales de acceso para lectura y escritura.
O 5
volts de alimentación.
0
Compatiblecon
TTL.
0 Datos comunes de entrada y salida.
Esta memoria tipo
RAM
iene la finalidad de servir como h: fe r del sistema grabador,
es
decir, será donde se almacenen los datos del programa 2 L;:abarse en la EPROM.
LM337:
0
Corriente de salida mayor a
I
.5
A.
0
Salida ajustable entre
-1.2V -37V.
0
Protección térmica interna.
Corriente constante con la temperatura.
0
Operación flotante para aplicaciones de alto
v o ~ a : e .
Este regulador de voltaje lo usamos para proporcionar a
¡ ( , S
transistores que controlan
los
voltajes un voltaje de -1.4V.
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 45/128
PROYECTO
TERMLNAL
G R 3
~ D O R
E
EPROMS
A U T ~ N O M O
LM317:
O
Corriente de salida mayor a
1.5 A.
O Salida ajustable entre -1.2V y
-37V.
O
Protección térmica interna.
O
Corriente constante con la temperatura.
O
Operación flotante para aplicaciones de alto vol:a,e.
Este eguladorde voltaje lo usamos para proporcionar a
los
pinesdelsocket
los
voltajes de programaclón adecuados controlados por los transistores.
MUA78S40:
O Corriente de salida de 1.5 A sin transistor de salida.
0 Salida ajustable entre 1.5V y 40V.
O Línea de 80dB y protección de carga.
o Soporta desde 2.5V hasta
40V
de entrada.
0 Altaganancia.
Este cor;vertidor de DC a
DC
lo
usamos para generar
los
30
volts que necesitan en la
entrada
de
los reguladores
LM317.
Además de los circuttos integrados mencionados anteriormente, se utilizaran algunas
compuertas lógicas tales como inversores, NAND, OR. etc. cuya elección dependerá
del uso inmediato q u e se proyecte. así como algunos otros componentes de acuerdo a
la hoja
de
especificaciones para el buen funcionamiento
ct
¡os circuitos.
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 46/128
MCS@-51
8-BIT CONTROL-ORIENTED MICROCOMPUTERS
8031 18051
8031 AH/8051 AH
8032AH/8052AH
8751 HI8751 H-121875188
m Hlgh Pertormance
HMOS
Procesa
m Boolean Processor
m Internal TlmerdEvent Counters
m Blt-Addressable
RAM
m 2-Level Interrupt Priorlty Structure
Programmable Full DuplexSerlal Channel
m
32
I/O
Llnes
(Four &Bit Ports)
m
111 Instructions
(64
Slngle-Cycle)
m 64K Program Memory Space
m
64K Data emory Space
m Security
Feature Protects EPROM Parts Against
Software
Plmcy
The MCSe-51 products are optimized for control applications. Byte-processing nd numerical operations on
small data structures are facilitated by a variety of fast addressingmodes for accessing the internal RAM. The
instruction set provides a convenient menu of bit arithmetic nstructions, ncluding multiply and divide in
stnrctions. Extensive on-chip support is provided for one-bit variables
as
a separate data type, allowing direct
bit manipulation and testing in control and logic systems that require Boolean processing.
D . V h
8052AH
8051
AH
8051
8032AH
8031
AH
8031
8751
H
8751H-12
8751H-88
I n t m d
Momory
Program
D.tr
8K x B R O M
4K
x
8 R O M
256 x
8RAM
128 x 8
RAMK
x 8
ROM
128
x
8
RAM
none 256 x
8RAM
none
128
x 8 RAM
none
128 x 8
RAM
4K x 8
EPROM 128
x 8
RAM
4K x 8 EPROM
128 x
8 RAM
4K
x
8
EPROM
128
x 8
RAM
Timers/
Evmt
Counters
3 x 16-Bit
2
x
16-Bit
2 x 16-Bit
3 x
16-Bit
2
X
16-Bit
2 x
16-Bit
2 X
16-Bit
2
x
16-Bit
2
x
16-Bit
Interrupts
6
5
5
6
5
5
5
5
5
The
8751H is
an
EPROM version of the 8051AH; hat s, he onchip Program Memory
can
be electrically
programmed.and can
be
erased by exposure to ultraviolet light.
It
is fully compatible with its predecessor, the
8751-8, b u t inoorporates
two new
features: a Program Memory Security bit that can
be
used to protect the
EPROM against unauthorized e a d d , and a programmable baud ate modification bit
(SMOD). SMOD
is not
present in the 8751H-12 or the 8751H-88.he 8751
H-88
also only operates up to 8 MHz.
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 47/128
803118051 8031AH18051AH
8032AHl8052AH 8751I8751-1218751 H-88
PRELC%NlNA,RY
Figure 1. MCS*-51 Block Diagram
PIN
DESCRIPTIONS
vcc
Supply voltage.
vss
Port
O
also receives the
code
bytes during program-
ming of the EPROM parts, and outputs he code bytes
during programverification
of
the ROM
and
EPROM
parts. External pullups are required during program
verification.
Circuit ground.
Port 1
Port o
Port
O
s an 8-bitopen drain bidirectional I/O port. As
an
output port
each
pin can sink
8
LS
TTL inputs.
Port
O
pins that have 1s written to them float, and in
that state can be used as high- impedance nputs.
Port O is also the multiplexed low-order address and
data bus during accesses o external Program and
Data Memory.
In
this application it usesstrong inter-
sink
8 LS
TTL inputs.
nal pullups when emitting Is, and can
source
and
Port 1
is
an &bit bidirectional
110 port
with internal
pullups.
The
Port
1
output buffers can sinkhource4
LS TTL inputs. Port
1
pins that have 1s written to
them are pulled high
by
the
internal pullups, and in
that state can be used as inputs. As inputs, Port 1
pins that are externally being pulled low will source
current
(IIL,
on the data sheet)
because
of the internal
pullups.
Port
1
also receives he lowsrder address bytes dur-
ing
programming of the EPROM parts and during
program verification of the ROM and EPROM parts.
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 48/128
8031/8051 8031 AW 8051AH
8032AH18052AH
e 8751
HI8751-1218751-88
P,RELDR,NEFlARV
s2'w32
NLV
T2EX P1.l m.0
ADO
Pln
Pad
Flgure
2.
MCSX-51 Connections
I
In he 8032AH and 8052AH, Port 1 pins P1.0 and
PI 1 also
serve
the T2 and T2EX functions, respec-
tively.
Port 2
Port 2 is an &bit bidirectional
110
port with internal
pullups. The Port
2
output buffers can sinWsource 4
LS TTL nputs. Port 2 pins hat have 1s written to
them are pulled high
by
the internal pullups, and in
that stale can be
used as
inputs. As inputs, Port 2
pins that are externally being
pulled
low will source
current (IIL,on the data sheet) because of the internal
pullups.
Port 2 emits the high-order address byte during
fetches from external Program Memory and during
accesses o external Data Memory hat use 16-bit
addresses
(MOVX
@DPTR). In thisapplication it
uses strong internal pullups
when
emitting 1s. During
accesses to external Dala Memory thatuse &bit ad-
dresses (MOVX @Ri), Port 2 emits the contents
o f
the P2 Special Function Register.
Port 2
also
receives thehigh-order address bits dur-
ing programming
of
the EPROM
parts
and during
program verification
of the ROM
and EPROM parts.
Port 3
Port 3 is an 8-bit bidirectional I/O port with internal
pullups. The Port 3 output buffers can sinWsource 4
LS
TTL nputs. Port 3 pins hat have 1s written o
them are pulled
hgh
by the internal pullups. and in
that state can be
used
as inputs.
As
nputs, Port 3
pins that are externally being pul led low will source
current
(IIL,
on thedata sheet) because
of
he pullups.
Port
3
also serves the functions of various special
features of the MCS-51 Family,
as
listed below:
Port Pln
P3.0
P3.1
P3.2
P3.3
P3.4
P3.5
P3.6
P3.7
A R m l h FUnct ion
RXD (serial input port)
TXD (serial output port)
¡hi73
(external interrupt
O
(external interrupt 1)
TO (TimerO external input)
T1 (Timer 1 external input)
(external data memory write
strobe)
8 6 (external data memory read
strobe)
J
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 49/128
8255A/82558-5
PROGRAMMABLE PERIPHERAL INTERFACE
m MCS-85TM Compatible 8255A-5
24 Programmable I/o Pins
m Completely TTL Compatible
m Fully Compatible w i t h Intel
Microprocessor Families
m Improved Timing Characteristlcs
m
Direct Bit Set/Reset Capability Eadng
Control Appiicatlon Interface
m Reduces System Package Count
m Improved DC Driving Capabili ty
m Available In EXPRESS
-Standard Temperature Range
-Extended Temperature Range
m
40
Pin
DIP
Package or 44 Lead PLCC
(See Intel Packagmg: Order Number 231369)
The Intel
8255A
is a general purpose programmable 110devlce designed or use with ntel microprocessors.
t
has 24
I 1 0
plns whlch may be lndivldually programmed in 2 groups of 112 and used in
3
major modes
operatlon. In the first mode (MODE O), each group of
12 I 1 0
pins may be programmed in Sets
of
to be inpa
or output.
In
MODE
I ,
he second mode, each group may be programmed
to
have
8
lines
of
nput or output.
1
the remarnlng 4 pins, 3 are used for handshaking and interrupt control signals. The third mode of operation
(MODE 2) IS a bidirectional bus mode whlch uses 8 lines for a bidirectlonal bus, and 5 lines, borrowing one
from the other group, f o r handshaking.
1
231308-2
Figure 2. Pin
Configuration
3-100
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 50/128
8255A
FUNCTIONAL DESCRIPTION
Ga"a l
T ~ Q255A is a programmable peripheral nterface
(?PI) device designed for
use
In Intel mtcrocomputer
systems.
Its
function IS that of a general purpose /O
component to interface peripheral equipment to the
mcrocomputer system bus.
The
functional configu-
ration of
the 8255A is programmed by
t he
system
software so that normally no external logic is neces-
sary to interface peripheral devices or structures.
Data Bu s Buffer
This 3-state bidirectional &bit buffer is used
to
inter-
laCG the 8255A to thesystem data bus.Data
is
ransmitted or received by the buffer upon execution
of input or output nstructions by he CPU. Control
words and status information arealso transferred
through the data bus buffer.
AeadIWrite and Contro l Logic
The function
of
this block is to manageall of the
internal and external ransfers of both Data and
Control or Status words. It accepts inputs from
the
CPU Address and Control busses and in turn, issues
commands to both of the Control Groups.
S )
Chlp Select.
A
"low" on this input pin enables he
communication between the 8255A and the CPU.
m
Read. A "low" on this nput pin enables the 8255A
to
send the data or status nformation to the CPU on
the data bus. In essence, it allows the CPU to "read
from" the 8255A.
( m
Wrlte. A "low" on this input pin enables
the
CPU
to
write data or control words into
the
8255A.
(A0and A I
Port Select O and
Port
Select
1.
These input sig-
nals, in conjunction with the RD and WR inputs, con-
trol he selection of one of the three ports or the
control word registers. They arenormally connected
to the east stgnificant bits of the address bus 4
and A,).
I
I
1
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 51/128
8255A BASIC OPERATION
IiJXTk
I
WR
Input
Operation
Output Operatlon
I
DlsableFunctlon
X , A X X
1
Data Bus
-+
3-State
1
Data Bus ”* 3-State
Illegal Condition
O
1
i
(RESET)
Reset.
A “high” on this Input clears the control reg-
lster and all ports (A, B, C) are set to the input mode.
Group
A
and GroupB Controls
The functronalconfiguration
of
each port is pro-
grammed by the systems software. In essence, the
CPU “outputs” a control word to the8255A. The
control word contalns Information such as “mode”,
“bit
set“ , “bit reset“, etc., that Initializes he func-
tional configuration of the 8255A.
3 102
Each of the Control blocks (Group A and
G r o u p q
accepts “commands” from the ReadlWrite
Cow
Logic, eceives “control words” from the in te ny
data bus and issues the propercommands to itsm
sociated ports.
Control Group A-Port A and
Port C
upper (C7-CI)
Control Group B-Port 8 and Port C lower (C3-Q
The Control Word Register can Only be written ¡m.
No
Read operation of the Control Word Register
b
allowed.
Ports A,
8,
and
C
Tho 8255A contains three &bit ports (A,
8,
nd c]
All can be configured in a wide variety of f u n c t i a
characteristics by tho system software but each ha
its
own special eatures or “personality”
to
further
enhance the power and flexibility of the 8255A.
Port A. One &bit data output latch/buffer and om
&bit data input latch.
Port
B. One &bit data inputloutput latch/buffor and
one &bit data Input buffer.
Port C .
One &bit data output Iatchlbuffer and one
&bit data nput buffer (no latch for input). This
port
can be divided into two 4-bit ports under the
rnodr
control. Each 4-brt port contains a 4-bit latch and tt
can be used for the control signal outputs and status
signal Inputs In conjunction wrth ports A and B.
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 52/128
".d
I
I
I
2313OE-4
Figure 4.6225A Block Dlagram Showlng Group A and Group B Cont ro l Funct lons
Pln
Conf lgurat lon
.*a
I
Pin Names
D7-DO
Data Bus (Bi-Directional)
RESET Reset
Input
cs
WR
Read
Input
Chip
Select
Write Input
AO. Al
Port Address
PA7-PA0
Port B BIT)
B7-PBO
Port A
(BIT)
PC7
-
PC0
Port
c (BIT)
. vcc
+
5
Volts
GND
o Volts
8255A
OPERATIONAL
DESCRIPTION
Mode Selection
There are lhree bas i c modes o f
operation that
can
b e selected by
the sys tem
software:
3-103
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 53/128
Mode &Basic Input/Output
Modt "Strobed Input/Output
Mode
2-
31-DirectionalBus
When the reset input goes "hlgh" all ports will be set
to the Input mode ((.e., all
24
lines will be In the high
impedancestate).After he eset IS removed he
8255A can remam In the nput mode wlth no addi-
tional nl ialization required. During he execution of
the system program any
of
lhe other modes may be
selected using a single output nstruction. This al-
lows a srngle
8255A
to service a varlety of perlpheral
devices with a simple software maintenance routine.
The modes for
Port
A and
PortB
can be separately
defined, while
PortC IS
divided nto
two
portlons as
required by the
Port A
and
Port B
definitlons. All of
theoutput egisters, ncluding hestatus flip-flops,
will be reset whenever the mode
IS
changed. Modes
may be combined so that thelr functional definition
can
be
"tailored"
to
almost any
I 1 0
structure.
For
instance; Group
B
can be programmed in Mode O to
monitor simple swltch closmgs
or
dlsplay computa-
tional esults, Group
A
could be programmed in
Mode
1 to
monitor a keyboard or tam reader on an
interrupt-drlven basis.
1
1
237300-6
Figure
5.
Basic Mode Definitions and
us
Interface
r
5
L
r-
L
Flgure 6. Mode DeflnltlonFormat
The mode deftnitions and possible mode c o m
tions may seem confusmg at
first
but after
a cursay
review of the complete device operation a
simpk,
loglcal I/O approach will surface. The design of
thr
8255A
has aken into account things such
as dli.
clent PC board layout, csntrol signal definition vs #:
layout and complete functional flexibility to
supper(
almost any peripheral device
with
no external
logic.
Suchdeslgn represents themaximumuse
of
avallable pins.
Single Bi t Set/Reset
Feature
Any of the elght bits of Port C canbe Set or Reset
uslng a smgleOUTput instruction. T h ~ seature re-
duces software requlrements
in
Control-based
apple
catlons.
3-104
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 54/128
m- r c r ~ v r
B l T S E T I R L S f l
FLAG
231308-8
Figure
7.
Bi t
Set/Reset Format
When
Port C s
being used a s status/control
for
Port
A or B.
these bitscan be set
or
reset by ustng the Bit
Set/Resetoperation lust as
f
they were data output
ports.
interrupt Control Functions
When the
8255A is
programmed
to
operate In mode
1
or mode 2, control signals are providedhat can be
used as interrupt request inputs to the
CPU.
The In-
terrupt request signals, generated
from
port
C,
an
be lnhlblted or enabled by setting or resetting the
assoctated INTE flip-flop, using theblt et/reset
lunctton
of port
C.
This function allows the Programmer
to
disallow or
allow a specific Odevice to interrupt the
CPU
with-
out affectrng any other devtce tn the interrupt struc-
ture.
INTE flip-flop definition:
(BIT-SET)-INTE
is
set-Interrupt enable
(BIT-RESET)-INTE i s RESET-Interrupt disable
NOTE:
All
Mask flip-flops are automatically esetduring
mode selection and device
Reset.
Operating Modes
MODE
O (Eas lc InpuVOutput). This functional con-
figuration provides simple nput and output opera-
tions for each of the three ports.
No
handshaking
is
required, data
is
simply written to or read from a
specifled port.
Mode O Basic Functional Definitions:
Two &bit ports and
two
4-bit ports.
Any port can be input
or
output.
Outputs are latched.
Inputs are not latched.
16
different lnput/Output configurations
are
pos-
sible
in
this Mode.
231308-9
3-1
05
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 55/128
MODE O PORT DEFINITION
A
8
Group
A
j
Group
B
I -
1
I o
OUTPUT
NPUT
OUTPUT OUTPUT
INPUT
UTPUT
UTPUT
j
OUTPUT
OUTPUT
UTPUTUTPUT
OUTPUT
j o o 1 1
OUTPUT OUTPUT
3 ’
INPUT INPUT
O
1
O O
OUTPUT INPUT
4
I OUTPUT
I
OUTPUT 1
O
1
O
1 ~
OUTPUT INPUT
~ 5
OUTPUT INPUT
1
I o 1 1 O
OUTPUT
I
INPUT
6
INPUT
”c””
,
OUTPUT
-
1 OUTPUT INPUT 7 INPUT INPUT
INPUT OUTPUT
8
OUTPUT
I
OUTPUT
\ 1 I
O O 1
1
INPUT OUTPUT 9 OUTPUT INPUT
1
1
O
~
1
O
, INPUT OUTPUT 10 INPUT I OUTPUT
1
1
1
O
O
~
INPUT
INPUT
12
OUTPUT
OUTPUT
¡
1
1
O
1 INPUT iNPUT
13
OUTPUT INPUT
¡
1 1 1 O
INPUT
lNPUT
¡ 14
INPUT OUTPUT
i l / l j l / 1
INPUT
INPUT
INPUT 1 5 INPUT
3- 1 O 6
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 56/128
IAODE
CONFIGURATIONS
CONT nOL WORD
CO
231308-13
0 7% -
231308-14
3-1
07
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 57/128
,'*
- A,-P*,
231308-17
231308-19
. "
1 0 0 0 1 0 1 1
D,-Do
1 0 0 1 0 0 1 0
I
O )
Do
O
Do
--
3-1O9
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 58/128
31300-23
D,.Do---
W N T R O L
WORD
815
D1 O0
t
~ ~~~~ ~~~
Operating Modes
MODE
1
(Strobed
Input/Output). This unctional
configuration provides a means for transferring I10
data to or from a specified port In conjunction with
strobes or “handshakmg” signals. In mode
1 ,
pori
A
and port
B
use he ines on port C
to
generate or
accept these “handshaking”
slgnals.
Mode 1 Basic Functional Definitions:
*
Two Groups (Group A and Group
6
Each group contains one 8-blt data port and one
The %bit data port can bo either nput or output.
The 4-bit port is used for control and status
of
the
4-bit control/data port.
Both inputs and outpu:s are atched.
&bit data port.
Input C o n t r o l Signal Deflnition
data into the input latch.
(Strobe Input). A
“low”
on his input loads
IBF (Input Buff er Full
F/F
A
“high” on this output ndicates that the data has
been oaded nto the nput atch; in essence, an ac-
knowledgement. IBF is set by STB input being low
and is reset by the rising edge of the
RD
nput.
INTR
(Interrupt Request)
A
“high” on this output can be used to interrupt
the
CPU whenan nputdevice is requestingservice.
INTRssetby he is a “one”,
IBF
is a
“one”
and INTE s a “one”. It s reset by he falling edge of
RD.
Thisprocedureallows an inputdevice
lo
re-
quest service from the
CPU
by simply strobing its
data into the port.
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 59/128
¡ n u
5164WL
8K
X 8-BIT
CMO S STATIC
RAM
5164s-10
Unitr
164s-12
-
Address Access Time ( t u )
ns0
5
utput
Enable Access Time
(b~)
ns
20O0
hip Select ccess Time (tACS)
ns
20
O0
m Statlcperatlon m Powerownode
- o
Clock/Retresh Required
m l T L ComDatlble
m Equal Access and Cycle Times
-
lmplifles
System Design
m Slngle + 5V Supply
~
m Common Data nput and Output
m High Reliabili ty 28-Pin
600
Mil PDlP
Package
The 51645 is a 8192-word by &bit
CMOS
static
R A M
fabricated using CMOS Silicon Gate process.
The 51648 is placed
in
a standby or reduced power consumptron mode by asserting either
CS
input (m,,
CS2) false. When in standby mode, the device is deselected andthe outputs are in a high impedance state,
independent of the
m
nput. When device is deselected, standby current
is
reduced to 100 pA (max).
The
device will remain in standby mode until both pins are asserted true again. The device has a data retention
mode that guarantees that date will remain valid at minimum VCC of 2.0V.
Block Dlagram
hiwnory Arroy
*I
2
240570
-
Pin Connectlonr
240570-2
Pln
Namer
ChiD SelectOne
I I
Chip
Select
Two
Write Enable
"cc
Power
GND I Ground
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 60/128
w
5164S/L
Device Operation
earliest transitiion ofm,.igh WE or low CSp. Out
Enable (OE)
S
used for precise control of the out-
=1
Standby
ightandby
Standby
igh
Z
tandby
Powor/O
ode
E
s ,
-
L
ActiveOUTead
L
Active
igh
Z
ead
/ H
ABSOLUTE MAXIMUM
RATINGS
'Not ice: Stresses above th ose l is ted
under 'Mbso-
lute Maximum Ratings maycausepefmanent dam-
Voltage on Any Pin age to the device.his is a stress r a t i h g only a n d
Relativeto Ground (VIN,VOUT)
.
. .
. .
-0 .W to 7v functional operation o f
he
device
s t
these w any
RECOM MEND ED OPERATING CONDITIONS
Voltage referenced to VSS. TA = 0% to 70%
Symbol
Unltr
ax
yp
ln
arameter
VCC 5.0 5.5 I v
.5upply Voltage
V S ~
I
Ground I O I O I o I v l
VIH
v
cc
+
0.3
2.2 -
nput High Voltage
VIL
V
.8
0.3
nput
Low
Voltage
Mom
1
During
transitions, Ihe Inputs may undershoot to - 3.5V for periods less than
20
n<
CAPACITANCE TA =
25°C.
f = 1.0
MHz
-
sVmm
Unltr
ax
lnarameter
CIN1 PF
nput Capacltance
(VIN =
OV)
%UT
PF
utput Capacitance ( V O ~ J T OV)
Nom
This parameter
is
sampled and not 1 0 0 % tested
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 61/128
i n w
51256S/L
32K
X
8-BIT
CMOS
STATIC RAM
~~ ~ ~~ ~~ ~
Address Access Time tm)
120
nsO0
Chip Select Access Time
t A G )
ns
20
O0
Output Enable Access ime ( b ~ )
ns
00
m Static Operatlon m Powerown Mode
- o Clock/Refresh Required
m
TTL
Compatible
D
Equal Acces s and Cycle Tlmes
- impllfles System Deslgn
m
Single + 5V Supply
m
Common Data Input and Output
m High Rellabillty 28-Pin 600 M11 POlP
Package
The 51256s is a 32766-word y &bit CMOS static RAM fabricated using CMOS Silicon Gate process.
When the Chip Select is brought high, the device assumes a standby mode in which the standby current
is
reduced to 100 p A (max). The device has dala etention mode that guarantees that data will remain valid at
minimum Vrr.
of 2.0V.
Functlonal Block
Dlrgram
1024
x
256
DECODER MEMORY
ARRAY
4-4
M
cc
GNO
240572- 1
Pln Connection.
-~
240572-2
Chip Select
m
I Wri e Enable
OutDut Enable
L GND Ground
I
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 62/128
51256S/L
Device
Operation
The 51
2568
has two control inputs: Chlp Selecta)
and Write Enable (m).S 2 he power control pin
used
for
device operation.WE is the data control pin
used to gate data at the I10 pins. Out Enable OE)
s
used for precisecontrol of the outputs.
ABSOLUTE MAXIMUM RATINGS
Voltage on Any Pin
Relative to Ground (VIN, VOUT). . .
.
-0.34
to
7V
Storage Temperature (TSTG) .
. .
.
-
55°C to
+
150°C
Power Dissipation PD) . .
.
. .
. . .
. .
. .
. .
.
.
. . . 1
OW
DC Continuous Output Current
los). . . . . .
. .50
rnA
Table
1.
ModeSelectlon
Truth Table
'Nolice: Stresses above those listed
under Abso-
lute Maximum Ratings may cause pennanent dam-
age to the device. This is
a
stress rating only and
functional operation of the device at these or any
other conditions above thosendkatbd n the opera-
Iional sections of thispecifkation s not mplid. Ex-
posure o absolute maximum ratihg conditions for
extended periods mayaffect device
eldbility
RECOMMENDED OPERATING CONDITIONS
Voltage referenced to VSS. TA = 0°C to 70°C
Parameter
Unlt
ax
yp
ln
ymbol
Supply Voltage
V
1 0
ss
round
V
.5
.0
.5
cc
Input High Voltage
Input Low Voltage
V
cc
+ 0.5
.2
IH
V
.8
0.3
IL
NOTE
VIL
(Min)= -3.0V or 20 ns pulse
CAPACITANCE TA
=
25°C.
f
=
1.0
Hz
symbol Parameter
Min Max Unit
ClNl
NOTE
PF
0
utput Capacitance (VOUT
=
OV)
I
CGUT
PF
nput Capacitance
VIM =
OV)
This parameter IS sampled and not 100% tasted
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 63/128
¡ n u
2716
16K (2K 8)
UV ERASABLE PROM
Fast Acceso Time
-
716-1:
350
ns Max
- 716-2 390 ns Max
-2716: 450 ns Max
m
Single +
5V
Power Supply
m Low Power Disslpatlon
-Activ e Power: 525 mW Max
-Standb y Power: 132 mW Max
m Pin Compatible to Intel “U nlversa l Site”
EPROMs
Simple Programming Requirements
- ingle Location Programmlng
-Progra ms with One 50 ms Pulse
m Inputs and Outputs TTL Compatible
Durlng Read and Program
m
CompletelyStatic
The Intel2716 is a 16.384-bit ultraviolet erasable and electrically programmable read-only memory EPROM).
The 2716 operates from a single
5-vo l t
power supply, has a static standby mode, and features fast single-
address programming. t makes destgning with EPR OMs fast, easy and economical.
The 2716, with
its
single
5-volt
supply and with an access time up to 350 ns,
is
ideal for
use
with
high-
performance +
5V
microprocessors such as Intel’s
8085
and 8086. Selected 2716-5s and 2716-6s are also
available for slower speed applications. The 2716 also has a static standby mode which reduces power
consumption without increasing access time. The maximum active power dissipation is
525
mW while the
maximum standby power dissipation is only 132
mW,
a 75% savings.
The
271
6 uses
a
simple and fastmethbd for programming-a slngle TTL-level pulse. Theres no need for high
voltage pulsing because all programming controls are handled byTL signals. Programming f any
location
at
any tm-ther individually,sequentially or at random IS possible wlth the 2716‘s single-address program-
mmg. Total programming time for all
16,384
bits is only 1O0 seconds.
vcc
-
NO
O r
VPP-
ROGRAM
-
E AND 4
E-”
CE-
- UTPUTUFFERS
Y GATING
CELL MATRIX
DATA
OUTPUTS
‘ - 7
Pln
Names
AO-Alo
Addresses
E
Output Enable
Chip Enable
00 -07
Outputs
-2
210310-1
Figure l
lock
Dlagram
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 64/128
2716
2716
~- ---L
I
210310-2
OTE:
Intel Universal Site
compatible EPROM confqurationsare
shown in
the
blocks
adjacent to the
2716
pins.
- ~ ~ .
Flgun
2. Cordlp Pln Conflgwatlon
EXTENDED TEMPERATURE
(EXPRESS) EPROMs
The
Intel EXPRESSEPROM amily sa
series
of
electrically programmable read nly memorieswhich
have received additional processing to enhance
product characteristics. EXPRESS rocessing is
available or several densities
of
EPROM, allowing
the choiceof appropriate memory
size
to match sys-
tem applications.EXPRESSEPROM products
are
available with 168 f hour, 125'C dynamic burn-in
using Intel's standard bas configuration. This pro-
cess exceeds or meets most ndustry specrfications
of
burn-in. The standard EXPRESS EPROM operat-
ing temperature range is0
to
7VC. Extended op-
erating temperature range
(-
40% to +85%) EX-
PRESS products arevailable.ike allntel
EPROMs, the EXPRESS EPROM familys inspected
to
0.1
K lectrical
AQL.
This may allow the user to
reduce or eliminate incoming inspection testing.
EXPRESS EPROM PROOUCT
FAMILY
PRODUCT
DEFlNlTONS
Typ.(Operatlng TomporahmlBurn-ln
25%
(hr)
O
1
0%
to +
70%
44
4rc
to
+
85'C
168
* e
EXPRES S OPTIONS
2716
Versions
Plckaglng Optlonr
woodVorrknr
Cudip
I
-1 Q
STD
Q,
J
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 65/128
2716
DEVICE OPERATION
The six modes
of
operation of the 271 are listed tn
Table
l.
It should be noted that inputs for all modes
are l TL levels. The power supplies required are a
+ 5V VCC and a Vpp. The Vpp power supply must be
at 25V during the three programmmg modes, and
must be at 5V in the other three modes.
Read Mode
The 2716 has two control functions, both of whtch
must be logically satisfied in order
to
obtaln data at
the outputs. Chip Enable
E)s
the power control
and should be used for device selection. OutputEn-
able
(m)
s
the output control and should be used
to
gate data from the output pins, Independent of
device selection. Assuming that addresses are sta-
ble, address access time (tACC)is equal
to
the delay
from
CE
to output
(tCE).
Data
is
available at the out-
puts ~ -JE after the falling edge
of OE.
assuming that
m
has been low and addresses have been stable
for at least
tACC-tOE.
Standby
Mode
The 2716
has
a standby mode which reduces the
maximumactivepowerdissipationby75’10, rom
525 mW to
132
mW. The 2716
is
placed n he
standby mode by applying a TTL-high signal to the
m
input. When in standby mode, the outputs are in
a high impedance state, independent of the
m
n-
put.
Output OR-Tieing
Because 2716s are usually used in arger memory
arrays, ntel has provided a 2-line control function
that accommodates this use
of
multiplememory
connections.The two-linecontrol unctionallows
for:
a) he lowest possible memory power dissipation,
b) complete assurance that output bus contention
and
w~l lnot occur.
To use these
two
control lines most efficiently,
m
(pin 18) should e decoded and used as the primary
devlce selecting function, while
m
pin
205
should
be made a common connectiono
all
devices in the
array and connected
o
the ine from
he sys-
tem control bus. This assures
that all
deselected
memory devices are
in
their low-power
standby
modes and hat the outputpins are
ctive onlywhen
data
I S
desired from a particular memory device.
Programming
Initially. and after each erasure. all
bits
of the 2716
are in the “1 state. Data
is
introduced
by
Selectively
programming
“O’s”
into the desired
bit locations.
Al-
though only
“0 ‘s”
will be programmed,
both “1’s”
and
“O’s”
can be presented in the
data
word.
The
only way to change a “O” to a
“1 ”
is by ultraviolet
light erasure.
The 271
6 is
In the programmin mode
when
the
Vpp
power supply is at25V and
&is
at VIH. The data
to
be programmed
is
applied
8
bits n parallel to the
data output pins. The levels required
or
the address
and data Inputs are
TTL.
When the address and data are
siable.
a 50 m
active-high, TTL program pulse is applied
to
the
E
input.
A
pulse must be applied
t
each
address
loca-
tion
to
be programmed. You can
program
any
loca-
tion at any t imnither individually,
sequentially,or
at random.The programpulse has
a
maximum width
of 55
ms. The 2716 must notbe
programmedwith
a
DC ignal applied
to
theE nput.
Table
1.
Mode
Sclcctlon
NOTE:
1.
X
can be VIL or VIH.
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 66/128
2716
Programming of multiple 2716s in parallel with the
same data can be easily accomplished due
to
the
simplicity
of
the programming requirements. Like in-
puts of the paralleled 2716s may be connected to-
gether when they are programmed with the same
data.
A
low evel
TTL
pulse applied o he nput
programs the paralleled 2716s.
Program Inhibit
Programming
of
multiple 2716s in parallel with differ-
ent data is also easily accomplished. Exceptor m,
all ike nputs (including m) f the parallel 2716s
may be common.A TTL-level program pulse applied
to a 2716 's input wi EVp p at 25V will program
that
2716. A low-level CE input nhibits the other
2716 from being programmed.
Verify
A verify should be performed on the programmed
bits to eterminehatheywere orrectly ro-
grammed. The verify may be performed with Vpp at
25V. Except during programming and program veri-
fy,
Vpp must be at 5V.
ERASURE CHARACTERISTICS
The erasure characteristics of the 2716 are such
that erasure begins to occur upon exposure to light
with wavelengthsshorterthanaproximately 4000
Angstroms
(A).
It should be noted that sunlight and
certain types
f
fluorescent lamps have wavelengths
in the 3000-4000A range. Data show hat constant
exposure to oom-level luorescent ightingcould
erase the ypical 2716 inapproximately
3
years,
while it would take approximately 1 week to cause
erasure when exposed to direct sunlight. f the 2716
is to be exposed o these types
of
lighting conditions
for extended periodsof time. opaque labels should
be placed over the window to prevent unintentional
erasure.
The recommended erasure procedure for the 2716
is
exposure to shortwave ultraviolet light whichas a
wavelength of 2537 Angstroms (A). The integrated
dose (¡.e., UV intensity
X
exposure time) for
erasure
should be a minimum of 15 Ws/cm? The erasure
time with this dosage is approximately 15 to 20 min-
utes using an ltraviolet lampwith
a
12000 pW /c d
power rating. The 2716 should be placed within 1
inch of the lamp tubes during erasure.
ADDRESS =FIRST
LOCATION
Vpp
=
25.0V
.)
f ROGRAM ONE 50mr PULSE >
1
PASSED
210310-3
Flgure3. Standard Programmlng Flowchart
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 67/128
¡ n u
2732A
32K (4K
x 8)
UV-ERASABLEPROMS
M 200a2732A-2)Maxlmum Access m Low Currentequlrement
M
Compatlble with High-sp eed
Wme
. HMOS*-ETechnology - 00 mActlvb
- 5 mA Standby
Mlcrocontrollera and Mlcroprocesaorr m IntellgentdentlflerTu Mode
. Zero WAITtateAutomaticrogrammlng Operrtlon
m
Two
Llne Control
m 10% VCC Toloranc e Avallablb
m Indu8try Standard Plnout
.
EOEC
Approv ed 24 Pln Ceramlc Package
S . .
Pacluglog
Spot.0rd.r
c
231 6 0
The Intel 2732A is a 5V-only, 32,768-bit ultraviolet erasable (cerdlp) Electrically Programmable Read-only
Memory
(EPROM). The standard 2732A access time
is 250
ns with speed selection (2732A-2) available at
200
ne. The access time is compatible with high performance microprocessors such as the 8 MHz iAPX 186. In
these systems,the 2732A allows the microprocessor to operate without the addition of WAIT states.
An important 2732A feature is Output Enable
(m)
hich is separate from the ChipEnable
(m)
ontrol.
The
m ontrol eliminates bus contention in microprocessor systems.
The
is used by the 2732A to place it
in
a
standby mode
(m
VI,) which reduces power consumption without increasing access time.
The
standby
mode reduces the current requirement by 65%; the maximum active current is reduced from 100 mA to a
standby current of 35
mA.
HMOS is a patented processof Intel Corporation.
PlnN8m.r
-
n256
7C2M
Flgun 1.
Block
Dlagram
280081
-1
2732A
4
-- ---o
290081-2
-
7 1 W
X121
Intel Universal
Site
compatible EPROM configurations are
shown
in the blocks adjacent to the 2732A pins.
Figure 2. Ccrdip PinConfiguration
J
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 68/128
w
2732A
EXTENDED TEMPERATURE
(EXPRESS) EPROMs
The Intel EXPRESSEPROM amily is a series of
electrically programmable read only memorieswhich
have received additional processing to enhance
product characteristics. EXPRESS processings
available for several densities of EPROM, allowing
the choice of appropriate memory size
o
match sys-
temapplications.EXPRESSEPROM products are
available with 1 6 8 *€lour, 125'C dynamic burn-in
using Intel's standard bias configuration. This pro-
cess exceedsor meets most industry specifications
of
burn-in. The standard EXPRESS EPROM operat-
ing temperature range s
0% to
70%. Extended op-
erating temperature range (-40'C to
+
85%) EX-
PRESS productsre available. Like all Intel
EPROMs. the EXPRESS EPROM familys inspected
to 0.1YO electricalAQL. This may allow the user to
reduce or eliminate incoming nspection testing.
READ O PERATION
D.C. CHARACTERISTICS
Electrical Parameters
of
EXPRESSEPROM prod-
ucts are identical to standard EPROM parameters
except for:
I=,(')
V a ctive
Current (mA)
Current atHigh
I ITemperature(mA)
NOTE
l.
Maximumcurrentvalue iswith outputs00oO7 unloaded.
EXPRES S EPROM PRODU CT FAMILY
PRODUCT
DEFINITONS
Type Operatln Temperature Burn-In
125.C (hr]
(PC to + 70%
- 0%
to
+85'C
168
f8
EXPRES S OPTIONS
2732A Versions
Packaging
Optlona
Spoederalonaerdlp
-
5
W
mE/vpp
=
+5V. R = 1 K n . V m =
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 69/128
w
2732A
every eight devices. The bulk capacitor should be
located near where the power supply is connected
to the array. The purpose of the bulk capacitor is to
overcome the voltage droop aused by the inductive
effects of PC board traces.
r c3
cc S.0V
vpp
=
2
1
ov
I -
ROCRAU ONE 5Oma PULSE
<
q :
,
=
5.ov
l
ASSED
290001 0
lgure
3.
Standard Prognmmlng Flowchart
PROGRAMMING
MODES
CAUT I O N : Exmeding22V onm/Vpp ~ l H l p . n r -
nent rng.tm
*wco.
Initially, and after each erasure (cerdip EPROMs). all
bits of the EPROMare in the 1 state. Data is ntro-
duced by selectively programming Os into the bit
locations. Although only "Os" will be programmed,
both
1S"
and Os can be present inthe data word.
The only way to change a O to a
1
in cerdip
EPROMs is by ultraviolet light erasure.
The device is in the programming mode when the
b E / V p p input is at 21V. It is required that a 0.1 pF
capacitor
be
placed across
i x / V p p
and ground to
suppress purious oltage transients whichmay
damage the device. The data
to
be programmed is
applied
8
bits in parallel to the data output pins. The
TTL.
levels required for the address and data inputs are
When the address and data are stable, a
20
ms
(50 ms typical) active low,
TTL
program pulse s ap-
plied to the input.
A
program pulse must be
a p -
plied at each address location to be programmed
(see
Figure 3). Any location can be programmed at
any time-either individually, sequentially, or at ran-
dom. The program pulse as amaximum width
of
55
ms. The
EPROM
must not be programmed with a
DC ignal applied to the input.
Programming of multiple
2732As
in parallel with the
same data can be easily accomplished due to the
simplicity
of
the programming requirements. Like in-
puts of the paralleled
2732As
may be connected to-
gether when hey are programmed with the same
data. A low level
TTL
pulse applied to the input
programs the paralleled 2732As.
Program Inhibit
Programming of multiple EPROMs in parallel with
diierent data
is
easily accomplished by using the
Program Inhibit mode.
A
high
level m
nput
inhibits
the other EPROMs rom being pr rammed. Except
for all like inputs (including $;q/Vpp) of the par-
allel EPROMsmay be common.
A l T L
low level
pulse applied to the input
with
m / V p p at 21V
will program that selected device.
Program Verify
A verify Read) should
be
performed
on
the pro-
grammed bits to determine hat they have been
or
rectly programmed. The verify is performed with
m / V p p andm t VIL. Data should be verified toV
after the falling
edge
ofE.
intellgent ldentif ierm Mode
The inteligent Identifier
Mode
allows the reading
out
of a binary code froman EPROM hat will identify its
manufacturer and type.
hi
mode s ntended for
use by programming equipment
f o r
the purpose
of
automatically matching the deviceo be pro-
grammed with its correspondingprogramming algo-
rithm. This mode isunctional in the
25'C
f C am-
bient temperature range that is required when pro-
gramming the device.
To activate this mode, the programming equipment
must force
11.5V
o
1 2 S V
on address ine
A9
of the
EPROM.Two identifier bytes may then be se-
quenced from the device
outputs
by toggling a&
dress line
A0
from VIL to VW.
All
other address lines
must be held at
VIL
during the int&ent Identifier
Mode.
ByteO (A0 = Vl1) representsthe manufacturer code
and byte 1 (A0 = Vln) the device identifier code.
These
two
identifier bytes are given in Table
l
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 70/128
i n w
276419
64Ü (8K x 8)
UV ERASABLE PROMS
m Fast Acce ss Time-HMOS' ¡I E m Inteligent ldentlflerm Mode
m Moisture Resistant Approved .
.
28 Lead Package
m Two-line Control
The Intel 2764A is a
5V
only, 65,536-bit electrically programmable read-only memoryEPROM). The 2764A is
fabricated with Intel's HMOSII-E technology which significantly reduces die size and greatly mproves the
device's performance, power consumption, reliability and producibility.
The
2764A providesaccess times to
180
ns (2764A-1). This is compatible withigh-performancemicroproces-
sors,
such as Intel's
8 MHz
iAPX 186 allowing full speed operation without the addition
of
WAIT states. The
2764A
is
also directly compatible with the 12
MHz
8051 family.
Two-linecontrol andJEDEC-approved.28 pinpackagingare standard features of Intel higherdensity
EPROMs.
This assures easy microprocessor nterfacing and minimum design
efforts
when upgrading,
adding,
or
choosing between non-volatile memory alternatives.
'HMOS is
a patented
process
of
Intel Corporation.
- 80 ns Cerdip D2764A-1
Industry S tandard Pinout . EDEC
(See Packagng Spec, rder +231369)
v c c
-
no-
OAlA
OUfPUTS
0 0 - 0 7
I
Flgure 1.
Block
Dkgram
2 3 0 8 6 4 -
1
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 71/128
w
2764A
NOTE:
Pln Names
7
utDutnable
.
0 0 - 0 7
outputs
Program
N.C.
No
Connect
2764A
230864-2
Intel "Universal Site"-Compatible EPROM pin configurations are shown in the
blocks a d m t
o the 2784A pina.
Flgurr
2.
Cordlp Pln Contlguratlon
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 72/128
w
2764A
EXTENDED TEMPERATURE
(EXPRESS) EPROMs
The ntel EX PR ES S EPRO M family is a series of
electrically programmable read only memories which
have eceived additional processing to enhance
product haracteristics. EXPRESS processing
is
available for several densities
of
EP RO M, allowing
the choice
of
appropriate memory ize
to
match sys-
tem applications. EX PRE SS EP RO M products are
EXPRESS EPROM PRODUCT FAMILY
PRODUCT DEFINITIONS
Typo
Burn-ln
125'C (hr)
perrtlng
Temperrturo
O
None
4VC
to
+
65'C
1 6 6 f6
Tc o + 70%
L - 0% IO +65 'C
166
f6
READ OPERATION
D.C. CHARACTERISTICS
available with 168 k 8 hour, 125'C dynamic burn-in
using ntel's standard bias configuration.
This
pro-
cess exceeds or meets most industry specifications
of burn-in. The standard EX PRE SS EP RO M perat-
ing temperature range is
0%
to 70°C. Extended op-
erating temperature range ( -
40'C
to + 85.C) EX-
PRESS
productsrevailable.ikellntel
EPROMs, the EXP RES S EPR OMamily
is
inspected
o 0.1% electrical AQL.
This
may allow the user
to
reduce or eliminate incoming inspection testing.
EXPRESS OPTIONS
2764A VERSIONS
Prckrgln g Optlono
S p e d Vorrlonr
Cordlp
-20
I
Q.
T.
L
Electrical parametersof EX PR ES S EP RO M roducts are identicalo standard EPR OM parameters except
or:
TD2764A
Symbol
Te8t COnditlOn8 LD2764A
arameter
Min
Max
ISB
=
VlH,
=
VIL0
cc Standby Current (mA)
Ice,(
m
=
E
VIL
O0
cc Active CurrentmA)
VCC Active Current
Vpp
=
VE,
T~,-,,h t
=
85%t High Temperature
(mA)
m m =
VIL
5
N O T E
l.
The maximum current value IS with outputs00o O7 unloaded.
Burn-inmas and Thing
Diagrams
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 73/128
2764A
(-)
1
FAILED
int,ligent ProgrammingTM Algorithm
The nteligent Programming Algorithm. a standard in
the industry for the past ew years, is required for all
of
Intel's 1 2 S V CERDIP EPROMs. Plastic EPROMs
may also
be
programmed using this method. A flow-
chart of the inbligent ProgrammingAlgortthm
is
shown in Figure 3.
The inbligent ProgrammingAlgorithm utilizes two
different pulse types: initial and overprogram. The
duration of the initialm ulse(s) is one millisec-
ond, which will then be followed by a longer verpro-
gram pulseof length 3X
msec.
X is an iteration coun-
ter and s equal to the number
of
the initialone milli-
second pulses applied to a particular location,
be-
fore a correct verify
occu r s .
Up to 25 one-rnillisec-
ond pulses per
yte
are
provided
or
before
the
over-
program pulse is applied.
The
entln
roquencs
of programpulresand
byte
vsrlficatlonr Ir performod at
VCC =
6.OV
and
Vpp =
1 2 9 . When
the int ent Programming
cy-
cle has been completed, all bytes should be com-
pared to
the
original data
with
VE
=
Vpp = 5.0V.
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 74/128
¡ n u
27C64/87C64
64K
(8K
x 8) CHMOS PRODUCTIONAND
UV
ERASABLE
PROMS
m CHMOS Mlcrocontro ller and
Mlcroprocessor Compatible
m High Performance Speeds
-
50
ns Maximum Access Time
-
7C644ntegrated Address Latch
- nlversal
28
Pln Memory Slte, 2-llne
m New Quick-Pulse ProgrammingTu
Algorithm
(1
second programming)
m
Avallable In 28-Pln Cerdlp and Pla8tlc
DIP Package and 32-LeadPLCC
Packape.
Control
m Low Power Consumption
- 00 pA Maxlmum Standby Current
m Nolse mmunlty Features
-
10% VCC Tolerance
-Maximum Latch-up mmunlty
Through EPI Processing
Intel's 27C64 and 87C64 CHMOS EP RO Ms are 64K bit 5V only memories organized s 8192 words of
8
bits.
They employ advanced CHMOS'II-E circuitv o r systems requiring ow power, high performance
speeds,
and
immunity to noise. The 87C64 has been optimized for multiplexed bus microcontroller and microprocessor
compatibility while the 27C64 has a non-multiplexed addressing interface and is plug compatible with the
standard Intel 2764A
(HMOS
11-E).
The 27064 and 87C64 are otfered in both a ceramic
IP,
Plastic DIP,and Plastic Leaded Chip Carrier PLCC)
Packages. Cerdip packages provide flexibility in prototyping and
8D
environments, whereas plastic
IP and
PLCC EPROMs rovide optimum cost effectiveness in production environments. A new Ouick-Pulse Program-
mingTM Algorithm is employed which can speed up programming by as much a s one hundred limes.
The 87C64 incorporates an address latch on the address pins to minimize chip count n multiplexed
bus
systems. Designers can eliminate an external address latch by tieing address and dala pins of the 8 7 W
directy to the processor's multiplexed addressldata pins. On the falling edge of the ALE input (ALE/=),
address information at the address inputs ( Ao -A~~ )f the 87064 is latched internally.
The
address inputs are
then ignoredas data information s passed on
the
same bus.
The highest degree of protection against latch-up
is
achieved through Intel's unique PI processing. Preven-
tion
of
latch-up is provided
for
stresses up to
100
mA on address and data pins from
- 1V
lo VCC +
1V.
'HMOS and CHMOS
are
patented
processes
of Intel Corporation.
Shaded Areas '. representhe87064 v e f m
290000-1
Flgure
1. Block
Diagram
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 75/128
280000-2
NO=
Intel "Universal Site" Compatible EPROM Pin Configurations are shown n the adjacent blocks to 27064 Pins.
Shaded Areas
.
'
repe tent l b
07W
ersion
Figure 2. Pin Contiguratlon
32 PIN PLCC
0 .450" X 0 . 5 5 0 '
( 1
1 . 4 3 0
X 13.970)
(MILLIMETERS)
TOP
VIEW
280000-1 1
Figure 3. PLCC(N) Lead Configuration
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 76/128
Extended Temperature (Express)
EPROMs
The ntel EX PR ES S EPROM amily is a series
of
electrically programmable read only memories which
have eceived dditional processing to enhance
product haracteristics. EXPRESS processing is
'available for several densities of EP RO M, allowing
the.choice
of
appropriate memory ize
to
match
sys-
tem applications.
EXPRESS EPROMproducts are available with 168
f 8 hour, 125% dynamic burn-in using Intel's stan-
dard bias configuration. This process exceeds or
meets most industry specifications of burn-in.
The
standard EXPRESS EPROMoperating temperature
range
is
OC
to 70'C. Extended operating tempera-
ture range (- 40% to
+
85%) EXPRESS products
are also available. Like all ntel EP ROMs . the EX-
PR ES S EP ROM amily is inspected to 0.1% electri-
cal AQL. This mayallow the user to reduce or elimi-
nate incoming inspection testing.
READ OPERATION
D.C. CHARACTERISTICS
EXPRESS
EPROM
Product Family
PRODUCT DEFINITIONS
Type Operating Bu rn-In 125°C (hr)
emDerature PCI
a l
Oto +70
168 f8
T - 4 0 t0 +8 5
I
NONE
EXPRESS Options
27C64/07C64 Vcrdona
Speed
Ven lona
CerdlpLCC
I
I -20 I T,L.Q I T I
Electrical Parame :
f
EXPRESS EPROMproducts are identical to standard EPROM parameters except for:
27C64
Symbo l
Test Condl t lons
7C64
arameter
Mln
Max
ISB
E
=
VIH,
=
VIL
.0
TL
€€
=
v a ,
m
VIL
.1MOSE Standby Current (mA)
Iccl(l)
VPP
=
V a , Tambmt
=
85'C
igh Temperature
= = VIL0, 30
TLCC Active Current at
m= m
VIL
0,30
TLcc Active Current (mA)
NOTE
1.see notes 4 and
6
of Read Operation D.C.Characteristics.
I
290000-13
+5V R = 1 KII Vcc = t 5 V
Vpp = + 5V GNO = O V = 33.3K H z
m = sv
Burn-In Birrand Tlmlng Dl rprama
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 77/128
4
f
DORESS
=FIRST
LOCATION3
Vtt = 6.25V
7s
ROGRAM ONE 100
u s
PULSE
1NCREMENT X
<J
cc
E
Vpp
=
5.0V
29oooO- t
2
~~
Figure
5.
Quick-Pulse ProgramrningTv Algorithm
Quick-Pulse
Programm ingm Algorithm
Intel’s 27C64 and 87C64 E PRO Ms can now be pro-
grammed using the Quick-Pulse Programming Algo-
rithm, developed by Intelto substantially reduce the
throughput time in the production environment.This
algorithm allows these devices
o
be programmed in
under one second, almost a hundred fold improve-
ment over previous algorithms. Actual programming
time
is
a function of the PROM programmer being
used.
The Quick-Pulse Programming Algorithm
uses
initial
pulses of 1O0 microseconds followed bya byte veri-
fication odeterminewhen he address byte has
been successfully programmed. Up to 25 100 ps
pulses per byte are provided beforea failure is rec-
ognized. A flowchart
of
the Quick-Pulse Program-
ming Algorithm
is
shown in Figure 5.
For the Quick Pulse Programming Algorithm, then-
tire sequence of programming
pulses
and byte verifi-
cations
is
performed at VCC
=
6.25V and Vpp at
12.75V.Whenprogramming of the EPROM has
been completed, all bytes should be compared to
the original data with VCC = Vpp = 5.0V.
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 78/128
27
128A
128K (16K x
8)
PRODUCTION AND
UV
ERAS ABLE PROMS
m Fast 150 nsec Acce ss Time
m
Low
Power
-
MOS' 11-ETechnology
- 00 mA Maxlmum Active
-
0
mA Maximum Standby
m
New
Quick-Pulse Programmlngm
Algorithm
-
sed o n Plastlc DIP
- ntellgent ProgrammingTM Algorithm
Compatible
m Intellgetit lden tltlerm Mod e
m
f 10% VCC
Tolerance Available
-Automated ProgrammingOperations
m Available n28-Pin Cerdip andPlastic
Packages
(.See Psckagmg Spec. Order
r231369)
The Intel 271 28A is a 5V only, 131,072-htultraviolet erasable and electrically programmable read-only memo-
ry (EPROM). The 27128A is fabricated with Intel's HMOSII-E technology which significantly reduces die size
and greatly improves the device 's performance, reliability and manufacturability.
The 27128A
is
currently available n two different package types. CERD IP packages provide flexibility n
prototyping and
RBD
environments where reprogrammability
s
required. Plastic D IP EPR OMs provide opti-
mum
cost
effectiveness in production environments.
Intel's new Quick-Pulse Programming Algorithm enables these PlasticPROMs
to
be programmed withintwo
seconds. Programming equipment that takes advantage of this nnovation will electronically
identify
t h e
EPROM with the help
of
the int&ent Identifier and rapidly program
it
using a superior programming method.
The nQigent Programming Algorithm may be utilized n the absence of such equipment and is used to
program
CERDIP
devices.
The 27128A
is
available in fastccess times including150 ns (271 28A-1). Thisnsures compatibility with high-
performance microprocessors, uch as Intel's 8 MHz 80186 allowing full speed operation without the addition
of WAIT states. The 27128A
is
also directly compatible with the 12 MHz 8051 family.
HMOS is a patented
process of
IntelCorporation.
v c c
-
GND
-
VPP-
-
t t t t t t t t
m c
OUTPUT ENABLE
-'
CHIP ENA BLE
a--
PROG LOOK
AND
"--c
OUTPUT BUFFERS
DECODER 4 Y-GATINQ
X
DECODER
:
CELL
MATRIX
31,072-BIT
Figure 1.
Block Diagram
ADDRESS
INPUTS
AO-Ao
230849-1
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 79/128
271
20A
Pin
Names
, - _.
.
. --
. .
.
N.C.
I NO INTERNAL CONNECT
27120A
P27126A
27321,
230849-2
NOTE:
Inld Univwul SIa'%omp.UOb EPROM
Pln
CaWiguationru a Shorm
inRu
lodrr
AdmcmI
lo
the
27128A Pins
Flgure 2. Cordip(D)/Phrtlc(P) DIPPln Conflguratlonr
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 80/128
w
27128A
EXTENDED TEMPERATURE
(EXPRESS) EPROMS
The ntel EXPRESS EPROM family is a series
of
electrically programmable read only memories which
have eceivedaddltlonal processing to enhance
product haracteristics. EXPRESS processing is
available
for
several densities of
EPROM,
allowing
the
chdce of appropriate memory sizeo match sys-
tem applkrtions. EXPRESSEPROM products are
EXPRESS EPROM PRODUCT
FAMILY
PRODUCT DEFINITIONS
,-
Typo 6um-In
125 (M)
poratkrg Tomporrturo
o
None
40% to +
85.C
.
166 f 8
%
to
+
70
L
-40% to f85.C I 168 f 8
available with 168 f 8 hour, 125’C dynamic burn-
using Intel’s standard bias configuration. Thls prl
cess exceeds or meets most industry specificatior
of
burn-in. The standard EXPRESS EPROM OWB
ing temperature range is 0% to 70 .
Exte1 ...
:d
1
erating temperature range (-40% to +85%) E:
PRESS
productsrevailable. Like all
Int
EPROMs, t h e EXPRESS EPROM amily is inspecte
to 0.1% electrical
AQL.
This may allow
the
user
reduce
or
eliminate Incoming inspection testing.
EXPRESS
OPTIONS
27120A Ver8lonr
READ OPERATION
D.C. CHARACTER ISTICS
Electrical Parameters of Express
EPROM
Producta are identical to standard
EPROM
parameters except
o
I
Pm m 0 t . r
TD27128h
LD27128A
Mln
M U
T0.1 COndltkM
Bum-in81.a and nml ng Diagrama
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 81/128
+
DORESS
=
FIRST LOCATION
PROGRAM ONE I W r s
PULSE
4
INCREMENT X
1
<-y ,
f*ILDD
vcc =
vpp =
5.ov
FIgure
4.
Oulck-Pulso Program mlngn Algorithm
Quick-Pulse Programm ingm Algorithm
(For Plastic EPROMs)
Intel's Plastic EPROMs can now be programmed us-
ing the Quick-Pulse Programming Algorithm, devel-
oped by Intel to substantially reduce the throughput
time in he production programmingenvironment.
This algorithm allows Plastic devices o
be
pro
grammed In under two seconds, almost
a
hundred
fold mprovement over previous algorithms. Actual
programming ime is a function of the PROM
pro-
grammer being used.
The Quick-Pulse Programming Algorithm uses initial
pulses of 100 microseconds followedby a byte veri-
fication todetermine when the address byte has
been successfullyprogrammed. Up to 25 100 pr
pulsesper byte are providedbefore a failure ir rec
ognized.
A
flow chart
of
the
Quick-Pube Program
ming Algorithm s shown in F i e
For the Quick-Pulse Programming lgorithm, the en
tire sequence of pfogrammlng pulses
andbyte
vM,
cations is performed at
Vcc
=
6.25V
and
Vpp
8
12.75V. Whenprogramming of the EPROM ha
been completed, all bytes should be
compared 11
the original data with V m = Vpp = 5.0V.
In addition to
the Quick-Pulse Programming Algo
rithm, Plastic EPROMs are also compatible with In
tel's int&ent Programming Algorithm.
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 82/128
27C128
128K (16K
x
8)
CHMOS
PRODUCTION AND
UV
ERASABLE PROMS
m
CHMOS
Microcontroller and
Microprocessor Compatible
m Low Power Consumption
- 00 p A Maxlmum Standby Current
m
Maxlm um Latch-Up Immunity Through
€PI Processing
- 1V
Input Protectlon
-
4V Vpp
Protection
m High Performance
-
50 ns Access Time
m
Quick-Pulse Programm ingTM Algorithm
Allows Rapid, Automated Programming
-
Secon d Throughput
Available In 28-Pln Cerdlp and 32-Lead
PLCC Packages
(See Packaging Spec. Order r231360)
Intel's 27C128
CHMOS
EPROM is a
128K
bit 5V-only memory, organized as 16,384 words of
8
bits each.
The27C128 is idea l or systems requiring ow power, high performance. and noise Immunity dueo its CHMOS'II-E
processing, and it is pin compatiblewith the standard Intel27128A.
The 27C128 is offered in Ceramic DIP and Plast ic Leaded Chip Carrier (PLCC) Packages. Cerdip packages
provide flexibility in prototyping and
R
8 D environments while the PLCC package is most cost effective
in
production environments. The Quick-Pulse ProgrammingTM Algorithm mproves programming
' s p e e d
by
as
much as one hundred imes over older algorithms. further reducingcosts for systemmanufacturers.
Intel 's untque EPI processing provides excellent latch-up immunity. Prevention of latch-up is guaranteed f or
stresses up to
1O0
mA on address and data pins from - V to Vcc + 1V
and
orVpp voltage overshootup to
14V.
'HMOS and CHMOS are patentedprocessesof Intel Corporation.
vcc
-
N0
-
m CHIPNABLE
PAOQ LOQlC
OUTPUT BUFFERS
AODAESS
INPUTS
&-A13
Y
OECOOER YGAtlNQ
X
: CELLMATRIX
131,072.811
Figuro
1. Block
Dlagram
290127-1
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 83/128
w
27C128
Pln Name8
CHIPENABLE
OUTPUTENABLE
PROGRAM
No
I n tml
Connect
Don't
Uw
27C128
290127-2
NOTE
Intel "Universal Site"-CornpatiMe EPROM Pin Configurations are Shown nthe Blocks Adjacent to t he 27C128 Pins.
Flgure2.Cerdip(D) Pln Conflguratlona
-
Flaure 3. PLCC(N1LeadConfloumtlon
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 84/128
w
27C128
READ
MODE
The
27C128
has two control functions, both f which
must be logically active in ordero obtain data at the
outputs. Chip Enable
(m)
s
the power control and
should be used for device selection. Output Enable
(m)S the output control and should be used
to
gate data from the output pins, independent of de-
vice selection. Assuming that addresses are stable,
the address access time ( t A E ) is equal to the delay
from
m
o output (t . Data is available at the out-
k
ssuming
t h a t k
uts after the dele of
~ O E
rom the falling edge of
has been low and addresses
have been stable for at least
tACC.bE.
STANDBY
MODE
EPR OMs can be placed in standby mode which re-
duces the maximum currentof the device by apply-
ing a TTL-high signal o the nput. When in stand-
by mode, the outputs are n a high impedance state,
independentfhenput.
Two Llne Output Control
Because EPROMs are usually used in larger memo-
ry arrays, ntel has provided
2
control ines which
accommodatethis mumple memory connection. The
two control lines allow lor:
a) the owest possible memory power dissipation,
b) complete assurance that output bus contention
and
w i l l not occur.
To use these two control lines most efficiently.E
should be decoded and used as the primary device
selecting unction, while should be made a com-
mon connection to all devices in the array and con-
nected to the ine from the system control
bus. This assures that
all
deselected memory devic-
es
are in their low ower standby mode nd that the
output pins are active only whenata is desired from
a particular memory device.
SYSTE M CONSIDERATIONS
The
power
switching characteristics
of
EPR OMs re-
quire careful decoupling of the devices. The supply
current,
Icc,has
three segments that are of interest
to the system designer-the standby current evel,
theactivecurrent evel, and thetransientcurrent
peaks thatare produced by the alling and rising
edges of Chip Enable. The magnitudef these tran-
sient and inductive current peaks is dependent on
the output capacitive and inductive oading of the
device. The associated transient voltage eaks can
be suppressed by complying with Intel’s Two-Line
Control, and by properly selected decoupling capaci-
tors. I t IS recommended that a 0.1 pF ceramic ca-
pacltor
be
used on every device between
VE
and
GND. This should be a high frequency capacitoror
low nherent nductance and should be placed as
close to the device as possible. In addition, a 4.7 pF
bulk electrolytic capacitor should be used between
VCC and GNO for every eight devices. The bulk ca-
pacitor should be located near where the power
up
ply
is
connected to the array.
The
purpose of the
bulkcapacitor is to overcome the voltagedroop
caused by the inductive effect of PC board-traces.
PROGRAMMING MODES
Caution: Exceeding 14V on Vpp will permanent&
damage
the
device.
Initially. nd fter each erasure, all bits of the
EPROM
re in the “1” state. Data is introduced by
selectively programming “Os” into
the
desired bit
lo-
cations.Althoughonly
“Os”
will be programmed,
both
“1s”
and “Os” can be present inhe data word.
The only way to change a
O”
to a
“1 ”
is by ultravio-
let
light erasure.
The device
is
in the programmingmode when
Vpp
is
raised tosr og ra mm in g voltage
(See
Table
2)
and
m and PGM areboth at
TTL
low and = VIH.
The data o be programmed is applied 8 bits in paral-
lel to the data output ins. The levels required for the
address and data inputs areTTL.
Program Inhibit
Programming
of
multiple
EPROMs
in parallel
with
different data is easily accomplished by using the
Program Inhibit mode.A high-level
E
r
m
nput
inhibits the other devices
from
being pro rammed.
Except for S , ll like inputs (including dk
f
the
parallel EPR OM s ma be common. A
l T L
low-level
pulse applied to the hd input with
Vpp
at its pro-
gramming voltage and
m
=
VIL
will program the
selected device.
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 85/128
w
27C
128
F
TART
ADDRESS =FIRST LOCATK IN
4
V p p = 12.75V
Va
= 6.25V
PROGRAM ONE
loops
PULSC
*
=25?
PASSED
290127-0
Figura 5.Oulck-Pulse ProgrammingTu Algorithm
Quick-Pulse Programminga Algorithm
Intel's 27C128 EPROM is programmedusing the
Quick-Pulse Programming Algorithm, developed by
Intel
to
substantially reduce the throughput time in
the production environment. This algorithm allows
the device to be rogrammed in under
two
seconds,
almost a hundred fold improvement over previous
algorithms. Actual programming time s a function of
he
PROM programmer being used.
-ne
Quick-Pulse Programming Algorithm
uses
initial
pulses of 100 microseconds followedby a
byte
ven-
fication to determine when
the
address byte has
been successfullyprogrammed.Up
to 25
100 ps
pulses per byte are provided before a ailure is rec-
ognized.
A
flowchart
of
the Quick-Pulse Program-
ming Algorithm is shown in Figure
5.
For the Quick Pulse Programming Algorithm, he en-
tire sequence of programming pulsesand
byte v e f i
cations
is
performed at
Vcc = 6.25V
and
Vpp
at
12.75V.
Whenprogramming of
the
EPROMhas
been completed, all bytes should be compared o
the original data with
VE =
Vpp
= 5.0V.
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 86/128
27256
256K (32K
x
8)
PRODUCTION AND UVERASABLE PROMS
m
New Qu ick-Pulse ProgrammingTM m Plastic Pro duction P27256
is
Algorithm for Plastic P27256 Comp atible with Auto-Insertion
-
Secon d Programming
Equipment
- ntellgent ProgrammingTM Algorithm Moisture Resistant
. .
Compatible
m
Fast Access Time
m
Industry Standard P inout
.
.JEDEC
Approved
.
. 28 Lea d Cerdip and
Plastic Package
70
ns D27256-1
-
00 n r P27256-2
S e e Packaglng Spec. Order r231369)
m intellg ent IdentlfierTM Mode
The Intel 27256 is a 5V only, 262,144-bit Ultraviolet Erasable (Cerdip)/plastic productionP27256) electricall
programmable read-only memory (EPROM). Organized as 32K words by 8 bits, individual bytes can be ac
cessed in less than 170 ns (27256-1). Thiss compatible with high performance microprocessors,uch as
th
Intel iAPX 186, allowing full speed operation without the addition f performance-degrading WAIT states. Thl
27256 is also directly compatible with Intel's 8051 family of microcontrollers.
The Plastic P27256
is
ideal for high volume production environments where code flexibility
is
crucial. Plasti
packaging is also well-suited to auto-insertion equipment in cost-effective automated assembly lines. Intel'
new Quick-Pulse Programming Algorithm enables the P27256 to be programmed within four seconds (plu
programmer overhead). Programming equipment which takes advantage of
his
innovation
will
electronicall
identify the EPROM with the help of the inkligent Identifier and rapidly program
t
using
a
superior program
ming method. The inteligent Programming Algorithm maybe utilized in the absence of such equipment.
The 27256 enables implementation of new, advanced systems with firmware-intensive architectures. Thl
combination of the27256's high-density, cost-effectiveEP ROM storage, and new advanced microprocessor
having megabit addressing capability provides designers with opportunities to engineer user-fnendly. ~ l
reliability, high-performancesystems.
The 27256's large storage capability of 32 K-byte; enables it to function as a high-density software carriel
Entire operating ystems, diagnostics, high-level language programs and specialized application softwarea
reside in
a
27256 EPROM directly on a system's memory bus. This permits immediatemicroprocessor acces
and execution of software and elminates the need for time-consuming disk ccesses and downloads.
Two-linecontrol and JEDEC-approved. 28-pin packaging are tandard eaturesofall ntelhigh-densit
EPRO Ms . This assures easy microprocessor nterfacing and minimum design efforts when upgrading, adding
or choosing between nonvolatile memory alternatives.
The 27256 is manufactured using Intel's advancedHMOS'II-E technology,
'HMOS is a patented process of Intel Corporation.
vcc-
m
-
0411 ouwun
0 0 - 0 ,
280087- 1
Flgure
1.
Block Diagram
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 87/128
27256
NOTE:
Pin Names
Chip Enable
0 0 - 0 7
outputs
N.C. No Connect
27256
P27256
lntel"Universal Site"-CompatibleEPROM pin configurations are shown in the blocks adjacent t o the P27256 pins.
Figura 2. Cerdip/PIart lc DIP Pin Conf lgurat lon
I
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 88/128
w
27256
EXTENDED TEMPERATURE
(EXPRESS) EPROMs
The ntel
EXPRESS EPROM
family
is
a
series
of
electrically programmable ead only memories which
have eceivedaddltional processing to enhance
product haracteristics.
EXPRESS
processing
is
available for several densities of
EPROM,
allowing
the choice
of
appropriate memory ize
to
match
s y s
tem appllcations.
EXPRESS EPROM
products are
EXPRE SS EPR OM PRODUCT FAMILY
PRODUCT
OEFlNiflONS
available with
168
f
hour, 125% dynamic burn-in
using ntel's standard bias configuration. This pro-
cess exceeds
or
meets most industry specifications
of
burn-in. The standard
EXPRESS EPROM
operat-
ing temperature range
is O'C
to 70%. Extendedo p
erating temperature range (-40% to
+
85%)
EX-
PRESS
productsrevailable.ikellntel
EPROMs, the EXPRESS EPROM
family
is
inspected
to 0.1
%
electrical AQL. This may allow the user to
reduce or eliminate incoming inspection testing.
EXPR ESS OPTIONS
27256 VERSIONS
Type ~emperature
Operating
12WC
(hr)
168 k 8'C
to
+70'C
Burn-in
T
I
-40% to
f
5'C
I None
L
-4O'Cto + 8 S C
168
f8
-
Prckag lng Optlonr
Speed
Vmrmlans
Cordlp
I -20 Q,
T, L
1
READ OPERATION
D.C. CHARACTERISTICS
Electrical parameters of
XPRESS EPROM
products are identical
lo
standard
EPROM
parameters except for:
Symbol
Test Condklons
D27256
arameter
TO27256
Mln
Max
ISB
E
= VI& bE = VIL
0
cc
Standby Current (mA)
Ice(')
bE = E
VIL25
cc
Active Cunent mA)
NOTE
l . The
maximum
current value is with outputs o 7
unloaded.
Burn-In
Bbs
and fimlng Diagrams
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 89/128
27256
e l
c =
Vpp
=
5.W
Flgure
4.
Intellgent ProgrammingTv Flowchart
inteligant ProgrammingTM Algorithm
The inbligent ProgrammingAlgorithmhas been a
standard n the industry or the past few years.
A
flowchart of the inbligent Programming Algorithm s
shown in Figure 4.
The inteligent Programming Algorithm utilizes two
different pulse types: initial and overprogram. The
duration of
the
initialE ulse(s) is one millisecond,
which will then be followed y a longeroverprogram
pulse of length 3X msec. X is an iteration counter
and is equal
o
the number
of
the initialone millisec-
ond pulses applied to a particular location before a
correct ver*
occurs.
Up to
25 one-millisecond
puls-
es per byte are provided
or
before the overprogram
pulse is applied.
The entiresequence of program pu lu r and
byte
verlflcatlonr
Ir
performed at
V c c
= 6.0V
and
Vpp
= 12.W. When the inbligent Programming
cy-
cle has been completed, all bytes should be
com-
pared
to
the original data with
Vcc
=
Vpp
=
5.0V.
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 90/128
¡ n u 27512
512K
(64K
8 )
PRODUCTION
AND
UV ERASABLE PROM
m
Softwarearrierapablllty
m
Low Power
m
170
ns Maxlmum Acces s Tlme
m
Two-Llne Control
m intellgent ld en tl f l er ~ ode
m
l T L Compatible
- 25 mA mar. Actlve
-40
mA m ax. Standby
Intellgent P rograrnmlng m Algorlthrn
-Automated Programmlngpsratlona in csrdlp
S e a packagmg s p e c orda # 231
369)
The Intel 27512
is
a 5V-only, 524,288-bit ultravioletrasable and lectrically Programmable ead Only Memo-
ry (EPROM) organized as 64K words by 8 bits. Thisensures compatibility with high-performance microproces-
sors, such a s the Intel 8
MHz
iAPX 286, allowing full speed operation without the addition of performance-de
grading WAIT states. The27512 is also directly compatible with Intel’s 8051 family of microcontrollers.
The 27512 enables implementation
of
new, advanced systems with firmware ntensive architectures. The
combination
of
the 27512’s highdensity, cost-effective
EPROM
storage, and
ew
advanced microprocessors
having megabyte addressing capability provides designers with opportunities to engineer user-friendly,igh-re
liability, high-performance systems.
The 27512’s large storage capability
of
64 K-bytes enables
it
to functlon as a high-density software
carrier.
Entire operating systems, diagnostics, high-level language programs and specialized application software can
reside in a 27512 EPR OM directly on
a
system’s memorybus. This permits immediate microprocessor ccess
and execution of software and eliminates the need for time-consuming disk accesses and downloads.
Two-linecontrol andJEDEC-approved. 28-pinpackagingarestandard eatures ofall ntel highdensity
EPROMs. This assures easymicroprocessor interfacing and minimum esign efforts when upgrading, adding.
or
choosing betweennonvolatile memory alternatives.
The 27512 is manufactured using Intel’s advancedHMOs *It-€ technology.
‘HMOS
is a
patented process
of
Intel
Corporation.
231088-1
Figure
1.
Block
Dlagram
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 91/128
w
27512
Pin Names
€€
iS€EIVpp
Don tUse
.U.
outplcs
0 - 0 1
Oulpvts EnablelVpp
b - A 1 5
Addresses
Chg
Enable
27512
231088-2
Figure
2.
Pin Conflguratlonr
EXTENDED TEMPERATURE
(EXPRESS) EPROMs
The Intel EXPRESSEPROM amily s a series
of
electrically programmable read nly memories which
have received additional processing to enhance
product characteristics. EXPRESS processing is
available for several densities
of
EPROM, allowing
the choice
of
appropriate memory size
o
match sys-
tem applications. EXPRESSEPROM products are
available with 168
f
hours, 125% dynamic burn-in
using Intel's standard bias configuration. This pro-
cess
exceeds or meets most ndustry specifications
of burn-in. The standard EXPRESS EPROM operat-
ing temperature range is
0°C
to 70'C. Extended op-
erating temperature range (- 0.C to
+
85T) EX-
PRESS productsre available.ike allntel
P q O M s ,
he EXPRESS
EPROM
family is inspected
tu J.
1
lo
lectricalAQL. This may allow the user to
reduce or eliminate incoming inspection testing.
EXPRESS EPROM PRODUCT FAMILV
PRODUCT DEFINITIONS
Type
I
Operating Temperature] Bum-in
25% (hr)
Q f o c to
+
70%
I
168 + 8
EXPRESS OPTIONS
27512
VERSIONS
Speed
Verdonr
-STD.
-25,
-30
Q,
T, L
-3
L
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 92/128
27512
READ OPERATION
D.C. CHARACTERISTICS
Electrical parametersof EXPRESS EPROM produ cts are identical to standardEPROM parameters except for:
TD27512
Symbol
LD27512
arameter
Test
Condltlonr
Mln
Max
’SB
=
VlH. m / V w
=
VIL
0
CC Standby Current
mA)
ICCl(”
m / v p p =
E
= VIL
50
CC
Active
Current
(mA)
VCG
Active
Current at
TAmbient
= 05°C
igh Temperature
(mA)
aE/vpp = €€ = VIL
25
N O TE
1.
The rnaxlmurn current value
IS
with outputs
00
to
O7
unloaded.
.I c 9
.
v s s c
1 4
A l 5
231088-4
231088-3
Binary
S e Q u e n c e
from lo
A15
+ 5V
A = 1 Kf1
Vw) + 5V
V s
=
GND
E
=
GND
Burn-In
Bias and
Tlmlng Diagram8
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 93/128
27512
”
r
Figure
5.
Lnbllgent
Programmingm Flowchart
inteligent
ProgrammingTM
Algorithm
The inkligent ProgrammingAlgorithm rograms
Intel
EPROMs
using an efficient and reliable method
particularly uited o heproductionprogramming
environment. Typical programming time for individu-
al devices are on the order of
six
minutes. Actual
programming times may vary due
to
differences in
programming equipment. Programming reliability is
also ensured as the incremental program marginof
each byte
is
continuallymonitored odetermine
when
it
has been successfully programmed. A low-
:hart of the tnteligentProgrammingAlgorithm
is
shown
in
Figure 4.
The inkligent Programming Algorithm utilizes two
different pulse types: nitial and overprogram. The
durationofthe nitialpulse@)
is
one millisecond,
which
will
then
be
followed by a longer overprogram
pulse of length
3X
msec.
X is an
iteration counter
and
is
equal to the number
f
the initial one millisec-
ond pulses applied
to
a
particular location, before
a
correct verlfyoccurs. Up to 25 one-millisecond puls-
es
per byte are providedor before the overprogram
pulse
is
applied.7?te
e n t i r e
s e q w ~f
progrrm
p u l s e 8 a n d
byto
v e r i f l c a l l b n r
i s
p e r fo m a d 8 t
VCC = 6,OK
When the inteligent Programming
cy-
cle has been completed,
all
bytes should be
com-
pared to the original data with VCC = 5.0V.
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 94/128
T54LSOOK74LSOO
QUAD 2-INPUT NAND GATE
"cc
GNO
GUARANTEED OPERATING RANGE S
PART NUMBERS
MIN
TEMPERATURE
T54LSOOX
4 5 v 5 0 V
T74LSOOX
4
75 V 5 o v
OC CHARACTER ISTICS OVER OPERATING TEMPERATURE RAN GE (unless otherwise specllled)
SYMBOL
PARAMETER
LIMITS
' MIN
I Wp
MAX
UNITS rEsT
C ON OITI ON S N ~ I ~
I
I
VOLUlpUt
LOW
Voh.ge
'In Input HIGH Current
IILnput
LOW Current
0
36
mAcc
=
MAX.
VIN
= 0.4
V
. 'os
- 20 - 100 mA VCc = y*X. V w ~ O
V
54.74
O
25
O 4 V kCc = MIN.
IoL=
4
O
mA. VIN -
2
O V
74
035
0 5
V VCC-MIN. IOL-B0mA.VlN-20V
O
20
p Ac c = M A X . VIp , = 2 7 V
O I
mA Vcc
=
MAX. VIN - 10V
Oulput Short Clrcud
Currcnr (Nole
31
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 95/128
T54LS04/T74LS04
-
HEX INVERTER
GUARANTEEDPERATINGANGES
PART NUMBERS
SUPPLY VOLTAGE
MIN
MAX
YP TEMPERATURE
T54LS04X
V C I O
t70.c
2 5 v 5 0 V
74LSMX 4
75
v
-55OC IO 125'C5 v0 V
5
v
DC CHARACTERISTICS OVER OPERATING TEMPERATURE RANGE
unless
olherw s_e specllied)
,yp
LIMITS
MIX-_
-UTNS
NOIC 11
-
2 0
Guaranteed
Input
HIGHolnp*
~ _ _ -
VIL
O ?
o a
Guaran1s.d
lnpul
LOW VOlIDQ.
-
-.
- . . ____ __
.
-066 - I
5
3 4
2 7 34
VCC
=
MIN. I I p -
18
mA
VC-
= MIN. 1 0 ~
4M)#A. VIN VIL
utput HIGH
Voltage
AC CHARACTERISTICS: 14
--25OC
See Page 273 for Waveforms)
.
~-
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 96/128
QUAD 2-INPUT AND GATE
CC
GUARANTEED OPERATING RANG ES . .
-
PART
NUMBERS
MIN
SUPPLY
VOLlAGE
N P
MU
'
0-c to + lO C ..28 v
o v
76 V74LSOBX
-55.C to
126%
S
v
o v
5 v
54LSO8X
TEMPERATURE
x P.ck80.
IVW;
D for CeIWnic DID.8 for PIarllc Dep Se, PackagonO Inlormalmn
Se~non
or packages awlable on
this
vloduct
DC CHARACTERISTICS
OVER
OPFlRATlNG TEMPERATURE RANGE (unless olherwtse
s p e c d i d )
LIMITS
SYMBOL
PARAMETER
'
MIN
TEST CONDITIONS INWe 1)NITS
MAX ~'yp
VIH
Input ClimD Diode VOIl.lp
CO
InputLOW VOll.0.
VIL
Gumentad
Input
HIGH V o h w.0
WUI
HIGHV o l t e ~ e
S4
74
V
Guera n ld nput LOW V011.ge
-
- 0 8 5 V c c - M l N . 1 , ~ ~1 8 m A
1 S
In
~~
Input HIGH
Current
I O
VCC=MAX.V,N- 2 7 V
A
0
o
V C C A X . V ~ N = O V
A
8
4
upptr Current LOW
CCL
Vcc -MAX.
1nputsOp.n
A8
4UDD& Current
HIGH
CCH
VCc
= M U .
V o u ~
-
O V
A
1 O0
20
Current
( ~ o c e
1
0s
VcC 2 MAX. VN = O 4
V
A
0 38
WU
LOW Current
IIL
vc,
= MAX. vy( = I O V
A
.
.-
ourput
Shon ClICUil
. .
AC CHARACTERISTICS: TA = 25OC See Page 273 for Waveforms1
"_
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 97/128
DUAL 2-WIDE 2-INPUT/J.INPUT AND-OR-INVERT GATE
QUARANTEED OPERATING RANGES
PART
NUMBERS
SUPPLY VOLTAGE
PIPIN
I
TEMPERATURE
'
MAX
T M L S S l X -
554c to I25T
5 v 5 o v I 5 5 v
T74LS5 1
x 4 7 5 V
I
5 0 V 5 2 5 V
I
O.Cto+lO'C
DC CHARACTERISTICS
OVER
OP ER AT INO T E M P E R A T L ) _ R E - R A N O E ~ lherwlse rpec~lted)
.
SVMBOL
MIN NP MLJ( UNITS
TEST
CONMTIONS(Nole 11
PARAMETER
LIMITS
1 7
VIM
Gurfrnted n o u t LOW Vohuje V
o
tuerantad lnpul HIGH Volug.
0
nputHIGH Voltage
VIL
Input LOW Voll.pe
54
0 7
74
I
1 0
I
20
I
#A
I V C C = M A X . V I N - I ~ V
I O 1 I mA I V r r - M A x . V , U - l O V
IIL
VCC =
M A Y . vou,
-
o vA
o0
20
Current (~ ot e
1
0s
Vcc
-
MAX.
VIN
-
0.4 V
O 36 mAnput
LOW Current
Outpul Short
Circuol
AC CHARACTERISTICS: TA =
25OC
(See Page
273 for Waveforms)
1
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 98/128
i
T54LS138R74LS138
1-OF-8
DECODER/DEMULTIPLEXER
OEscatPrtoN - T h l
L s m s t
T L ¿ C S I J ~ ~ ; ~ “ ~ , B I S P
t,i
WI, mea ,aid
0ecoderlOl:nulriplrxrr. This drwicr I I W I I ~y ~ p r lor
high
Ppood b p%Icrmcmery
chip s o l a c t addrn r decodinp. Thr multiple input snabI(( a l9W
gllrellel bxpansion
10
6 I.of.24
decoder
usmg just
t h r n LS138 devices or to a 1.of.32 decoder using four
LSl3Es
end one nverter. The LS138 ir
febricalrd
with
r h e
Schottky barrter diode
prwe m or high wead and
ir
complalely compatible with all S G S - A T E S T T L
farnilits.
DEM ULTIP LEXINGCAP ABILITV
M ULTIP LE INP UT ENABLE
FOR
EASY EXP ANSION
TYPICAL POWER DISSIPATION
OF 32 mW
A C T I V E L O W M U T U A L L Y E X C L U S I V E O U T P U T S
INP UT CLAM P DIODES LIM IT HIGH SP EED TER M INATION EFFECTS
F U L L Y T T L A N D C M O S CO M P A T IB L E
P IN NAM ESO A D I N G Note al
_A0
:A2 Address
Inputs
€1.
€2 Enable (Actwe LOW1 Inwu 0.5 U L
E3
Enable
(Actwe HIGH) nput
60-
G7
Act~ve OW
Outputs
INote bl
0.25 U
L
0.5 U.L. 0.25 U.L.
C O N N E C T I O N D I A G R A M
DIP
(TOP
VIEW1
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 99/128
T54LS164/T74LS164
SERIAL-IN
PARALLEL-OUT SHIFT REGISTER
D E S C R I P T I O N - T h e T 54L S164/ T 74L S164 ir
a
high speed 8-811 Serial-In
Parallel-Out Shift Register. Serial data
is
enter& hrough a2 - l n p u lA N O gata
synchronous with the
L O W IO
HIGH transition
of
Ihe clock. The d evlce features an
asynchronous Master Resetwhich clears the register
I stting
al l outputs LOW
Independent of the clock. It ulilizer the Schottky diode clamped process to achieve
high speeds and
is
fu l l y com pati b le w i th a l l SG SA T E S
TTC
products.
T YPICAL SHIFT FREOUENCV
OF
35 MHz
ASYNCHRON OUS MAST ER RESET
G AT ED SERIAL DAT A INPUT
e F U L L V S Y N C H R O N O U S D A T A T R A N S F E R S
I N P U T C L A M P DIODES L IMIT HIGH S P E E D T E R M I N A T I O N E F F E C T S
F U L L V T T L A N D C M O S C O M P A T I B L E
PIN
N A M E SO A D I N G INotc J¡
A.
0
O l l a
Inputs
o 5 U . L .
0.25
U . L .
CP Clock (Actw e
HIGH
Gomg
0.5
U . L . O 25 U.L .
B
00
-
0 7 Outputs (Notebl
Edge1 I nput
Ma s t e r Reset
(Actwe
LOW1nput 0.5 U . L .
hnrts
a
T T L
Un31
Load I U
L
1
*
40
YA
H I GH I I
6
m4
LOW.
b The Outpul LOW draw factor 2 5
U.L
to, MdMary 154) md
5
U . L 1 0 1
C0mmrrco.l
1741
Temorrature R a n w
L OG IC DIAG RAM
_ _
~
-
~
"
L OG IC SYMBOL
C O N N E C T I O N D I A G R A M
DIP (TOP V l EW l
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 100/128
T54LS373n74LS373
O CTA LTRA N SP A REN TL A TCH
WITH3-STATEOUTPUTS
DESCRIPTION -
The
T54LSTr74LS373
Consosrs
of
eoqht l atches wll h 3-state ou tputs
for bus organized ystem applications . The llp-flops appear ransparent
to
the data
Idata changes asynchronou sly) when Latch Enable (LE) S HIGH When LE
S
LOW, the
data thatfleets the set-up tlmes
1s
latched. Data appears
on
the
bus
when the Outpur
Enable íO€)
IS
LOW. hen
O€ IS
H I G H the buroutpurs IS In the htgh mpedance state.
ElQHT UTC HE S IN
A
BINOLE PACKAQL
J-STATL
OUTPUTS r o n B u s I N T E R F A C I N Q
FULLYCMOS
AND
m OUPATABLE
ABSOLVTE
M AXIM UM
RATINGS
(above whlch
the
useful
de
may
be Impanred)
HVbTERESlb ON LA TCH ENABLE
INPUT c u M P
DIODES
LIMIT
HIGH
SPEED TERMINATION EFFECTS
Storage Temperature - 65'C 10 + 150'C
Temperalure (Ambient) Under
elas
-- 55°C
'o
+ 125'C
ycc
Pm Potenhal
o
Ground Pm 3.5 V
10
+
7 0
V
Input Vohags (dc) U5 Vl O1 5 v
' inpu~Current
(dc)
25
mA
to
+5.0
mA
Voltage Appbd lo ov( pu t s
(Oulpu(
HIGH)
- 0 5 V l O + l O V
Ou~put urrent
idc)
(Outpul LOW) + 5 0 mA
' E ~ W npuotap. m n r ~nprn urmuM
adncmnl
lo
POI CI
H ~ W Y U
PIN
NAMES
HIGH
DO m
Data Inputs o
5 U.L.
LE Latchnable (Actwe HIGH) O S U L
O
Input
Outpulnable (Actwe LOW) 0 5 U L
07
Oulpuls Note b)
Input
65
(25) U L
LOADING
Notea )
0.25 U.L
0.25 U.L
15
(7.5) U L
LO OK SVMOOL
vcc
- Rn
2
GNO - P m I O
CONNECTION DIACRAY
DIP ITOP
VIEW1
L
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 101/128
r'
NUTOROLA
SEMICONDUCTOR
-
4 7 W O
I
I
TECHNICAL DATA
UNIVERSAL
SWITCHING REGULATOR S UBSY STEM
I I L L - J I j
UNIVERSAL
SWITCHING REGULATOR
SUBSYSTEM
SILICON MONOLITHIC
INTEGRATED CIRCUIT
A
i
PIN CONNECTIONS
MOTOROLA LINEAR INTERFACE
GEVICES
3-390
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 102/128
MOTOROLA LINEAR4NTERFACE
DEVICES
1-.-t91
\
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 103/128
pA78S40
FIGURE 6- TEP-UPONVERTER ,
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 104/128
?
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 105/128
MOTOROLA
M 1 3 7
TECHNICAL
DATA
SEMlCONDUCTOR
-
LM237
THREE-TERMINALADJUSTABLE
OUTPUT NEGATIVE VOLTAGE REGULATORS
The
LM137/2371337 are adjustable 3-terminal n8gaeve voltage
voltage range
of -
1.2
V
to -37
V.
These voltage regulators are
regulators capable
of
supplying inexcess of 1.5
A
over an output
exceptionallye8.y to use and require only
two
external resistors
to
set the output voltage. Further, tney employ nternal current
them errentially blow-out
proof.
l imit ing, thermal shutdown and
safe
area compansrtton. m aking
The
LM137 series sorva a wide variety of applicatiorts including
local.
on -u rd regulat ion. This device can
also
be used
to
make
a programm able output ngulator; or, by connecting a fixed re-
sistor
batween
the adjÜSlm8nt and output. the LM137 series can
be used as a precision Current regulator.
O Output Currcnt in Excess of
1
S
Amper. in K and T Suffix
o Output Curronl inExcess of
0.5
Ampere In H Suffix Packago
o Output Adjustabla Between - 1.2 V and -37 V
0 Internal
Therms
Overload Protection
o Internal Short-Circuit-Current Limiting.Constant with
0
Output Transistor Safe-Area Compensat ion
O
Standard 3-Lead ransistor Packsgm
o Floating Operation
tor
High Voltago Applicalions
0 Eliminate a Stocking Many Fixed Voltages
Packages
Temperat ura
"37
HREE-TERMINAL
ADJUSTABLE NEGATIVE
VOLTAGE REGULATORS
SILICON MONOLITHIC
INTEGHATED CIRCUIT
L
I
T
sumx
PLASTIC PACKAGE
CASE 221A
PIN l.
UJUST
1.
Vi"
I 3. V0 I
1
STAND ARD APPLICATION
"out
I
n sumx
METAL PACKAGE
CASE 74
Ieorrmm
V h W l
IS
INFLIT
P I N
1. AIWJST
'l. OUTP'JT
3. I m
M O T O R O L A L I N E A R / I N T E R F A C E
DEVICES
3.43
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 106/128
z
MOTOROLA
TECHNICAL DATA
LM117
SEMICONDUCTOR
-
M217
LM317
OUTPUT POSITIVE VOLTAGE REGULATORS
THREE-TERMINAL
ADJUSTABLE
1 1
THREE-TERMINAL
ADJUSTA BLE POSITIVE
VOLTAGE REGULATORS
'
I N T E G R A T E D C I R C U I T
SILICON MONOLITHIC
The LM117,217 317 are adjustable-termma1 posltwe voltage ; A
regulators capable of supplymg In excess
01 1.5
A ov ef an output
voltage range
of 1.2 V
to 37
V.
These voltage regulators are
ex.
ceptiooal;y easy
to u5e
and require only
two
eaernal resislors
10
CASt 1
et
the output voltage. Further, they emplo y internal currenl Ilm-
METAL PACKAGE
them essentially blow-out pioo f.
,ting. hermalshutdown and safeareac3mpensatoon. m a k w
The LMll7 eries
serve
a
wnde
vareety of appllcalions lncludlng
I O C S I . onard regulation This devlcr can
also
be
used to
make
a programmable output regulator,
or
by co nnectin g a Itxed rests-
tor between the adjustment and output, the L H 1 1 7 serles can be
used as a precoslooi current regulator.
e Output Current in Excess of 1.5 Ampere In K and T Suffix
e Ouiput Current in Excess of
0.5
Ampere In
ti
Suf f l x Packaye
e Output Adjustable between
t ?
V and 37 V
e Internal Thermal Overload Prctectuon
PLASTIC PACKAGE
Inle-nai Short-Ckrcu#t CurrentLimitmg Constant wlth
CASE 221A
e Output Transsto r Safe-Area Cornpensallon
Floattng Operation
lor
tilgh Voltrge Aoohcations
5tar.da,d 3-lead
Transistor Packages
El#mti:..:esStocklng Ma ny Ftxed Voltages
K SUFFIX
O 0
U S E
IS
OUTPUT
Pl . I
..*a
3 .I.(lrlc.ll" ,.01.,d 1
C. .
C
I :o,.* .I.I,VIC.(
Sannecll
Packages
1
SUFFIX
Temperature
PIN
1
ADJUST
2 VO U l
3.
V ,"
,
_.
1
2
STANDARD
APPLICATION
-7
-t----
ORDERING lNM RMAl lON
1
MOTOROLA L1NEAR: INTERFLCE
DEVICES
3-21
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 107/128
PROYECTO
TERMINAL
C ~ K A B A D O R E EPROMS AUT~NOMO
~ - ~ ~ _ _ _ " _____
.
ANEXO 2
LISTADOS
DE
PROGRAMAS
DE
PRUEBA
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 108/128
PROYECTO TERMINAL.
GRABADOR D E EPROMS
A U T ~ N O M O
Debido a a necesidad de estar desarrollando innumerables pruebas para evaluar el
funcionamiento de cada etapa del sistema grabador, se precisa una forma ágil
y
segura
para tal efecto; una forma segura pero poco ágil es el uso de memorias EPROM para
realizar
las
pruebas, ya que se requiere tener un grabador y un borrador de EPROM
así como de un cierto tiempo para que las memorias se borren
lo
cual entorpecería el
avance del proyecto.
Tomando encuenta
io
anterior, asícomo la proyección quese daal grabador para
poder trabajar mediante el puerto serie de la PC, se realizaron programas con tal fin y
adaptando nuestro sistema para aceptar memorias EEPROM (Electrically Erasable and
Reprogrammable Only Memories) en lugar de las EPROM para agilizar las pruebas, se
desarrollaron
los
programas "CARGADOR.ASM"
Y
"CARGAD.PAS".
El programa CARGADOR.ASMsegrabo
en
una
EEPROM
este contiene el código
necesario para cargar un programaquee llega de puerto serial enviado porel
programa CARGAD.PAS a la RAM del grabador
y
después ejecutarlo.
Esto
es
lo
que
hizo mas ágiles las pruebas.
En base al hecho de que se debiera tener intercomunicación del sistema con
la
PC vía
puerto serie, se implemento un programa que mostrara dicha intercomunicación, el cual
recibe un caracter de teclado de la PC,
lo
transmite al grabador y este lo regresa para
volver
a
aparecer
en
la pantalla dos veces. dicho programaleva por. ombre
"ECOP.ASM".
Una vez aprobada la intercomunicación, se desarrollan programas para probar y poner
a punto la interfaz con el usuario en modo de trabajo independiente (botones y display),
surgiendo así el programa "CHKPBS.ASM", permitiendo también el monitoreo de las
líneas de datos y direcciones manejando palabras que permitieran examinar el cambio
de valor lógico (de O a
1
y viceversa) por lo cual semanejaron dos palabras
complementarias "AA" y
5 5 ,
asícomo
los
voltajes de programación que sevana
manejar, creando el archivo "CHKVTJS.ASM".
Ya teniendo control
de
todo
lo
anterior
se
implementaun programa queademásde
integrarlo, presenta
la
mterfaz con
e l
Gsuario. así como
; os
mensajes necesarios para ir
llevando al usuario al buen uso de su programador ( los cuales secomentan en el
manual de usuario) y mostrando un "esqueleto" del programa final, este, enfocado al
tipo de EPROM 2764A. surge el programa "GRAB64
SM"
queseve precedido por
todos
l os
anteriores
y
otros muchos progranlas de sruebaal igual que
los
arriba
mencionados.
Para el modo de trabajo dependiente
se
desarrollo i.in programa que permitiera el
manejo de las opciones del grabador en este modo,
y
haciendo uso de algunos de
los
programas desarrollados en el modo independiente (taies como el cargad.pas, etc) se
implementa el programa
"ITFC
.PAS".
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 109/128
PROYECTO TERMINAL RABADOR
D E
EPROMS
A U T ~ N O M O
. .
.
Los códigos fuentes
ya
compilados
y
funcionando, se pr2sentan a continuación:
0001 O000
0002 oooc
0003 0009
0004 O000
0108+
O000
0005 O000
0006 O000
0007 O000
0008 0000 21 O0
O009 OOG2
O010100
O01 1 O1
O0
74 50
0012 O102 F5 98
0013 0101
0014 01G4 74 F4
0015
O106 F5 8D
0016 O108
0017
0108 74 20
0018
O I G A
F5
89
O019 O l O C
O020 O1['C 74 40
O021
OlOt
F5 88
0022 o1 1(>
0023 O110 31 2C
0024 O172 FB
0025
O1 i'; 31 2C
0026 O1 FA
0027 O1 i )
0028 O1 I
ij
0029
0116 31 2C
0030 O1 lb F5 83
0032 O1
'
F582
0033 O1
1
0034
011E 31 2C
0035 012Ci
0036 012C FO
0037 O12
0038
012; 1A
0031
O1
, ~ ,
12C
.m******
este programa permite cargar' un proi;r'ama
e11
a direccion
;estatiiecldo
COII
el primer
.ORG y lo mmienm .j
ejecutar
en
la direccion
;proplrc.sta en ei
segundo .ORG
#INCLUDE EQUS.TXT
.
LIST
. LIST
ORG OOOOh
AJMPNICIO
MOV A,#OF4H :CARGAALOi-iEAUDRATE
MOVTH1 A
MOVA,#20HPROGRAMA TI;%.lERENMODO
2
MOV TMGD,A
MOV,#40HARRANCA TlME R
1
MOV TC0Y.A
REZNB ACALLRECIBERECIBE t
:_
TOTALDEBYTESDECODIGO
MOV3.A
MOV2.AR2 (CONTIENE E') 'E BAJO;
ACALLRECIBE R3 CONTIEhLYTELTO;
L@(JPCAP ACALLRECIBERECIBEYTES DEDlRECClON
MOVDPH
A
ACALL RECiBE
MOV DPLA
ACALLECIBERECIBE DA'
.i
MOVX @DPTR,A
DEC R2
0039 OL:; EA FF
F1
CJNE2.#OFFH,LOOPCAP
0040
01::: 16
DEC R3
0041 0121:~ BB FF EDJNE3OFFH.LOOPCAP
0042 O129
0043 0 1 2 ~ ~2 20 O 0 LJMP000H
0044
012(;
0045
01:
':
08 FD RECIBE JNBCON.O RECiBE
0046 01; C2
98
CLR SCON
O
0048 O1 22 RET
0047 O1
'
E5
9 MOb
A,SEJF
0049 O1
31
0050
O1?, l;
.
ORG $+ 1OBLIGA AL ENSAM3LADORENERAR
0051 011J:. O0 O1 RUN
.vmrd
INICIO ;FOR SEPARAL 3 UNAINEA DECODIGO
0052 01: ' END PARA LA DlRECClONERRANQUE.
tasm:
NUI:;WI.
of errors
=
O
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 110/128
PROYECT(
) T E R M I N A L (
"BADOR DE EPROMS
A U T ~ N O M O
~-
{ESTE PF\JGRAMAES ELENCARGADCDE MANDMF. NFOF- MACIONUTILIZANDOELPUERTO
SERIE
1
L E LA PC; TRABdJA EN CONJUNTO COW EL (;ARGAC'lR.ASM}
PROGRAM LEEOBJ;
USES CRT DOS;
VAR NL,Tb PC,CB,BE,EC NB,I,J:INTEGEP.
NOMBF- E-ARCH,LINEA TBS,PCS.CBS:STRINGjSO].
F,FE:TE:.IT;
{P
,*********m++**** *****************A
I *******A*****
}
FUNCTION H E M N:INTEGER):STRING:
VARLINESTRING[16];
BEGIN
LINE:='O1:13456789ABCDEF':
HEXA:=L"\IE[HI(N) DIV I f <+I]+LINE[HI(N) AOD 161
1]+
LINE[LO(i\.i DIV 16+1]+LIUE[LO(NI MOD 16+1];
END;
ESTEROCEDIMIENTO M,+NDAAh :'ORMACION CONTENIDA ENL
REGISTRcj 'AL ' POREL PUERTO SERIE HACIENDC USO D: LA NTERRUPCION 14 DEL
DOS
PROCEDi IRE ESCRIBE ('Y,.BYTE):
{
A **********
r m ~ ~ m ~ n ~ x ~ . +
1
var
begin
Reg
:
Re:;ksters;
with Reg ( 1 0
begin
DX:=O;
AH:=$OI
AL:=X;
end;
INTR($I.I REG);
end;
{-***** ESTEPROCEDIMIENTOESTABLECE
LA
CONFIGJRACIONDELPUERTO PARAQUE
TRABAJE
A
LA VELOClDkD DE BAUD RATE' ADECUADA EN EASE AL CRISTAL QUE MANEJA EL
PROCEDURE INITPORT:
var
begin
SISTEMA
***********m*********++x+*+**********m*****~**
1
Reg : Re : tsters;
with Reg 10
begin
DX:=O:
AH:=O:
AL:=$OP :
INTR($"l
I
REG);
end;
end;
BEGIN {PROGRAMA PR'NCIPAL).
CLRSCR
BE:=O:
NL:=O;
INITPORT
WRITELN
READLh 'GOMBRE-ARC'. I )
NOMBRE^
I\RCH:=NOME;?E-ARCH+'.OBJ':
WRITELP,
WRITE (';<SMBRE DEL r.ICHIVO 3BJET3:');
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 111/128
PROYECTO T E R M I N A L
RABADOR
DE EPROMS AUT~NOMO
ASSIGN
'r
NOMBRE-AP'JH);
RESET (f.
.
TB:=-3;
NLlz-2;
WHILE NOT EOF(F) DO
BEGIN
VAL('$'+ \OPY (LINEA,2
: j
NB,EC):
TB:=TB+
dB .
INC(NL)
END;
TBS:=HExA(TB);
ESCRIBE ;HI(TB));
ESCRIBE LO(TB));
RESET(F
FOR J:=' 'O NL DO
BEG1N
READLNIELINEA);
VAL('$+LoPY(LINEA,2,2),NB,EC).
VAL('$+COPY(LINEA,4.4,.PC,I);
FOR
l.=
1 TO NB DO
BEG1N
CBS:=C. PY(LINEA,8+1*2.2):
VAL('$+CBS,CB,EC);
PCS:=HEXA(PC);
GOTOX Í
1.6);
escribei ; ¡(PC)) :
ESCRIBt(LO(CB));
INC(BE)
END;
END;
READLN ' INEA);
GOTOXr i 8);
WRITELN DIRECCION DE ARRANQUE: $',COPY (LINEA,12,2)..OPY(LINEA,10,2));
CLOSE(F
:
GOTOX\ :
11);
WRITELI,"SE ESCRIBIERON $,HEX A(BE) ,' BYTES
. ' ) ,
END.
READLNt F LINEA);
WRlTEi~u('ESCRIBIENOJ$,CBS.' A $,PCS):
ESCRltji iO(PC));
INC(PC
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 112/128
PROYEC'Y
I
TERMINAL RABADOR DE EPROMS A U T ~ N O M O
-___
_I_.
o001
OO(.i>
0002
OOC?'..
0003 00 :1
0004
00L
'
0005 00i:i;
0006 OOOS
0007
200:)
0162+
001 1
0008 201Jk ~ 74 50
O009
2 0 ~ : ' 5 98
O010 20' ' ,
0011
20Ct.;
74
F4
0012
200t) F5
8D
0013 2 0 ~
"
0014
20(: 74 20
0016
20t
0017
20i. ~,
4 40
0018 20 (: t F5 88
0019 2C' C2 8
0020
20
0021
20 '
1 1
24
0022 20,
0023
20 1
F5
9
0015 20;
I .
F5 89
;este / ) I :jyrama egresa e caracter que se intrci,;uce desde el teclado de la
;PC dc..de u n elnuladot- de terminal
conf igurac.)
para tt-ansmitir
por
el
;puef")
serie
1
.LIST
#INCLUDE C:EQUS.TXT
LIST
O R G
2000h
INlClOMOV.#50H ;PROGRAM/:UERTOERIE EN MODO I
MOV SCON,A
MOb
A,#OF4H ;CARGA VALC:? DEAUDRATE
MOVH1.A
MOV A,#20HPROGRAMAT,?,AER
1
EN
MODO
2
MOV TM@D,A
MOV A.#4clH :ARRANCA TIMER 1
MOV TCOU,A
CLR sc0r.J
RECNB ACALL RECIBEECIBE
E
r'TE
MOVSBUF.A
0024 2C 30 99 FD VLTBH JNB SCON. 1 W B H :TR.tNSMITEECO
0025 20
j C 2
99 CLR SCON 1
0026 20 ' ' , F5 9OVBUF.A
0027 20
30
99D W B H I JNB SCON.l
.VVTBHI
:TKANSMITE
ECO
0028 20: C 2 99 CLR SCON 1
0029 20L.
80
EE SJMP RECrdB
0030
20:
:
0031 20; i
0032
211,
;
30 98
FD
RECIBE JNB SCON.O.RECIBE
0033 2 C L C 2 98LR SCON O
0034
2G:
E5
9 MOL'
A,SBIJF
0035
20:
2 2
RET
0036 20:
0037 20: 1 ORG $ + I ;OBLIGA AL ENSAW SLADOR A GENERAR
0038
20:
, :
O 0
20RUN
.\,smI-dN1
3 1 0 .PORSEPA RA20 UNA LINEADECODIGO
0039
20;
.END
PARA LA DlRECClOh
JE
ARRANQUE.
tasm:
N u '
) e t - of errors = O
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 113/128
PROYEC'
; T E R M I N A L
I
. K A B A D O RDE PROMS AUTÓNOMO
O001
OOOU
;ESTEPROGRAMAPERMITE LLER LOS 2BS DE ¡. . ANTERFAZ CON
EL
USUARIO
0002 00013 ;AS1COMO DESPLEGARDATOSENEL DISPLAY
0003 OGUO #INCLUDE C:EQUS.TXT
0162+
OO 10
.LIST
0005 0 0 : ~ .LIST
00070~1~1
2030H
O009 2000 90
60
03NICIO:MOVPTR.PCTRL2
O010 2052 74 88 MOV A.#88H
001 2Oil.i
FO MOdX
I@DPTR,A
0012
2GC1.; 90
403CVPTR,PCTRLI
0013 2C ' 74 80 MO d
A.#30H
0014 2 0 , 5
FO
MOVX@3PTR,A
0017 2 0 W 74 DFEGRESO MOV A,#XCERO
0018 200E 11C ACALL IMPRIME
0020
2 C : 1
90
60
02T6
MOV
DPTR,#PC2
0021 20
1 I.: EO
MO'\JX.;,@DPTR
0022 20 i 54 co ANL A.#OCOH
0023 20 1 B4 80 04 CJNE A,#080H,ET5
00240
' :J 74
86OV
A.#XUNO
0025 2013 11 2 C ACALL iMPRlME
0026
2 0 1 )
0027
2C
' ,
90
60
02
ET5
MOL DPTR.#PC2
0028
2GL EO MG'dX
A.@DPTR
0029 2C. 54 CO ANL A.#OCOH
0031 202~i 4 BBGV.#XDOS
0032 20;.: I 1 2C ACkLLMPRlME
0033 202.4
0034 202
1
O1 10 AJMP ETG
0038 202
:90
60 O 0 IMPRIME: MO'JPTR,#PA2
.___ . ~~-
~.
o030 2 ~ :
a4
40 EA CJhE A,#040HT6
0039
0040
004
1
0042
0043
0044
0045
0046
0047
0048
0049
0050
5
0052
0053
0054
0055
MGV
RO,#08
ANL #&OH
RE A
RR A
ORL A
#:OH
MGVX al3PTR.A
ANL. A.#OEFH
MGVX .@DPTR,A
MG'v'
R . F
I
RL A
DJNZ KO,ETQ4
RE7
VOV
21,A
PvlOVX
@DPTR,A
RE
0056 202.1.;
ORG $-
I
OBLIGA AL ENSAMbLADOR
A
GENERAR
0057
2G4.1
O0
20UNWORDNICIOPOREPARADO UNA LINEA
DE
CODIGO
0058 2C41:
END
PARAA DlRECClON
DE
ARRANQUE.
0059 20.11)
0060
2041,
tasm:
N L I I I ) P I
of
errors =
C;
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 114/128
PROYE('T1
1TERMINAL t :KABADOR
DE
EPROMS A U T ~ N O M O
o001
OOCr
0002 OOUd
;PARA MONITOREA8OS VOLTAJES NE ZESARIOSARAROGRAMACION
DE
EPROM
0003
OOW
#INCLUDE C:EQUS.TXT
0162+ 001
.LIST
0004 OOC, . LIST
0005
OOG
0007 2004.'
0008 20(J .'90
60
03 INICIO: MOVPTH,PCTRL2
0009
20C
~:
48 MGV k , 8 8 H
0010
20C
FO
MGVX @DPTR,C-
0011
20Lh
9040 03 MOV D P T R , #PCTRLI
0012 2000 74 80 MOV.#80H
0013
2005 FO
MOVX @DPTR,A
0014
2OCC
0015 201 .;
0016
20C , 74
DFEGRESOCV.3XCERO
0017 2OCL 118 ACALL IMPRIME
0018
201iJ
O019 201
I
90
60
02 ET6 MOV DPTR #PC2
0020 201 > EO MOVX,@DPTR
0021
201
,:54 c o ANL A.#OCOH
O022 20 : B4 80 12 CJNE A.#080HT5
0023 207 j 74 86 MC'v' A.#XUNO
0025 20: ;7 74 AA
MO'v'.#OAAH
0026 20 ' ~
90
40 O 0
MOVPTR,#PAI
0027
202.: 11
5D
ACHLL DATO
0029
2,X 90 40 O1 MCv' DPTR.#PE
0030 20Z9
11 5D AC-LLATO
0031 2023
0032
20;
3
9060
2 ETS: MOV DPTR #PC2
0033
20,5
EO
MGL'X A.@DPTF
0034
2 O F
54
CO
ANL A,#OCOH
0035 20:- 1 840
DC CJNE A.#040H,ET6
~ " -
m
"ROGHAMA
QL'E
MA k3 A LAS PAL/:. . RAS D E CONTROL A LOS
PUERTOS DE LAS PPIs
0006
ZOC;
.ORG
2000H
0024 20'18 11 48 ACALL IMPRIME
0028 20: i 74 17 MO'\J.#017H
0036
201;,1
74
BB
MOL'.#XDOS
0037 205G 1148
ACrLL IMPRIME
0038
20:.
j74 55 MC .j A.#i755H
0039
L 3:
-4
90
40 O0 MO':J DPTR,#PAI
0040
: ' : . X
3
1 1
5D AC;IiL DATO
O041 ; '3:-:z 74 O0 MC.1 A.#OOH
0042 29, ; 90
40
O1
MCVP-R,#PB
1
0043 2044 11
5D
AC.ALL DATO
0044
204 _i
0045 1 3,¡(301 I O
AJMP
ET6
0046
L
5: 3
0047 L . ' 3
0049 201:Y 9060
O0
IMPRIME MO\. DPTR,#PA2
0050 200B
78
08 MC; RO,#08
0051
2 0 4 3
F9 ETQ4
i4OV
R1 A
0052
25A E
54 80
AN,
A. e
IH
0053 ;O 03
RR A
0054 ;O
03
RR A
0055 2Ot 2
44
O
ORL~
A.#ÍCIH
0048 1-
3
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 115/128
PROYE( 1
i)TERhlINAL
~.
~-
0056 231'4 FO
0057
2: : 5
54 EF
0059 20155 E9
0061 205A D8 F1
0062 ?O .C
22
0063
2 0 i D
0064
2OC111)
O
DATO
0065
20t.E 22
0058 2057
FO
O060 205923
0066
20':F
c
.
:ABADOR
DE PROMs AUTóNOMO
~ "_
"___ -_
MGVX GJPTR.A
AN; A.#,:,EFH
MO,;X
,Qi:jPTR.t..
MOV
k
E l
RL A
DJNZ
RO ETQ4
RE'
MOVX @DP1-R.A
RE- i
0067
20r?3
ORG $+ 1 OBLIGA ALENSAME-ADORAGENERAR
68
2
4 0 20
RUN VVORC
INICIO
; P O R
SEPARADO UNA LINEAE
CODIGO
0069 29112 END F'ARA LC DlRECClON
CE
ARRANQUE.
0071 2062
tasm: N I I I :er
of
errors = O
0070 20t-J2
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 116/128
P R O Y E ( ' T 0
TERMINAL
I i?AEiAIlORDE
PROMs AUTóNOMO
/" EL NOMBRE DEESTE PROGRAM; ES ITFC.PAS QUE
ES EL
QUE
SE
ENCARGA DE
INTERFAZAR LA PCON EL GRABADOR CUANDO SE ESTA TRABAJANDONMODO
DEPENDIENTE*/
PROGRAM GRABA;
USES CRT,DOS;
CONST
-
__- ~~
VI2
=
12.5V';
v21 = 21.0V':
V25
=
'25.0V';
DIRES= 8000;
TOPE =65500;
var
AR-1KSTS:STRING:
LINEA STRING:
DIRE:STRING[4];
NNOMAR,NOMAR:STRlNG[l3]
VDEF,rdV,TPE:STRING[7];
T,S.SIFIS.RES:CHAR:
OP-CC
D,C:BYTE;
SEG
1hD:INTEGER;
NL,TB ?C,CB,BE,EC,NB.I,J:INTEGER
UB,N.E COL,REN,DIR NTEGER
TBS Pc;S,CBS.STRING[80];
F,FE TEXT;
CONT3UF:ARRAY[I.
TOPE]
OF
WOF
3
>
{m********.****++****m**************~~~*******ct******************x*****
}
FUNCTION HEXAB (N:BYTE)'STR NG:
VAR LINt .STRING[16]:
BEGIN
LINE:='OI23456789ABCDEF'.
HEXAB
=
LINE[ N DIV 16+1]+LINE[ N Moil 16+1].
END:
m********~***********cm**~*~*******~~********.*******************x**
}
FUNCTISN HEXA (N:INTEGER):S [RING:
VAR
L l l j E
-STRING[16]
BEG1N
LINE:='OI 23456789ABCDEF'
HEXA:=LINE[HI(N) DIV
16+1]+LINE(HI(N)MOD
16+1]+
LINE[LO(N) DIV I~+ I]+ LIN E[L O(N I OD
'6+1];
END:
{f*******Lrr.***************t*-1.*********-*******-.***********************
1
FUNCTIJ'd HEXAW (N:W(IRD):SIRING
VAR LINE :STRING[16]
BEG1
N
LINE:='Ol L3456789ABCDEF'
END:
HEXAVL'
- HEXAB(HI(N))+1iEXAEi_O(N)',:
{cm******,.***********-**i~*********.~******r?**xc********************
1
FUNCTION BUSCA(OP-C3DE:BY rE):INTEGER;
VAR I.INTEGER;
OP-S"C. iNG[2] :
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 117/128
PROYE('': 1TERblINAL
.::ABAL)OR
DE EPROMS A U T ~ N O M O
~ ~ _ _ I
BEG1N
I:=O;
OP.=HE>,AB(OP_CODE)
REPEAT
INC(I);
BUSCA
4 .
END:
UNTIL (C.IPY(AR-INSTS[
] . 1,2)x LIP)
OR
(1>242)
{*m*****.-.**********xK*+*,*,********~.~*****t*,***********x************
}
var
begin
PROCEDiLjRE ESCRIBE
(,<
BYTE)
Reg : R~~~lster -s ;
with Rei)do
begin
DX:=O
AH:=$O
AL:=X
end;
INTR(SI,I,REG).
end:
{CCI*******,*****m***xK*+**c~*******************~***********************
1
PROCEDLJRE LEE (VAR
X
BYTE)
var
begin
Reg
' Ri'.iistet-s;
with
Rell .lo
begin
DX:=O
AH:=$[:;
X:=AL
end:
INTR($ ¡,$,REG):
end:
{m*****~~*.*****+*****H++*+***********~i********i~**C********************
}
PROCEEORE INITPORT
var
begi
11
Reg Registers;
with Rei] JO
begin
DX:=O
AH:=O
AL.=$8S
end:
INTR($ '*1,REG);
end
{******A. A . *********x
PROCEDIMIENTO IMPRIME
********AA*-
X,Y =PGS,CION PLC =POSICION DE LETRA CAMBIADA TT
:
AMAÑO DEL TEXTO
6s INDICADOR LC
=
LETRA CAMBIADA *********************,~*m*******
m * * * * * * ~ ~ . ~ * * * x m * * * * m * * * * * * * * * * * * * i ~ * * * * * * * * c * * * * * * * * * * * * * * * * * * * * * * * * ,
1
PROCELLRE
IMPRIME(X.Y.INTE.;ER;TEXTO:STRING
T,PLC
f
5:INTEGER;LC:CHAR);
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 118/128
BEG1N
TEXTCCLOR(0);
TEXTBkSKGROUND(2):
GOTOX' (X,Y);
WRITE' EXTO);
GOTOX :(PLC,Y),
TEXTCCLOR(4);
WRITE(1.C);
GOTOX'. (TT,Y);
IF BS.---
O THEN WRITELN.
TEXTCGiOR(7);
END;
TEXTB,+,CKGROUND(O):
{rn******~***m*-*f*****f***************~~.*********************************,
I
FUNCTI
.)N EE-BYTE(DI%.WORD):BYTE,
VAR
0P-CC)d:BYTE;
BEG1N
ESCRIBE(3);
ESCRIBE(HI(D1R));
ESCRIEPF(LO(DIR));
LEE(GF -COD);
LEE-B? I-E:=OP-COD
END:
T * * * * * * *
.*-*
PROCEDlMlENTO MENUE
*t******************i**f**~*
INDIC
=
.NDICA SI YA
SE
ACTIVC
LA
OPCION
O
NO,
Y
CUAL
DE
ELLAS
+**H+*
PROCELURE MENUE(INDIC.lNTESERj
BEGIN
HIGHVIDEO;
WINDOW (1,2,80,2);
m ~. ~m m ~ ~~ ,.
1
TEXTBtaCKGROUND(0):
TEXTC, lLOR(2).
IF
INDI:
. - I THEN
ELSE
TEXTC(ACKGROUND(2)
TEXTEIACKGROUND(OI
WRITE,'?I');
TEXTC,IiOR(7),
WRITE,'KCHIVO
' )
TEXTBP,CKGROUND(O)
CLREOL.
IF
INDIC=2 THEN
ELSE
TEXTC 3LOR(2):
WRITEi'E');
TEXTCgiOR(7);
WRITE''F'R0M
1.
TEXTB:ICKGROUND(O).
CLREOL
IF INDI
;.
3
THEN
ELSE
TEXTHMCKGROUND(~I
TEXTtJt\CKGROUND(O'
TEXT I/\CKGROUND(2;
TEXTtittCKGROUND(0)
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 119/128
PRO\ E(
TO
TERMINAL
i ABADOR
DE
EPROMs AUTÓNOMO
TEXTCi.liOR(2);
TEXTCOLOR(7):
.~__. ~~~
___
~
WRITEt,'B');
WRITEt'UFFER 1
TEXTBbjCKGROUND(0).
CLREO-
IF
INDIC=4 THEN
BEG1
N
TEXTBACKGROUND(2).
WRITE'A');
END
ELSE
BEG1
N
TEXTBACKGROUND(G)
WRITE( A');
END
TEXTC(ILOR(~) ;
WRITE ? ) ;
TEXTCOLOR(7);
WRITE('UDA I ) ;
TEXTBACKGROUND(0):
CLREOL
END
{M
***+
****x*** PROCE:C)IMIEN"(Cj S-AtDO
********************~~*-*
MAIUEJk, -A "BARRA DE ESTADC:
*********************+.***-
* m* * * * * , * ~ * * * + * * * * * * * * mr * * * * * * * * * * * * n * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
1
PRO CEW RE ESTADO:
BEG1
N
WINDOW (1,25,80,25);
G O T O ~ Y ( 1 , l ) ;
WRiTEI'/\RCHIVO:');
CLREOL
GOTOXY(10,l);
WRITEiPdOMAR):
GOTOX\ (25,l);
WRITE,": IPO DE EPROL,: ' ) .
CLREO,
GOTOX'r (39,l);
G0TOA.Y
(50,l);
CLREC',_
GOTO) k 1,60,1);
WRITElNV);
GOTOXY(69,l):
WRITEs"3ALIR <-+ I ) ;
END;
WRlTErTPE);
WRITE "\ OLTAJE- I ) ;
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 120/128
PROYE( 'io ERMINAL x I LABADOR DE EPROMS A U T ~ N O M O
~-
-
-~ __-
_ _ -
{ M ,* ***** PROCEDIvIENTO
;::ARG/\,
*************A*
********'L.****-*
MANDA AL BUFFER EL A 7 C H I V C ' SELECCIONADO **h*n******l*r **m******rm**
PROCE9URE CARGA;
BEGIN
CLRSC*>
BE:=O
NL.=O,
INITPORT;
ASSIGPI
(F,NOMAR);
RESET
:
F);
m********..*++m******m****+******************+**********************
I
TB:z-3
NL
x-2
WHILE NOT EOF(F) DO
BEGIN
READL.N(F,LINEA);
VAL('$'+SOPY (LINEA,2.2),NB.EC).
TB:=TE-:+NB;
INC(N:~
END;
TBS:=hEXA(TB).
ESCRIHE (HI(TB)):
ESCRli
[ I
(LO(TB));
RESET,/');
FOR
J =- 1 TO NL DO
BEG1N
READ ..i(F,LINEA);
VAL('$ '2OPY(LINEA,2.2,.NB.EC
VAL('$ rZOPY(LINEA,4.4)PC,I),
WINDCJW (20,8.70,15);
TEXT': ..)LOR(O):
FOR TO NB DO
BEGlh
TEXTEI' CKGROUND(2),
CBS -LOPY(LINEA,8+1*2.2).
VAL( '$ 1-CBS,CB.EC);
PCS =-IEXA(PC):
GOT:
CY( 1 , l ) ;
WRl~ i . : .N( 'ESCRIBIEN~O
' .CBS.' A
$',PCS)
escrltJr , i l (PC))
ESCR,,?E(LO(PC));
ESCR IE(LO(CB));
INC(B:
INC(P
END
END.
VAL('$" -OPY(LINEA,12 ..I).CB.EC') {MANDA DPH}
ESCRli., CB);
CLOSt-
;
GOTC),,
,I ,5);
WRITE. d('SE ESCRIBIE90N $' FiEXA(BE),'BYTES ' )
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 121/128
END:
{m . . ROCEDlMlENTO ARCH1
f******************r***
MANE< ..ELMENUDE A R C H I V O NOMAR=TIENEEL NOM3REDELARCHIVO
rm***~....*****************************+********~*********************
1
PROCF
IRE ARCHI;
BEGlh
WINDC ~ ' d ( ,3,20.7);
MENUE 1 ' ) ;
IMPRlh.~t( l, l , 'ABRIR
'
15 1 3,'A')
IMPRIIIcL1,2,'GUARDAR
COMO
' 15. ',O,'G');
IMPRlb
~
1,3,'CARGAR
A BUFFEF-'
' 15.1.0,'C'):
CLRSC
.\
WINDi .:'i(2,4,33,5);
CASE ' ;?S
OF
DlRS
-
;.ADKEY;
'A'.'a ' , GIN
lPRIME(1 l,'NOMBRE DEL ARCHIVO:
* OBJ
'.30.22 1
'
I ) ;
I
lTOXY(28, l) ;
F
=READKEY;
T:iXTCOLOR(O):
T IXTBACKGROCIND(2).
lTOXY(21, l) ;
REOL,
r iADLN (NN0MI.R).
y
>MAR:=NNOMkR + ' OEJ'
SI GN (F,NOMAR).
F SET (F);
C
OSE(F);
--~r I ;
'G','g'
3
SIN
, PRIME( 1 , l 'GI:-IRDAR
COMO
' OBJ
'
30,28
1
' ) :
C
.lTOXY(28,1);
1
.READKEY;
iXTBACKGROUND(2);
1
3TOXY( 15 ,l);
rXTCOLOR(0):
.REOL:
i- EADLN (NNOMAil )
'It3MAR:=NNOMDR ' OB.;'
{
?EWRITE(NOMAR,I.}
I
L )
1
C . c GIN
,
,JNDOW(34,14.3516).
L_RSCR,
EXTCOLOR(0):
iIXTBACKGROIJIUD(2)
3TOXY(2,2);
RITE('S/N');
=READKEY;
CXTCOLOR(7).
'IXTBACKGROUND(0):
,.
.RSCR:
I
T='S' THEN
ZARGA:
3
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 122/128
PROYE( O ERLIINAL
1
i : .MADOR
DE
PROMS A U T ~ N O M O
_ _ _ _ ~
~ _ _ _
ELSE
ERF(
R;
END:
TEXTC
~
-OR(7):
CLRSC'
END:
TEXTB. ,KGROUND(O):
{m I***********
PROi;EDIMIENTO VOLTAJES
********************
MANEJ:, _A OPCION DE VOLTALES DE PROGRAMACION
VDEF -~<ESENTAELVCLTAJE P'OR DEFAULT NV = VOLTAJE DE PROGRAMACION
*m****$* ,*****************************,**********************************
1
PROCEZ JRE VOLTAJES
BEGIN
WINDC \/ (25,10.65,14):
TEXTEt 3KGROUND(2);
IND:=O
GOTO>
' (
1, l ) :
WRITE1 U('V0LTAJE DE PROGKAMACION PROPUESTO: '.VD EF.'
I ) :
GOTO: (1.2):
WRITE
d (
' ) ,
GOTO I (1,3),
WRITE NUEVOVOLTAJE.
J .
WRITE,]('S/N
1
GOTC',16,3):
RES:=L :ADKEY:
CASE
.S OF
'S ' ,
S':Í?:
;IN
TEXTC -OR(O),
. 1 REOL.
': JTOXY 1 I ;
REOL;
PRlME(2.1,'(1)12.5V
'
i2,3.0,'1'):
'*:
:'RIME(15,1,'(2)21 OV 12.16,0'2');
, ; ?RIME(28,1,'(3)25O V ' 0 9.1 ' 3' ) ;
,- .READKEY;
?TOXY(
16,3);
L . S E S OF
'.NV:=V12;
~
.NV-=V21;
NV.=V25;
T
dD. {FIN DEL LYSEE
S}
.
RSCR:
'N'
'n' I'.
J
=VDEF
ELSE
END: {FIN DEL CASE}
E'
3, {FIN DEL EkGIN}
ERix ,R.
END:
{m*****..*************f****1-*******..*******C***f*********************'
}
PROCE IRE CONF;
BEG1N
W I NDC \ '
23.4.43
18);
TEXTC.
i OR(0).
TEXTB.':.KGROUND(2):
IMPRlMiT (1.2,'
O)
2716
'
12.3,O
0 1.
IMPRIIL''i (1,3,' 1) 2732 ' 12.3.C 1'):
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 123/128
PROl'EI ', O T E K \ I I N A L
( I
: MADOR DE EPROMS A U T ~ N O M O
~~~
-~
IMPRIME (1,4 ,' (2 ) 732A
'J2.3
i ;
2').
IMPRIME (1,5.' (3 ) 2764
12.3.0
3 ' ) .
IMPRIIVE (1, 6.' (4) 764A
' 12,3 0.'4') :
IMPRIME (1,7.' 5 ) 27128
' .
12.3.0 5 ' ) :
IMPRIME (1.9.' 7) 27256 ' 12.3.0 7'):
IMPRIM'k~1.10.'
,8 )
7512 ' 12.3 '3');
T:=REA
[')KEY:
CLRSCL
IND.=O
CASE IF
IMPRlMi' (1,8,' (6) 27128, ' . 1 2 . 3C ' 6 ' ) :
'0 ':BELIN
T'Jf:='2716':
V :.?F:=V25
U E =2047.
S $3' ;
ES::RIBE(O).
EN
C
'1':BEC;IN
T,'C,='2732'
L 1EF:=V25
C
?
=4095.
E
3RIBE(
1 .
1 3 ;
Eku:
'Z''BE:,IN
T
' Z
.
-'
2732A':
u3EF:=V21
b:f =4096.
S 2';
E S.:RIBE(2).
Eh
'3':BE: IN
T~JE:='2764'.
V 3EF:=V21
U L
=8191:
v
2'.
E <",RIBE(3).
EPI
'4' B I IN
7- 2 T. I
_ . 2764A':
V.
CF:=V12
i j5
=8191.
S : 1 ' ;
E SzRIBE(4):
EP ':
'5 Bt: IN
T -'i.='27123';
V._
F:=V21
U?
=I6383
S
:
21;
E :3RIBE(5):
En:
'6' BE N
T
:
='27128A':
V3fF:=V12.
CIF =16383-
. 1 :
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 124/128
PRO\'E( ' . "O TERLIINAL I<
B A )OR DE
EPROMs AUTóNOMO
__
.
~ ~
ESZRIBE(6):
ENL
'7':BEC;IN
TPE:='27256';
\ /CtF:=V12:
L
= 32767:
S ' 1 ' ;
E:3SRIBE(7);
EKC.
'8'.BtC;lN
T'~'E:='27512';
VL
EF:=V12:
U t =
6550.
S ' 1 ' ;
E:
CRIBE(8);
Eh;:
ERRC,:
ELSE
END,Fth DEL CASE}
IF IND=( THEN
VOLT) JES:
CASE
S
OF
'IVES :RIBE(O):
'2 '
E.;
RIBE(I):
'3' E:;
RIBE(2):
END:FINELASE DE S j
TEXTC . LOR(7)
CLRS(
END
TEXTE'-CKGROUND(0):
PROCECURE VERIF;
BEG1N
GOTOX'/( 1.4):
WRITLL -N(' SI IRVE LA RIFICACION').
DELA) ( 1000)-
CLRSCtl:
END
{m ~ ~., 1~ ~ ~~ ~- ,
1
PROCF: URE CARG;
BEG1N
GOTC) Y
1.4).
WRITE _N('SISIRVE LA CARGA';.
DELA': t 1000)
CLKS,: 3:
END
{m*+.*~..~********,***********~~..*s*,*~*.~~~****~
1
PROCEGURE IMPR;
BEG1N
GOTO>Y (
1,4),
WRITE N('SI SIRVE LA IMPRESI~N');
DE
LA
1000)
CLRS,, ?
END
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 125/128
PRO\'E( ' "O
TERbl lNAL t?ABADOREPROMs
AUTóNOMO
".
.. . ___
y * * * * * , , **x*****************
********A*******+**************************,
PR0CE;;URE EPR;
BEG1
N
MENUEl2);
WlNDC:V(18.3,44,18);
IMPRIb'
i (
1
,I
'PROGRAN.\R ' 16.1
C, 'P ' ) ;
IMPHIM.I(I,S.'CARGAR
C
BUFFER '.16.1,0,'C');
IMPRIM:Z(l,4.'IMPRIMIR l e ,
1
0, l ).
DIRS.=cEADKEY,
IMFRlK (1,2 'VERIFICAF
COPIA
16,1.0,'V');
CASE
, ¡?S OF
'P' 'P'E" SIN
C ISCR.
CGUF:
EN
I
v , V BF- ;IN
C :
.ZSCR.
V : ?IF;
:f
h
'c','C
E :
;IN
C1 RSCR.
C.-\3G:
EN,:
I t 1 1
, I
BE:;
N
C 'ZSCR,
I R R ;
Elu.
ELSE
BEGlPl
ER
3 R ;
.'L:-;
;CR:
EK3
END. {FIN DEL CASE}
END
******************** - * * * * * * ****1********************* - * * * * * * ******
CARG- JF :
lNITPf 3T.
BEG;N
ESCR:':E(l):
VAL('S DIRE,DIR,EC):
DlPEiEXAW(DIR);
ESCR (HI(DIR));
ESCF, (LO(DIR));
FOR R::N : = O T O
UB
DC
BEG1
,
LEE
:).
,.:0'.-BUF[REN+I]:=(C)
}
{ Et
,D
ENC
(-*****.,********************~~*********.***********~************~******\
PRGCE 'URE EDT:
1
BEGN
WINO
N(19.4.60.21).
TE
..T
)LOK(O)
TE \T: ..CKGROUND(2).
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 126/128
PRO\ E(
70 TERMI NAL
Li<.AE3AL)ORDEPROMs AUTóNOMO
- ~~
~ .
GOTC r Y ( 1
1 ) ;
WF:IT: .N
('DIRECCION.
G a l - C P Y (12.1);
READ
Y(DIRE);
LOWL ]EO.
INITP~
T ;
ES::R - E( 1 .
Vk.~i'PDIRE.DIR,EC):
DIkE
'iEXAW(DIR);
ESCR'F\E(HI(DIR));
ESKR F.E(LO(DIR));
F O ~
'N
=O TO 1 DO
BEGlh
LC.)&
v
DE0
GOTC
XY
( 1
REN+2):
W3IT
E(HEXAW(DIR),'
,
hi(;h\'lDEO;
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 127/128
PRO\'Ec.TO
T E R M INAL :il.M%AL)ORE EPROMs AUTóNOMO
. _ _
~~ ~
DIR
=Dl
R+80;
STR(DIR,DIRE).:
TEXTCOLOR(71
TEXTBACKGRC:UND(O)
CLRSCR;
END:
, . I
. I
i:nPR;
ELSE
EPKC
EN
U
CLRSCF,.
ENC
{M*,& .,*****************"***********************************~~******
?
PRC'::t JREACQ;
BEGIrd
TEXTCOLOR(O),
WIND -;W(20 10.70.16);
G C ? ?
C = Y ( l . l ) ;
WKiTi GRABADOR
CE
EPRÜMS PARA ELPROYECTO TERMINAL 2
I ;
TE,UT€;/-,CKGROUND(2):
GGT
Cj
' Y (
1 . 2 ) ;
i ;
GOTC>,Y(1.3);
WFNi ' OCTC'BRE DE 1996
GC.1 : ~'(1.4) ;
GC
-1 i \ f t 1 . 5 ) ;
WKI~T" 1.
WRiTt , ' DERECHOSESERVADOS
' ) :
DELA 1500):
ENC
{M**.P
************************************f***************f*****X*******
1
PRO::E ~ i iRE
MAN;
BEGIN
GC-FC
I Y(
.4);
w m ~ , . . ~ ( # sI R V E EL MANUC
DEL.^' 1000).
CLRS;.
ENC
{m ~~~,.. r ~~
}
PRCI(:E
T,URE
AYUD;
BEG:
\I
WlPi,.;f d(52.3,75,6);
IMFK;;
r \ l . 1
ACERCA DE
'
13 ;,O,'A'):
IMPKlh:^ (1.2 ,'MA NUA L
'
13.10'M');
DIRS
-
EADKEY;
CLP:;:
CAL:[- qis '3F
ME .:(. 4 )
a
:Q
'n,
>
( AN
ELLir
ER;:, --,
END
TE; 5 .,KGROUND(O);
TE>^, :,LOk(7);
7/23/2019 UAM5206
http://slidepdf.com/reader/full/uam5206 128/128
PRO\
ti :'O
TERMI NAL ( K.i\BADORDE EPROMs
AUTóNOMO
.~
~~
CLRS:
ENE
{*X**
...
r***********************r***-******************************~~*****,
f
PR03tL;URE INITPC;
BEG1
N
ESCK13E(6);
END
{m ,, flrCI l ~ f 1C
}
PROCE3URE INIT;
BEG1 \I
TE>\'
I LOR(7):
T E A
' ~ L ZKGROUND(0);
CLt-,:~;: -:
ME:v~-N:
O).
ES7 .\L,(,J
END,