Experiment 8 74LS14 inverter experiment: 74LS14 is a 6-way inverter. The pin definition is as follows: A is the input end, Y is the output end, and a chip has 6 channels in total, namely 1, 3, 5, 9, 11, 13 are input terminals, 2, 4, 6, 8, 10, 12 are output terminals, and the output result is the opposite of the input result. That is, if the input terminal is high level, then the output is low level. If the input is low level, the output is high level. In this kit, a total of 2 74LS14 chips are used to form an 8-way inverter. The inverter is one of the important digital circuits. Now I will lead you to learn the application of the inverter. Purpose of the experiment: First, make an 8-way adder experiment, and then observe the state changes of the LED light-emitting tube after passing it through an inverter. org 0000h ajmp main org 0030h main: mov a,#0 loop: mov p1,a ; output to P1 port call delay ; delay. inc a ; add 1 each time jmp loop | delay: mov r5,#50 ; delay. d1: mov r6,#40 d2: mov r7,#248 djnz r7,$ djnz r6,d2 djnz r5,d1 ret end | Wiring method: | | 1: Direct connection: Use an 8-pin data cable to connect the CPU's P1 port (JP44) to the 8-way indicator light's JP32. At this time, it can be observed that the indicator lights go out one by one in binary order. | 2: Connect via inverter: Use an 8-pin data cable to connect the CPU's P1 port (JP44) to the inverter's input port JP29. Use an 8-pin data cable to connect the output terminal JP34 of the inverter to JP32 of the eight-way indicator light. At this point, you can observe that the indicator lights light up one by one in binary order, which is exactly the opposite of the original result. |
|