
|
INFO - FAQ - CC2-Forum - CCPro-Forum |
|
||
|
Oke Stefan thanks for your patient I understand finely the channel selection Can you also explain MAX127adres (you say 80 decimal &h50 ???) I cant find it…. I understand Max127 adres+1 (write and +1 is read) And now my biggest problem I cant order the MAX127 in the Netherlands Conrad.nl, Farnell. Dil, Display electronics, they don’t have it I can order the MAX127, but than I have to order so much that the amount will be 350 euro That is to much for me So now I have almost a good program but I cant order the MAX127 ,New Progr. 4 AD in DEFINE Var1 BYTE[1] DEFINE Var2 BYTE[2] DEFINE AD1 WORD[2] DEFINE AD2 WORD[3] DEFINE AD3 WORD[4] DEFINE AD4 WORD[5] DEFINE Max127adres &h90 'Is still wrong #Start GOSUB programma PRINT"#ON_LCD#"; PRINT"#L101#"; PRINT"1=";AD1; PRINT"#L109#"; PRINT"2=";AD2; PRINT"#L201#"; PRINT"3=";AD3; PRINT"#L209#"; PRINT"4=";AD4; PRINT"#OFF#"; GOTO Start #Programma PRINT"#ON_IIC#"; PRINT"#START#"; PUT Max127adres PUT &B10000000 'CHannel 1 PRINT"#STOP#"; PRINT"#START#"; PRINT Max127adres+1 GET Var1 GET Var2 Var2 = Var2 SHR 4 PRINT"#STOP#"; PRINT"#OFF#"; AD1 = ((Var1*16) + Var2) PRINT"#ON_IIC#"; PRINT"#START#"; PUT Max127adres PUT &B10010000 'CHannel 2 PRINT"#STOP#"; PRINT"#START#"; PRINT Max127adres+1 GET Var1 GET Var2 Var2 = Var2 SHR 4 PRINT"#STOP#"; PRINT"#OFF#"; AD2 = ((Var1*16) + Var2) PRINT"#ON_IIC#"; PRINT"#START#"; PUT Max127adres PUT &B10110000 'CHannel 3 PRINT"#STOP#"; PRINT"#START#"; PRINT Max127adres+1 GET Var1 GET Var2 Var2 = Var2 SHR 4 PRINT"#STOP#"; PRINT"#OFF#"; AD3 = ((Var1*16) + Var2) PRINT"#ON_IIC#"; PRINT"#START#"; PUT Max127adres PUT &B11000000 'CHannel 4 PRINT"#STOP#"; PRINT"#START#"; PRINT Max127adres+1 GET Var1 GET Var2 Var2 = Var2 SHR 4 PRINT"#STOP#"; PRINT"#OFF#"; AD4 = ((Var1*16) + Var2) RETURN > > Hoi Stefan > > > > Thanks for answering > > I have the Data sheet of the MAX127 but I don’t get it > > I made both the ….. Max127 adres &h90 and put & hee up > > Hi again, > > if you set A0,A1,A2 to ground the adress is 80 dezimal. It can´t get 90 hex!!!!!! > > > good night. > > Stefan, > who will wait until his 3 week old daughter is going to sleep :-) |
| Antwort schreiben |