- Name:
-
hspiin
- Syntax:
-
HSPIIN (variable, {,variable,...}) HSHIN (variable, {,variable,...})
Variable - receives the data.
- Description:
-
The hspiin (hshin also accepted by the compiler) command shifts in a data byte using the SPI hardware pins.
This command receives SPI data via the microcontroller's SPI hardware pins. This method is faster and more code efficient than using the 'bit-banged' spiin command. When connecting SPI devices (e.g. EEPROM) remember that the data-in of the EEPROM connects to the data-out of the PICAXE, and vice versa. Note that a hspisetup command must be issued before this command will function.