
|
INFO - FAQ - CC2-Forum - CCPro-Forum |
|
||
|
> 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 |