circuit_projects

Circuit Projects

Blogger

EEWeb Stats

Circuit's Blog :

Return to Blog

RS232 to I2C Interface Conversion

Figure:1

Figure 1 

The microchip PIC microcontroller incorporates an I2C interface on one side using bit-banging on a 12F675 device and an RS232 serial interface on the other.

The RS232 in this device refers to waveforms that operate at 5V TTL levels and could destroy the PIC device if it operates at 12V levels but between them, an appropriate converter must be used. The diagram of the circuit is simple since it only has the ICSP socket with one diode and one resistor, the PIC with decoupling capacitor, the I2C interface with connector and two pull-up resistors, and the RS232 interface as the connector.

During the operation, it is possible to build up an I2C command in the PIC RAM by sending commands on the RS232 interface. The PIC will run via stored sequence and send it out on the I2C interface after the final byte is sent on the RS232 interface. This stores any data that has been read back. And the whole thing is copied back out of the RS232 interface when the I2C command has finished.

A stripboard is used by the circuit with DIL packaged IC and usual through-hole passive components.

Read more

Tags: RS232, I2C, interface, conversion,

Comments on this post:

There are currently no comments.

Login or Register to post comments.
 
Click Here