Das Open-Control-Projekt - Die Alternative zur C-Control-I


Das Forum zur C-Control-1
Welche C-Control-Varianten existieren?
Übersicht - Suchen - Neueste 50 Beiträge - Neuer Beitrag - Login - Registrieren
INFO - FAQ - CC2-Forum - CCPro-Forum 

 Re: Ergänzung Kategorie: Programmierung Basic (von Gerd - 6.01.2006 18:54)
 Als Antwort auf Re: Ergänzung von Windt H.J. - 6.01.2006 18:32
Gerd nutzt:  CC1-M-Unit V1.1, CC1-M-Unit V1.2/2.0
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

Bisherige Antworten:

Re: Ergänzung (von Windt H.J. - 6.01.2006 19:08)
    Re: Ergänzung (von Gerd - 6.01.2006 19:20)
        Re: Ergänzung (von Windt H.J. - 6.01.2006 19:27)
            Re: Ergänzung (von Gerd - 6.01.2006 19:40)
                Re: Ergänzung (von Windt H.J. - 6.01.2006 19:47)
                    Re: Ergänzung (von Gerd - 6.01.2006 19:59)
                       Re: Ergänzung (von Windt H.J. - 6.01.2006 20:07)
                          Re: Ergänzung (von Gerd - 6.01.2006 20:20)
                          Re: Ergänzung (von Windt H.J. - 6.01.2006 20:09)
                             Re: Ergänzung (von Gerd - 6.01.2006 20:26)
                                Re: Ergänzung (von Gerd - 6.01.2006 20:34)
                                   Re: Ergänzung (von Windt H.J. - 6.01.2006 20:56)
                                     Re: Ergänzung (von Gerd - 6.01.2006 21:50)
                                       Re: Ergänzung (von Windt H.J. - 6.01.2006 22:06)
            Re: Ergänzung (von Gerd - 6.01.2006 19:36)