Instructions
340Libraries
© 2013 Conrad Electronic
AbsDelay(5000);
Servo_Set(7, 1000); // Servo Portbit 7 1000µs
AbsDelay(5000);
Servo_Set(7, 0); // all Servos off
Servo_Set(6, 0);
Servo_Set(5, 0);
}
5.23 SPI
The Serial Peripheral Interface Bus or SPI bus is a synchronous serial data link standard named by
Motorola that operates in full duplex mode. Devices communicate in master/slave mode where the
master device initiates the data frame. Multiple slave devices are allowed with individual slave select
(chip select) lines.
5.23.1 Mega
5.23.1.1 SPI_Disable
SPI Functions
Syntax
void SPI_Disable(void);
Sub SPI_Disable()
Description
The SPI will be disabled and the corresponding ports can be used otherwise.
Disabling the SPI interface will prevent usage of the USB interface on the application board. On the
other hand, if you don't use the USB interface, SPI_Disable() will allow to use these ports for other pur-
poses.
Parameter
None