SynchroSlave
 
 
 Bean SynchroSlave
 
Slave for synchronous serial communication

Parameters of the bean.

Properties:
  • Bean name - Name of the bean.
  • Channel - Channel used for a serial synchronous communication.
  • Interrupt service/event - Bean may or may not be implemented using interrupts.
    • Interrupt - Special interrupt generated by the communication process.
    • Interrupt from input - Interrupt from the serial receiver.
    • Interrupt input priority - Receiver interrupt priority.
    • Interrupt from output - Interrupt from serial transmitter.
    • Interrupt output priority - Transmitter interrupt priority.
    • Input buffer size - Input buffer size in bytes. DMA mode: If DMA controller is available on the selected CPU and receiver is configured to use DMA controller then this property is disabled (read-only). The input buffer has to be allocated by user and it is specified in RecvBlock method.
    • Output buffer size - Output buffer size in characters. DMA mode: If DMA controller is available on the selected CPU and transmitter is configured to use DMA controller then this property is disabled (read-only). The output buffer has to be allocated by user and it is specified in SendBlock method.
  • Settings - Common bean setting.
    • Settings for HCS08, HCS12X and HCS12 derivatives.
      • Bidirectional mode - Allows enabling/disabling a bidirectional mode. If bidirectional mode enabled, only output pin is used for the communication. If it is disabled, both input and output pins are used.
    • Input pin - Group of properties for input signal.
    • Output pin - Group of properties for output signal.
    • Clock pin - Group of properties for clock signal.
      • Pin - Output pin for the clock.
      • Pin signal - Signal name of the clock pin.
    • Slave select pin - Allows enabling or disabling of the Select slave pin signal - available when it is supported by HW.
      • Pin - Pin reserved for the selection of Master/Slave mode.
      • Pin signal - Signal name of the slave select pin.
    • Clock edge - Shift edge of the clock signal. Output data will be shifted on the selected edge polarity.

      There are 6 options:

      • rising or falling edge: One of the following edge type will be selected: rising or falling
      • rising edge: Rising edge required
      • falling edge: Falling edge required
      • both edges: Both edges (rising and falling) required
      • high level: High level of the signal
      • low level: Low level of the signal

    • Empty character - A character being sent when no data are ready to be transmitted.
      DMA mode:
      If DMA controller is available on the selected CPU and the transmitter is configured to use DMA controller then the empty character is not sent when no data are ready to be transmitted.
    • Ignore empty char. - When an empty character is received, it is ignored.
      DMA mode:
      If DMA controller is available on the selected CPU and the receiver is configured to use DMA controller then empty characters cannot be ignored.
    • Send MSB first - Order in which bits are transmitted (MSB: most significant bit, LSB: less significant bit).
    • Settings for HC08, HCS08, HCS12, HCS12X and 56800 derivatives.
      • Shift clock idle polarity - If the communication does not run, the clock signal will be set to the selected level either low or high.
    • Settings for HCS08, HCS12X and HCS12 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 and the power consumption of MCU will reduce.
  • Initialization - Initial settings (after power-on or reset).



Processor ExpertTM and Embedded BeansTM are registered trademarks of UNIS, Ltd.
©1997-2005, UNIS, Ltd.