|
|
|
Bean
InternalI2C
|
Internal I2C Communication Interface
Parameters of the bean.
|
Properties:
-
Bean name - Name of the bean.
-
I2C channel - Channel used for I2C communication.
-
Mode selection - This property determines an operating mode of this bean. When selected as "MASTER - SLAVE", this bean is switchable between MASTER and SLAVE mode using method "SetMode" (MASTER mode is default after initialization).
The SLAVE mode requires an interrupt service.
-
Interrupt service/event - Bean uses the interrupt service for the communication. The interrupt service is required in SLAVE mode.
-
Interrupt - This property determines the I2C interrupt.
-
Interrupt priority - This property determines an interrupt priority of the I2C interrupt.
-
Buffers for SLAVE mode - The size of communication buffers for SLAVE mode.
-
Input buffer size - This property determines input buffer size for SLAVE mode. Max. value may be limited by size of available memory on the target system.
-
Output buffer size - This property determines output buffer size for SLAVE mode. Max. value may be limited by size of available memory on the target system.
The value 0 means that the bean does not use any internal buffer and the user buffer passed from SendBlock method is used.
-
MASTER mode - Settings for MASTER mode
-
Polling trials - This property determines how many times an interrupt flag is tested during communication started by method SendChar, SendBlock, RecvChar or RecvBlock methods in polling mode. If the interrupt flag is not detected as set during the trial loop, these methods return ERR_BUSOFF. This property is not available when interrupt service is enabled.
-
Automatic stop condition - If "yes" is selected, the stop condition is automatically sent at the end of the send methods to terminate the communication.
If "no" is selected, the stop condition for send methods has to be sent by the "SendStop" method. This allows to make a combined format of communication on the I2C bus, i.e., the send methods are not automatically terminated by the stop condition. In this case, after any send method it is necessary to call another send or receive method or the "SendStop" method. Warning: it's also necessary to call the SendStop when the MASTER lost the arbitration.
The stop condition is always sent at the end of receive methods.
If HW peripheral doesn't support a repeated start sending, the property is not available in all modes.
Note: Start condition is generated at the beginning of each send/receive method (either start or repeated start).
-
Initialization - Slave initial settings (after power-on or reset).
-
Slave address init - This property determines 7-bit slave address initialization value of a slave device to be communicated with in MASTER mode. The range of the value is from 8 (0001000) to 123 (11111011), the other values are reserved for other purposes of the I2C bus. The address may be changed by SelectSlave method.
-
SLAVE mode - Settings for SLAVE mode
-
Slave address - This property determines slave identification address of this I2C interface. The bean in slave mode uses 7-bit slave addressing. Possible values are from 8 (0000100) to 119 (01110111). The other values are reserved for other purposes of I2C bus, for further information see I2C bus specification.
-
General call address - Slave accepts a general call address (zero address byte)
-
Empty character - A character being sent when no data is ready to be transmitted.
-
Data and Clock - Data and clock signals
-
Settings supported for HCS12, HCS12X, HCS08 and 56800 derivatives only.
-
Internal frequency (multiplier factor) - Select an internal frequency of IIC device. The property affects the SCL frequency and the SDA hold value. According to this property bits 6 and 7 of Frequency divider register are set. The highest frequency of the property means the lowest multiplier factor (mul) and vice versa.
-
Bits 0-2 of Frequency divider register - Select the shift register tap point (bits 0-2 of Frequency divider register). The property affects the SCL frequency and the SDA hold value.
-
Bits 3-5 of Frequency divider register - Select the prescaler divider (Bits 3-5 of Frequency divider register). The property affects the SCL frequency and the SDA hold value.
-
SCL frequency - Calculated SCL frequency from an internal frequency regarding 'bits 0-2 of Frequency divider register' and 'bits 3-5 of Frequency divider register' settings (for information only).
-
SDA Hold - Calculated SDA Hold from an internal frequency regarding 'bits 0-2 of Frequency divider register' and 'bits 3-5 of Frequency divider register' settings (for information only).
-
Settings for HCS12 and HCS12X derivatives.
-
Stop in wait mode - If this property is set to 'yes', the power of the device is allowed to be down in Wait mode (reducing the power consumption of MCU).
-
Initialization - Initial settings (after power-on or reset).
-
CPU clock/speed selection - Settings for the CPU speed modes: identifies whether the bean is supported or not
|
|
|
Processor ExpertTM and Embedded BeansTM are registered trademarks of UNIS, Ltd.
©1997-2005, UNIS, Ltd.
|
|
|