Download Print this page

COPTONIX I2C-RS232-Adapter Manual

I2c rs232 adapter (slave)

Advertisement

Quick Links

I2C RS232 Adapter
(SLAVE)
Manual
Luxemburger Str. 31
D – 13353 Berlin
Phone: +49 – (0)30 – 61 74 12 48
Fax: +49 – (0)30 – 61 74 12 47
www.coptonix.com
support@coptonix.com

Advertisement

loading
Need help?

Need help?

Do you have a question about the I2C-RS232-Adapter and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for COPTONIX I2C-RS232-Adapter

  • Page 1 I2C RS232 Adapter (SLAVE) Manual Luxemburger Str. 31 D – 13353 Berlin Phone: +49 – (0)30 – 61 74 12 48 Fax: +49 – (0)30 – 61 74 12 47 www.coptonix.com support@coptonix.com...
  • Page 2 The data, which a serial device receives (e.g. PC, microcontroller), can be processed and then sent back to the I2C-RS232-Adapter. Here the data packet can be also maximally 128 bytes. So that the I2C-RS232-Adapter can get the function of a master, the I2C-RS232-Adapter controls two Interrupt outputs.
  • Page 3: Slave 1

    2. Applications 2.1 One I2C-Master – multiple RS232 devices I²C-Bus / 5V / GND I2C- RS232-Adapter (SLAVE) Slave 1 Slave 2 Software Slave 3 RS232 Slave ... I2C- RS232-Adapter (SLAVE) Micro- Controller RS232 MASTER Rev1.4 April 2014...
  • Page 4: Table Of Contents

    2.1 Multiple I2C-Master – one RS232 device I²C-Bus / 5V / GND Slave 1 Slave 2 Slave 3 I2C- RS232-Adapter (SLAVE) Slave ... Software MASTER 1 RS232 MASTER 2 MASTER… Rev1.4 April 2014...
  • Page 5: Slave

    3. Interface RS232 port for communication with a PC (RxD, TxD, GND) • I²C-Interface • Pin 1: External pull-up voltage V (2V – 15V) Pin 2: Supply voltage +5V Pin 3: Ground Pin 4: I2C – SCL Pin 5: I2C –SDA Pin 6: Interrupt –...
  • Page 6 4. Dimension (mm) Rev1.4 April 2014...
  • Page 7 5. Characteristics Min. Max. Unit Power-Supply Supply Voltage Supply Current I2C-Bus pins (SCL, SDA) External Pull-up Voltage High-State Input Voltage 0.58V pull-up Low-State Input Voltage 0.42V pull-up Limiting values Interrupt pins Input Voltage Output Voltage DD(3,3V) Power-Supply Supply Voltage Temperature operating temperature °C Rev1.4 April 2014...
  • Page 8 6. I2C Commands (Only I2C-controlled devices / Part No. #020102) 6.1 Command Overview Command Description Value TransmitData Transmit data bytes (from I2C) over UART 0x74 ReadData Read data bytes received from UART 0x72 ReadCount Read count of received bytes (from UART) 0x63 SetSlvAdr Set a new slave address to temporary register...
  • Page 9 6.2.2 ReadData This command is used for reading data that were received from UART and temporary written into internal RAM. ReadData command (0x72) Byte content Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Slave Address ReadData ReadData Response...
  • Page 10 6.2.4 SetSlvAdr The default slave address is 0xFE (1111 1110). The “SetSlvAdr” command allows to change the slave address of the adapter. SetSlvAdr command (0x41) Byte content Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Slave Address SetSlvAdr Slave address...
  • Page 11 4.2.7 SetBaud sets the baud rate of the UART. SetBaud command (0x44) Byte content Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Slave Address SetBaud Baud Rate Baud (2:0) Baud Baud Rate Bit2 Bit1 Bit0 2400 4800...
  • Page 12 4.2.9 ResetBuffers deletes UART and I2C temporary RAM data. SaveInitSlvAdr command (0x66) Byte Content Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Slave Address ResetBuffers 4.2.10 ReadVersion reads the version of the adapter. ReadVersion command (0x76) Byte Content...
  • Page 13 4.2.12 GetUARTMode reads UART operation mode. GetUARTMode command (0x47) Byte Content Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Slave Address (W) GetUARTMode GetUARTMode Response Byte Content Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Slave address (R) Slave address Slave address of the selected device...
  • Page 14 6.2.15 SetUARTTimeOut Sets UART’s timeout interval. TimeOut is the w ait time in milliseconds after receiving the last character on the UART before the received data is forwarded to the I2C output. SetUARTTimeOut command (0x4A) Byte content Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Slave Address SetSlvAdr TimeOut...
  • Page 15 7. ASCII Commands (Only RS232-controlled devices / #020101) Command Code Description Hex Char Parameter CMD + Data (->RS232) Response (<- RS232) GetSlaveAddress* 0x61 ’a’+<CR> ’61’+’XX’+<CR> Read Slave address ChangeSlaveAdress * 0x63 ’c’+’XX’+<CR> ’63’+<CR> Change Slave Address SaveSlaveAddress 0x73 ’s’+<CR> ’73’+<CR> Save Slave address into EEPROM WriteData ** 0x77...