Datasheet
Programming PIC Microcontrollers in BASIC - mikroElektronika
5.2.12.2 Man_Receive_Config – Initialization with custom pin
Prototype sub procedure Man_Receive_Config(dim byref Port as byte, dim RXpin as byte)
Description This procedure needs to be called in order to receive signal by procedure Man_Receive. You need to specify
the <Port> and <RXpin> of input signal. In case of multiple errors on reception, you should call
Man_Receive_Init once again to enable synchronization.
Example
Man_Receive_Config(PORTD, 5)
5.2.12.3 Man_Receive – Receives a byte
Prototype
sub function Man_Receive(dim byref Error as byte) as byte
Description Function extracts one byte from signal. If format does not match the expected, <Error> flag will be set True.
Example
dim ErrorFlag as byte
temp = Man_Receive(ErrorFlag) ' Attempt byte receive
5.2.12.4 Man_Send_Init – Initialization with default pin
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/05.htm (82 sur 112)05/11/2004 02:20:53