Blockset described on this wiki is deprecated since 2012.

For Model Based Design (MBD), use the free MPLAB Device Blocks for Simulink, tool from Microchip.
Updated Rapid Control Prototyping (RCP) custom projects are published at: https://lubin.kerhuel.eu.

DsPIC Block/Rx Input

From http://www.kerhuel.eu/wiki - Simulink device driver Blockset for dsPIC / PIC24 / PIC32 Microcontrollers --[[User:LubinKerhuel|LubinKerhuel]] 12:40, 3 September 2009 (UTC)
< DsPIC Block
Revision as of 22:39, 26 May 2008 by LubinKerhuel (talk | contribs) (New page: The Rx Input block receive one byte (uint8 scalar) at each step. If several bytes have been received during the previous time step, only the first one will be available in the current step...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The Rx Input block receive one byte (uint8 scalar) at each step. If several bytes have been received during the previous time step, only the first one will be available in the current step execution time.

If no bytes have been received, the is set to the output default value. The block can be a blocking function : stop the step execution until one byte is received ( not recommended due to possible step violation).

Dialog Box Parameters

n° UART

UART Used

Sample Time

-1 for inherited

Blocking Function

if checked, the block will stop execution of others blocks until one byte is received

Output Default

If no data has been received, the block will output the value defined here. Received Output Flag

If checked, one logical output appears. Its value is

  • 1 if one byte has been received,
  • 0 if no data has been received ; the output value is the "Output Default" value.