User manual

382
mikoPascal PRO for dsPIC30/33 and PIC24
MikroElektronika
Man_Send
Man_Synchro
Prototype
procedure Man_Send(tr_data : byte);
Description Sends one byte.
Parameters - tr_data: data to be sent
Returns Nothing.
Requires To use this function, the user must prepare the MCU for sending. See Man_Send_Init routine.
Example
var msg : byte;
...
Man_Send(msg);
Notes Baud rate used is 500 bps.
Prototype
function Man_Synchro(): word;
Description Measures half of the manchester bit length with 10us resolution.
Parameters None.
Returns - 0 - if synchronization was not successful.
- Half of the manchester bit length, given in multiples of 10us - upon successful synchronization.
Requires To use this function, you must rst prepare the MCU for receiving. See Man_Receive_Init.
Example
var man__half_bit_len : word;
...
man__half_bit_len := Man_Synchro();
Notes None.