Live Chat Not Available: Create Service Request

Embedded Component: InternalI2C  Favorite



This Embedded Component encapsulates the internal I2C communication interface. The implementation of the interface is based on the Philips I2C-bus specification.

This Embedded Component can be purchased for $125 and added to the Special and Standard Editions.Please note, this Embedded Component is included in the CodeWarrior Development Suite - Professional Edition.


Features


Interface features:

  • MASTER mode
    • Multi master communication
    • The combined format of communication possible (see "Automatic stop condition" property)
    • 7-bit and 10-bit (if supported by HW) slave addressing
    • Acknowledge polling provided
    • Holding of the SCL line low by slave device is recognized as 'bus busy'
    • Lost of arbitration and no-ACK detected
  • SLAVE mode
    • 7-bit and 10-bit (if supported by HW) slave addressing
    • General call address detection provided

NOTE: I2C bus lines are open collector (open drain), therefore a pull-up resistor is necessary on both lines.

Version specific information for S08 and ColdFire V1 derivatives:
After reset value of IO pin features "Drive strength" and "Slew rate" (some HCS08 derivatives - Drive strenght = Low and Slew rate = yes) may affect the output signal so, that communication is unreliable or does not work at all depending on a characteristics of the circuitry connected to the pin. It is possible to change these features in Bean Inspector of the CPU bean -> Internal peripherals -> I/O module.

Version specific information for S08 and ColdFire V1 derivatives and peripherals supporting 10-bit addressing feature:

  • If 10-bit addressing feature is used and the bean is set to the SLAVE mode, data values that agrees to the mask '11110xxx' cannot be transmitted/received. These values are reserved for address transmission.
  • When the SLAVE is about to transmit data using 10-bit addresing mode, both OnWriteReq and OnReadReq occurs. First OnWriteReq event is called after 10-bit address transmission, then after repeat start and high address byte transmission OnReadReq event comes and data are read out from SLAVE (SLAVE sends data). When the SLAVE is about to receive data, only OnWriteReq event occurs.

Version specific information for HC08 derivatives:
OnByteTransfer event is not invoked in MASTER receive mode after address tranmission, because MCU does not support this feature. The event is invoked only after a byte transmission or reception.

This Embedded Component can generate code to support the following functionality:

  • Enable
  • Disable
  • EnableEvent
  • DisableEvent
  • SendChar
  • RecvChar
  • SendBlock
  • RecvBlock
  • SendStop
  • ClearTxBuf
  • ClearRxBuf
  • GetCharsInTxBuf
  • SelectSlave
  • GetCharsInRxBuf
  • SelectSlave10
  • SelectSpecialCommand
  • GetSelected
  • SetMode
  • GetMode
  • SetSecondSlvAddr
  • GetSecondSlvAddr
  • CheckBus

Related Software and Tools


  • CW-MICROCONTROLLERS: CodeWarrior for Microcontrollers (Classic IDE) - RS08/HC(S)08, ColdFire V1
  • PROCESSOR-EXPERT: Processor Expert Software – Integrated with CodeWarrior Tools
  • CW-HCS12X: CodeWarrior Development Studio for HCS12(X) Microcontrollers (Classic IDE)

Supported Devices



Current Updates and Releases


This Software Includes

Connect With Us