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:54)
 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.

                You have to read each ad-channel in that way. Have you seen the datasheet?


> And I only progr. conrad C-control/basic entwicklung

I use basic++ but it will work in ccbasic as well if you use the ccbasic commands.

> And I donÂ’t understand the command return zwischenwert

OK i forgot that :-) "zwischenwert" is a word that returns the AD-value 0-4096

> I hope that you can help me again
> my used range is 0-5V for all AD inputs,

No problem. you can use all AD-channels at 0-5V.

> I go away for a few day so I cant react before fryday
>
> Hans


Stefan


>
> > > 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:

Re: 12 bits AD Wandler (von Hans - 17.02.2006 20:47)
    Re: 12 bits AD Wandler (von Stefan Süßmann - 20.02.2006 8:35)
        Re: 12 bits AD Wandler (von Hans - 22.02.2006 20:21)
            Re: 12 bits AD Wandler (von Stefan Süßmann - 22.02.2006 22:41)
                Re: 12 bits AD Wandler (von Hans - 23.02.2006 20:42)
                    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)
            Re: 12 bits AD Wandler (von Stefan Süßmann - 22.02.2006 22:21)
        Re: 12 bits AD Wandler (von Hans - 22.02.2006 20:20)