Mikroelektronika MIKROE-742 데이터 시트
Library Routines
- Man_Receive_Init
- Man_Receive
- Man_Send_Init
- Man_Send
- Man_Synchro
- Man_Break
- Man_Receive
- Man_Send_Init
- Man_Send
- Man_Synchro
- Man_Break
The following routines are for the internal use by compiler only:
- Manchester_0
- Manchester_1
- Manchester_Out
- Manchester_1
- Manchester_Out
Man_Receive_Init
263
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroPASCAL PRO for AVR
CHAPTER 6
Prototype
function Man_Receive_Init(): word;
Returns
-
0
- if initialization and synchronization were successful.
-
1
- upon unsuccessful synchronization.
Description
The function configures Receiver pin and performs synchronization procedure in
order to retrieve baud rate out of the incoming signal.
order to retrieve baud rate out of the incoming signal.
Note: In case of multiple persistent errors on reception, the user should call this
routine once again or Man_Synchro routine to enable synchronization.
routine once again or Man_Synchro routine to enable synchronization.
Requires
Global variables :
-
MANRXPIN
: Receive line
-
MANRXPIN_Direction
: Direction of the receive pin
must be defined before using this function.
Example
// Initialize Receiver
var MANRXPIN : sbit at PINB.B0;
var MANRXPIN_Direction : sbit at DDRB.B0;
...
Man_Receive_Init();
var MANRXPIN : sbit at PINB.B0;
var MANRXPIN_Direction : sbit at DDRB.B0;
...
Man_Receive_Init();