Datasheet
Programming PIC Microcontrollers in BASIC - mikroElektronika
Example
Soft_SPI_Read(dat)
5.2.19.3 Soft_SPI_Write – Sends data via SPI
Prototype sub procedure Soft_SPI_Write(dim Data as byte)
Description Routine writes <Data> to SSPBUF and immediately starts the transmission.
Example
Soft_SPI_Write(dat)
5.2.20 Software UART Library
BASIC provides routines which implement software UART. These routines are hardware independent and can be used with any
MCU. You can easily communicate with other devices via RS232 protocol . Simply use the functions and procedures described
below.
5.2.20.1 Soft_UART_Init – Initializes UART
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/05.htm (106 sur 112)05/11/2004 02:20:55