web log free
This website is no more updated ! New Website

Fast Prototyping tool for 16 bits PIC

 
home home » Embedded Target for dsPIC » Blocks description » Tx Output BackForward

 

Tx Output

Output driver UART device

Description

The Tx Output Output block send the uint8 scalar or vector data throw the UART Tx pin of the microcontroller. The "UART Config" is needed to configure the UART parameters.This is a blocking function : The block will stop execution of current step until all its intput data are stored into the dsPIC 4 byte buffer.
To avoid real time violation, you should send throught the UART less than the max number of characteres that can be send within ont time step ( this value is computed in the UART Configuration dialog box). Also, note that when sending a vector with more than 5 characteres (ie, uint8 or int8 values), the block will wait until the UART send all caracteres minus the remaining 5 that will fill-in the buffer and transmition register at the end execution time of the block. In other word, try to send less than 5 data at once. (you could use several Tx blocks and optimize the execution time order of blocks...)

Dialog Box

n° UART
 

UART Used

Block Ordering Input / Output
 

Create one input and/or output port on simulink. This port is just used to set the order of execution between severals blocks.

The Microchip name PIC, dsPIC, and MPLAB are registered trademarks of Microchip Technology Inc.
MATLAB, Simulink, and Real-Time Workshop are registered trademarks of The MathWorks, Inc.

Lubin Kerhuel 's Website
Contact : [adresse e-mail retirée]