@ KDEV 2007 Some Rights Reserved
I2C 4 ch 8 bit A/D converter PCF8591 control extension for PHP

I2C
is a PHP extension that provide you the commands to control I2C bus on the fox board from your PHP script.

The extension use:

OG25 pin J7.13 for the clock line (SCL)
IOG24 pin J7.21 for the data line (SDA)

The maximum reachable speed is about 50KHz.

About the PCF8591
The PCF8591 is a single-chip, single-supply low power 8-bit CMOS data acquisition device with four analog inputs, one analog output and a serial I2C-bus interface.

Philips PCF8591 datasheet


Click on the picture to enlarge.

The illustration is provided by:
http://www.acmesystems.it/?id=10

Command Description
i2c_printf() read the 4 channel of PCF8591 i2c_printf() the return value of this function is:
CH0 = 0.00v (00 hex) CH1 = 0.00v (00 hex) CH2 = 0.00v (00 hex) CH3 = 0.00v (00 hex)

Where CH is the channel of PCF8591.

Example:

<?
echo i2c_printf();
?>

print on the sceen: CH0 = 0.00v (00 hex) CH1 = 0.00v (00 hex) CH2 = 0.00v (00 hex) CH3 = 0.00v (00 hex)


Configuration files PATH
I2C
configuration: /etc/php.ini

LOOK also LCD HITACHI HD44780 control extension for PHP
LOOK also GPIO control extension for PHP

For more info go to ACME SYSTEMS WEBSITE I2C user space bit banging example


SMS MMS FoxBox the appliance based on foxserve for messaging management







foXServe is Developed by KDEV a Davide Cantaluppi company and running on ACME SYSTEMS srl Hardware.

@ KDEV 2007 Some Rights Reserved
foXServe firmware is free
foXServe firmware
Download it now!


LICENSES

Apache/1.3.37 Server

Copyright 2007 Kdev of Davide Cantaluppi Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

PHP 5.0.5
"This product includes PHP software, freely available from <http://www.php.net/software/>"

MOD_DAV
This product includes software developed by Greg Stein <gstein@lyra.org> for use in the mod_dav module for Apache (http://www.webdav.org/mod_dav/).