
|
INFO - FAQ - CC2-Forum - CCPro-Forum |
|
||
|
Genau so habe ich das angeschlossen pin11 an +5V und pin1 an Port14 ... Wenn ich die Latch einzeln anspreche, so als wäre nur 1 Latch da, läuft das, wenn ich mehrere ansprechen will nicht. > Hello, sorry for the English. > > I see that you are using the Enable Latch (pin 11) to open the ports but you should be using the Output Control (pin 1). > > http://www.ancr.org/datasheet/logic/74HC573.pdf > > Connect all the 74HC573’s pin 11 (Enable Latch) to +5V. > Connect port 14 to your #1 74HC573 pin 1 (Output Control). > Connect port 15 to your #2 74HC573 pin 1 (Output Control) > Connect port 16 to your #3 74HC573 pin 1 (Output Control) > > Try the program below and let me know how it works out. ;) > Greetings, > H.J. Windt > > define Bus byteport[1] > define Output_control1 port[14] > define Output_control2 port[15] > define Output_control3 port[16] > define Adresse byte > define Daten byte > > ' --- Programmoperationen ------------- > > Output_control1 = 1 : Output_control2 = 1 : Output_control3 = 1 'Puts all 74hc573 in high impedance state' > #Loop > gosub In1 > print "Adresse 1: ", Daten > gosub In2 > print "Adresse 2: ", Daten > gosub In3 > print "Adresse 3: ", Daten > pause 20 > goto Loop 'Endlosschleife > > > #In1 > Output_control1 = 0 'Open #1 74hc573 output' > Daten = Bus 'Read data' > Output_control1 = 1 'Puts 74hc573 #1 in high impedance state' > return > > #In2 > Output_control2 = 0 'Open #2 74hc573 output' > Daten = Bus 'Read data' > Output_control2 = 1 'Puts 74hc573 #2 in high impedance state' > return > > #In3 > Output_control3 = 0 'Open #3 74hc573 output' > Daten = Bus 'Read data' > Output_control3 = 1 'Puts 74hc573 #3 in high impedance state' > return > > end |
| Antwort schreiben |