Abl-electronic PIC Microcontrollers PIC16 Bedienungsanleitung Seite 228

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 312
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 227
mikroC
- C Compiler for Microchip PIC microcontrollers
mikroC
making it simple...
220
MikroElektronika:
Development
tools
-
Books
-
Compilers
page
Prototype
void Man_Receive_Config(char *port, char rxpin);
Description The function prepares PIC for receiving signal. You need to specify the port and
rxpin (0–7) 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, 6);
Man_Receive_Config
Prototype
void Man_Receive_Init(char *port);
Description The function prepares PIC for receiving signal. You need to specify the port; rxpin is
pin 6 by default. In case of multiple errors on reception, you should call
Man_Receive_Init once again to enable synchronization.
Example
Man_Receive_Init(&PORTD);
Man_Receive_Init
Prototype
void Man_Receive(char *error);
Returns Returns one byte from signal.
Description Function extracts one byte from signal. If signal format does not match the expected,
error flag will be set to 255.
Requires To use this function, you must first prepare the PIC for receiving. See
Man_Receive_Config or Man_Receive_Init.
Example
temp = Man_Receive(error);
if (error) { ...
/* error handling */
}
Man_Receive
Seitenansicht 227
1 2 ... 223 224 225 226 227 228 229 230 231 232 233 ... 311 312

Kommentare zu diesen Handbüchern

Keine Kommentare