User manual
384
mikoBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
Man_Send
Man_Synchro
Prototype
sub procedure Man_Send(dim data as 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
dim msg as byte
...
Man_Send(msg)
Notes Baud rate used is 500 bps.
Prototype
sub function Man_Synchro() as 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
dim man__half_bit_len as word
...
man__half_bit_len = Man_Synchro()
Notes None.