MikroElektronika PIC Microcontrollers PIC16 Ficha de datos Pagina 124

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 194
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 123
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
Vista de pagina 123
1 2 ... 119 120 121 122 123 124 125 126 127 128 129 ... 193 194

Comentarios a estos manuales

Sin comentarios