Abl-electronic PIC Microcontrollers PIC16 Bedienungsanleitung Seite 263

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 312
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 262
MikroElektronika:
Development
tools
-
Books
-
Compilers
255
page
mikroC
- C Compiler for Microchip PIC microcontrollers
mikroC
making it simple...
Prototype
void Soft_I2C_Start(void);
Description Issues START signal. Needs to be called prior to sending and receiving data.
Requires Soft I²C must be configured before using this function. See Soft_I2C_Config.
Example
Soft_I2C_Start();
Soft_I2C_Start
Prototype
char Soft_I2C_Read(char ack);
Returns Returns one byte from the slave.
Description Reads one byte from the slave, and sends not acknowledge signal if parameter ack is 0,
otherwise it sends acknowledge.
Requires START signal needs to be issued in order to use this function. See Soft_I2C_Start.
Example
tmp = Soft_I2C_Read(0); //Read data, send not-acknowledge signal
Soft_I2C_Read
Seitenansicht 262
1 2 ... 258 259 260 261 262 263 264 265 266 267 268 ... 311 312

Kommentare zu diesen Handbüchern

Keine Kommentare