
|
INFO - FAQ - CC2-Forum - CCPro-Forum |
|
||
|
Thanks Stefan But I don't understand it already How do I get all 8 Ad variabele in 8 WORD's 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 |