User Tools

Site Tools

한국어

cubloc:i2c_cunet_interface:index

I2C(CUNET)

CUNET is a communication protocol for Cubloc peripherals such as the CLCD, GHLCD, CSG modules. (CUNET is same as I2C)

With just 2 pins, SCL and SDA, up to 127 devices can be communicated with simultaneously. CUNET uses Cubloc’s I2C protocol to perform the communication.

To use CUNET, please be sure to add pull up resistors(4.7K each) to the SCL and SDA lines. SCL and SDA pins are in an open-collector configuration, protecting against outside noise. It automatically removes pulses less than 50ns.

When using CUNET, the connector’s pin 1 must be connected to ground, pin 2 to 5V or RESET, pin 3 to SCL, and pin 4 to SDA. This 4 pin configuration is standard for all CUNET interfaces.

When using CUNET, the Cubloc core module will act as the master and the connected device will act as as the slave. All CUNET devices will respond to the Cubloc while in an idle state.

CUNET is a master-slave protocol. Slaves cannot initiate communication with the master. For externally-initiated communication, you must use PAD communication. PAD can receive inputs from other external devices without the need for the Cubloc to initiate communication. Please refer to the On Pad command for more detailed information.

When the device is to be powered from the CUNET bus, pin 2 of the CUNET device should be connected to 5V on the main module:

Pin 2 of a CUNET device can be connected to RESET on the main module when a separate power supply is powering the CUNET device. (Active-low to RESET causes the Cubloc to reset)

CUNET cables can be up to 3 feet in length. For longer distances (up to approximately 1 mile), he Phillips I2C long distance interface chip (P82B96 or P82B715) can be used.

cubloc/i2c_cunet_interface/index.txt · Last modified: 2016/04/14 11:07 (external edit)