
|
INFO - FAQ - CC2-Forum - CCPro-Forum |
|
Hallo, hmm tja.. also, ich hab die Pullups nun gesetzt - die beiden Leitungen führen nun nach dem Start ständig 5V und man kann nun wirklich schlechter erkennen, was sich auf dem Bus tut.. aber mein lieber PCF will immer noch nicht.. Programm: ' Zielplattform OPTION CC2.0 ' Deklarationsteil define TEMPVAL as byte define p1 as port[4] define p2 as port[25] define p3 as port[74] define q17 as port[16] define press as ad[1] define powerok as ad[2] define switch as byte[10] CONFIG.INIT CONFIG.GET TEMPVAL CONFIG.PUT (TEMPVAL or 01111000b) CONFIG.OFF q17 = on Print "online" #switch do if rxd then get switch if switch =1 then p1 =on else p1 =off if switch =2 then p2 =on else p2 =off if switch =3 then p3 =on else p3 =off if switch =17 then q17 =off if switch =18 then q17 =on if switch =16 then goto exit do loop #adout if switch=16 then print "Druck: "& press if switch=16 then print "Spannung: " & powerok switch = 0 goto switch *achselzuck* Grüße, Martin |
| Antwort schreiben |