Datasheet

Man_Send
Man_Synchro
250
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroBasic PRO for AVR
CHAPTER 6
Prototype
sub procedure Man_Send(tr_data as byte)
Returns Nothing.
Description
Sends one byte.
Parameters :
-
tr_data: data to be sent
Note: Baud rate used is 500 bps.
Requires
To use this function, the user must prepare the MCU for sending. See
Man_Send_Init.
Example
dim msg as byte
...
Man_Send(msg)
Prototype
sub function Man_Synchro() as word
Returns
- 0 - if synchronization was not successful.
- Half of the manchester bit length, given in multiples of 10us - upon successful
synchronization.
Description Measures half of the manchester bit length with 10us resolution.
Requires
To use this function, you must first prepare the MCU for receiving. See
Man_Receive_Init.
Example
dim man__half_bit_len as word
...
man__half_bit_len = Man_Synchro()