Mikroelektronika MIKROE-742 데이터 시트

다운로드
페이지 532
Man_Send
Man_Synchro
265
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroPASCAL PRO for AVR
CHAPTER 6
Prototype
procedure Man_Send(tr_data: 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
var msg : byte;
...
Man_Send(msg);
Prototype
function Man_Synchro(): 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
var man__half_bit_len : word ;
...
man__half_bit_len := Man_Synchro();