Prévia do material em texto
Step 1 of 1 8.12DP The 74x161 is a modulo-16 counter. It counts from 0 to 15 where RCO signal indicates a carry when all the bit positions become 1 and ENT_LOW is asserted. The 74x161 have asynchronous clear function, so CLR_L input is connected to the asynchronous clear inputs of its flip-flops. Write the ABEL program for a 74x162 decade counter. module Z74X161 title '4_bit_binaryCounter' "Input pins RESET_L, CLK, LD_L, ENP, ENT pin1, 2, 9, 7, 10; P1, P2, P3 pin 3, 4, 5, 6; "Output pins Q0, Q1, Q2, Q3 pin istype 'reg'; RCO pin istype 'reg'; definitions INPUT = [ P3, P2, P1, ]; COUNT = [Q3, Q2, Q1, Q0 ]; RESET =!RESET_L; LD=!LD_L; "Active-level conversions equations COUNT.CLK = CLK; COUNT:=!CLR & (LD & INPUT # !LD & (ENT & ENP) & ( COUNT+1 ) # !LD & !(ENT & ENP) & (COUNT ); RCO=(COUNT=[1, 1, 1, 1]) & ENT end Z74X161 Yes it still fits in a GAL16V8 as the number of pins available is enough to program the operation of 74X161.