Mehrere Ausgänge über Alias zuasmmenfügen

OP (Firma: Mapi Modellbau) #4080665
Lesenswert?

Guten Morgen,

Ich würde gerne über einen Alias mehrer Ausgänge zusammenfügen.. Geht 
das so?


$regfile = "m1284def.dat"
$Crystal=4000000
$hwstack=40
$swstack=16
$framesize=32
Dim Zaehler As Word

Config Porta = Output
Config Portb = Output
Config Portc = Output
Config Portd = Output

A1 Alias Portb.5
A2 Alias Portb.6
A3 Alias Portb.7
B1 Alias Portb.4
B2 Alias Portb.3
B3 Alias Portb.2
C1 Alias Portb.1
C2 Alias Portb.0
C3 Alias Porta.0
D1 Alias Porta.1
D2 Alias Porta.2
D3 Alias Porta.3
E1 Alias Porta.4
E2 Alias Porta.5
E3 Alias Porta.6
F1 Alias Porta.7
F2 Alias Portc.7
F3 Alias Portc.6
G1 Alias Portc.5
G2 Alias Portc.4
G3 Alias Portc.3
H1 Alias Portc.2
H2 Alias Portc.1
H3 Alias Portc.0
I1 Alias Portd.7
I2 Alias Portd.6
I3 Alias Portd.5

Farbe1 Alias Portb.5 And Portb.4 And Portb.1 And Porta.1 And Porta.4 And 
Porta.7 And Portc.5 And Portc.2 And Portd.7
Farbe2 Alias Portb.6 And Portb.3 And Portb.0 And Porta.2 And Porta.5 And 
Portc.7 And Portc.4 And Portc.1 And Portd.6
Farbe3 Alias Portb.7 And Portb.2 And Porta.0 And Porta.3 And Porta.6 And 
Portc.6 And Portc.3 And Portc.0 And Portd.5

Strebe A Alias Portb.5 And Portb.6 And Portb.7
Strebe B Alias Portb.4 And Portb.3 And Portb.2
Strebe C Alias Portb.1 And Portb.0 And Porta.0
Strebe D Alias Porta.1 And Porta.2 And Porta.3
Strebe E Alias Porta.4 And Porta.5 And Porta.6
Strebe F Alias Porta.7 And Portc.7 And Portc.6
Strebe G Alias Portc.5 And Portc.4 And Portc.3
Strebe H Alias Portc.2 And Portc.1 And Portc.0
Strebe I Alias Portd.7 And Portd.6 And Portd.5

LG marcel
Persönliche Seite #4080721
Lesenswert?

Marcel Pieroth schrieb:
> Ich würde gerne über einen Alias mehrer Ausgänge zusammenfügen.. Geht
> das so?

Warum probierst Du es nicht einfach aus?

Den Quelltext hast Du schon geschrieben, den BASCOM-Compiler hast Du, 
dem jetzt diesen Quelltext vorzuwerfen ist 'ne Aktion von 10 Sekunden.

Dann weißt Du, ob der Compiler das anstandslos schluckt.

Wenn es sich fehlerfrei übersetzen lässt, kannst Du es testen -- indem 
Du beispielsweise diverse LEDs an Deine Ports hängst und über Deine 
Alias-Kombinationen verschiedene davon ansteuerst.

Geht auch das, hast Du Gewissheit.

Wo also liegt das Problem? Du ... traust Dich nicht?
OP (Firma: Mapi Modellbau) #4080743
Lesenswert?

Peter Dannegger schrieb:
> Marcel Pieroth schrieb:
>
>> Ich würde gerne über einen Alias mehrer Ausgänge zusammenfügen.
>
> Statt unkommentierten Code hinzuwerfen, wäre es sinnvoller, mal den
> Hintergrund der Aktion in Worten zu beschreiben.
> Also was willst Du damit erreichen?
>


Auf die Idee es im Compiler umzuwandeln bin ich auchgekommen aber 
machdem ich eine Fehlerbericht bekommen habe dachte ich mir das jemand 
mit evtl. mit einem Sinvollem komentar zu helfen.

Ich traue mich schon es auzuprobieren aber wenn die Hardware nocht nicht 
komplett ist kann ich dies nicht testen. ;-(

lg

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren