Go Down

Topic: Using (HW) SPI and Serial at the same time? (Read 1 time) previous topic - next topic

p.perkmann

Jul 02, 2011, 04:12 pm Last Edit: Jul 02, 2011, 04:54 pm by PhilPerkins Reason: 1
Hi, sorry for the newbie question...

I have an Arduino (Atmega8-based) and need to read the serial data from a RF Module
and pass that value on to a digital pot over SPI.

Am I right in thinking that both the serial library and the SPI library are using the MISO/MOSI Arduino pins?
How can I use both interfaces at the same time?

Thanks in advance.
Phillip

PaulS

Quote
Am I right in thinking that both the serial library and the SPI library are using the MISO/MOSI Arduino pins?

No. Where did you get that idea? The serial port is pins 0 and 1 on the Arduino. These pins have nothing to do with SPI.

Quote
How can I use both interfaces at the same time?

Easy. As Nike says - just do it.
The art of getting good answers lies in asking good questions.

p.perkmann


No. Where did you get that idea? The serial port is pins 0 and 1 on the Arduino. These pins have nothing to do with SPI.


Uuupss... I've been working with ATTiny13s and Bascom lately, guess that messed up my brain :-).
Thanks a ton and sorry.

Go Up