Sunteți pe pagina 1din 7

Contador Johnson

Vicente Manuel Gonzalez Zepeda.


Datos:

Alumno: Vicente Manuel Gonzalez Zepeda.


Código: 216786683
Materia: Programación de sistemas reconfigurables.
Profesor: Primitivo Emanuel Diaz Guerrero.

Contenido

Introducción: ............................................................................................................ 2
Código(WinCupl). .................................................................................................... 3
simulacion: .............................................................................................................. 4
Practica armada en el protoboard: .......................................................................... 6
Introducción:

El contador en anillo es elegantemente simple, pero utiliza los flip-flops


antieconómicamente - recuérdese que con n biestables es posible codificar hasta
2n estados -. El contador Johnson o contador conmutado en cola es una variación
del contador en anillo que duplica el número de estados codificados, sin sacrificar
su velocidad. Lo que si complica algo es la decodificación del estado.

Se utilizo un multivibrador astable y el GAL 22v10.


Código(WinCupl).
Name contador ;
PartNo 00 ;
Date 22/11/2017 ;
Revision 01 ;
Designer Engineer ;
Company fas ;
Assembly None ;
Location ;
Device g22v10 ;

/* *************** INPUT PINS *********************/


PIN 1 = CLK; /* */

/* *************** OUTPUT PINS *********************/


PIN 14 = Q0; /* */
PIN 15 = Q1; /* */
PIN 16 = Q2; /* */
PIN 17 = Q3; /* */
PIN 18 = Q4; /* */
PIN 19 = Q5; /* */
PIN 20 = Q6; /* */
PIN 21 = Q7;

$define S0 'b' 00000000


$define S1 'b' 10000000
$define S2 'b' 11000000
$define S3 'b' 11100000
$define S4 'b' 11110000
$define S5 'b' 11111000
$define S6 'b' 11111100
$define S7 'b' 11111110
$define S8 'b' 11111111

$define S9 'b' 01111111


$define S10 'b' 00111111
$define S11 'b' 00011111
$define S12 'b' 00001111
$define S13 'b' 00000111
$define S14 'b' 00000011
$define S15 'b' 00000001

SEQUENCE Q7,Q6,Q5,Q4,Q3,Q2,Q1,Q0
{
PRESENT S0 next S1;
PRESENT S1 next S2;
PRESENT S2 next S3;
PRESENT S3 next S4;
PRESENT S4 next S5;
PRESENT S5 next S6;
PRESENT S6 next S7;
PRESENT S7 next S8;

present S8 next S9;


present S9 next S10;
present S10 next S11;
present S11 next S12;
present S12 next S13;
present S13 next S14;
present S14 next S15;
present S15 next S0; }
simulacion:
Practica armada en el protoboard:

S-ar putea să vă placă și