
|
INFO - FAQ - CC2-Forum - CCPro-Forum |
|
||
|
Hoi Stefan Now I know how it Works I have ordered a few samples So I have to wait till I have them Stefan I thank you very much for your help. And much happiness with your baby Hans > > Oke Stefan > > > > thanks for your patient > > I understand finely the channel selection > > Can you also explain MAX127adres (you say 80 decimal &h50 ???) > > A Max127 has a adress 0101 A2 A1 A0 RW > > 01010000 = 80 > 01010010 = 82 > 01010100 = 84 > 01011000 = 88 > > ..and some more. You can use 8 Max127 on one i2c-bus. > > The begining 0101 is fixed and 01010000 = 80 dez. > > > > > 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 > > I had that problem too. You can order two samples for free at the maxim-hp. You just have to answer o lot of questions like "do you want to use them for nuklear weapons?........" > > > > > 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"#STOP#"; <------------------- was missing, but i´m not sure if necessary > > > > PRINT"#START#"; > > PUT Max127adres > > PUT &B10000000 'CHannel 1 > > This is Ch.0, 0-5V, normel operation > > > 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 > > This ist Channel 1 > > > 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 > > OK, Ch.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 > > OK. Ch.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 > > > > Bye Stefan |
| Antwort schreiben |