Using Spi To Talk To An Arduino - FIGnition FUZE Hardware Reference Manual

Table of Contents

Advertisement

Functionality Lost
LED
Audio
Keypad
Arduino
AVR
Header
Port
Name
Digital 6
PortD
6
Analog
PortC
4
4
Analog
PortC
3 to
3 to 0
Analog
0

9.3 Using SPI to talk to an Arduino

The easiest way for FIGnition to talk to Arduino (also available from RS) is by setting up
Arduino as an SPI Slave and then sending and receiving data from it. All you need to do is
connect the FIGnition and arduino as shown in Fig 9.4:
Ports Gained
PortC4 and I2C. To use C4 as I/O you must carefully cut
the track between the pins of LK1. This can be done using
a sharp craft knife.
PortD6
PortC0 to PortC3 can be used as I/O pins, but it will con-
fuse the keyboard driver and you won't be able to use the
keypad after making any changes.
Forth Setup as output
64 $BF $2A >port> drop
16 $EF $27 >port> drop
32 $DF $27 >port> drop
Forth output.
64 $BF $2B >port> drop
0 $BF $2B >port> drop
set or reset the pin.
16 $Ef $28 >port> drop
0 $EF $28 >port> drop
set or reset the pin.
32 $F7 $28 >port> drop or
0 $F7 $28 >port> drop to
set or reset the pin.
or
to
or
to

Advertisement

Table of Contents
loading

Table of Contents