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: 12 bits AD Wandler Kategorie: Programmierung Basic (von Hans - 23.02.2006 20:42)
 Als Antwort auf Re: 12 bits AD Wandler von Stefan Süßmann - 22.02.2006 22:41
Hans nutzt:  CC1-M-Unit V1.2/2.0
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

Bisherige Antworten:

Re: 12 bits AD Wandler (von Stefan Süßmann - 23.02.2006 22:05)
    Re: 12 bits AD Wandler (von Hans - 25.02.2006 13:47)
        Re: 12 bits AD Wandler (von Windt H.J. - 1.03.2006 23:12)
            Re: 12 bits AD Wandler (von Hans - 4.03.2006 10:49)