Download User manual - MikroElektronika

Transcript
mikroC PRO for PIC32
Man_Send
Prototype
void Man_Send(unsigned char tr_data);
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
Notes
unsigned int msg;
...
Man_Send(msg);
Baud rate used is 500 bps.
Man_Synchro
Prototype
unsigned int Man_Synchro();
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 first prepare the MCU for receiving. See Man_Receive_Init.
Example
Notes
357
unsigned int man__half_bit_len;
...
man__half_bit_len = Man_Synchro();
None.
MikroElektronika