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 - 25.02.2006 13:47)
 Als Antwort auf Re: 12 bits AD Wandler von Stefan Süßmann - 23.02.2006 22:05
Hans nutzt:  CC1-M-Unit V1.2/2.0
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

Bisherige Antworten:

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)