i2c_hw.h File Reference

Outputs i2c interfaces (clock+data). More...

Include dependency graph for i2c_hw.h:

Go to the source code of this file.

Functions

void i2c_pulse_0 ()
 i2c test routine
void i2c_pulse_1 ()
 i2c test routine
void i2c_setup_io ()
 Setup ports and pins for i2c output.
void i2c_write (uns8 data)
 Send a byte of data using software i2c.
void i2c_write_lsb (uns8 data)
 Send a byte of data using software i2c.

Detailed Description

Covers standard i2c-like interfaces (clock + data) and Sure Electronics displays which are a little different


Function Documentation

void i2c_pulse_0 (  ) 
void i2c_pulse_1 (  ) 
void i2c_setup_io (  ) 

Setup ports and pins for i2c output

Setup ports and pins for i2c output.

Set port and pins correctly for I2C communication

00235                     {
00236     make_output(i2c_scl_port, i2c_scl_pin);
00237     make_input(i2c_sda_port, i2c_sda_pin);
00238 }

Here is the caller graph for this function:

void i2c_write ( uns8  data  ) 

Sends a byte of data MSB first, data only changes on clock low

void i2c_write_lsb ( uns8  data  ) 

Sends a byte of data LSB first, data only changes on clock low


Generated on Fri Aug 19 09:06:05 2011 for Pic Pack Library by  doxygen 1.6.1