get average voltage
Posted: Tue Nov 06, 2012 6:08 pm
Hi
I have to get the average value of 4 inputs to a philips pcf8591 using I2C and a 16F88. However I have read that the pic cant handle I2C that well and I will have ' bit bang' the data. I dont really know what this means.If anyone could give me some idea of the c code I would be very grateful.
the pcf is a a/d d/a converter.I have to take four inputs, read the digital data into the pic, get the average and send it back to the pcf that sends out the average analog output.
I have to get the average value of 4 inputs to a philips pcf8591 using I2C and a 16F88. However I have read that the pic cant handle I2C that well and I will have ' bit bang' the data. I dont really know what this means.If anyone could give me some idea of the c code I would be very grateful.
the pcf is a a/d d/a converter.I have to take four inputs, read the digital data into the pic, get the average and send it back to the pcf that sends out the average analog output.