Abl-electronic PIC Microcontrollers PIC16 Manual do Utilizador Página 276

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 312
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 275
mikroC
- C Compiler for Microchip PIC microcontrollers
mikroC
making it simple...
268
MikroElektronika:
Development
tools
-
Books
-
Compilers
page
Prototype
char Spi_Read(char buffer);
Returns Returns the received data.
Description Provides clock by sending buffer and receives data at the end of period.
Requires SPI must be initialized and communication established before using this function. See
Spi_Init_Advanced or Spi_Init.
Example
short take, buffer;
...
take = Spi_Read(buffer);
Spi_Read
Prototype
void Spi_Write(char data);
Description Writes byte data to SSPBUF, and immediately starts the transmission.
Requires SPI must be initialized and communication established before using this function. See
Spi_Init_Advanced or Spi_Init.
Example
Spi_Write(1);
Spi_Write
Vista de página 275
1 2 ... 271 272 273 274 275 276 277 278 279 280 281 ... 311 312

Comentários a estes Manuais

Sem comentários