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 Stefan Süßmann - 14.02.2006 9:50)
 Als Antwort auf Re: 12 bits AD Wandler von Hans - 13.02.2006 21:54
> Thanks Stefan
>
> But I don't understand it already
> How do I get all 8 Ad variabele in 8 WORD's

> >            IIC.send chsetting   There you tell the Max127 which channel you want to read out.



> And I only progr. conrad C-control/basic entwicklung
> And I donÂ’t understand the command return zwischenwert
> I hope that you can help me again
> my used range is 0-5V for all AD inputs,
> I go away for a few day so I cant react before fryday
>
> Hans
>
> > > Hallo
> > > Thanks.
> > > The Max 127 is a much better chip
> > > But I donÂ’t understand anything of the 12C
> > > Do you have a program for the Max127
> > >
> >
> > '------------------------------ function max127auslesen --------------------------------------------------------
> > function Max127auslesen(chsetting as byte)
> >          IIC.init
> >          IIC.stop
> >          IIC.start
> >            IIC.send max127adresse
> >            IIC.send chsetting
> >          IIC.stop
> >          IIC.start
> >           IIC.send (max127adresse + 1)
> >           IIC.get z1
> >           IIC.get z2
> >           z2 = z2 shr 4
> >         IIC.stop
> >       IIC.off
> >     zwischenwert = ((z1*16) + z2)    
> >    return zwischenwert
> > end function
> >
> >
> > z1-z4 are bytes that i use global. max127adresse is the set adress of the max127 and chsetting sets the number of the AD-channel and the used range (0-5V, 0-10V,...shown in the datasheet).
> >
> > Stefan

 Antwort schreiben

Bisherige Antworten: