Baby Orangutan SPI

I haven’t used the SPI protocol before, and I’m just now starting to read up on it.

Has anyone connected an external SPI device to an Orangutan or Baby Orangutan? Since the dedicated SS pin (PB2) is connected to the H-Bridge chip (since its also the dedicated OC1B pin), I was wondering how to go about using another IO pin as slave select, I imagine there is a straightforward way to do this, either by redirecting some register or by explicitly controlling the pin in software.

-Adam

Unfortunately, as you’ve noticed, the mega48/88/168 uses the SS pin as one of its PWM outputs. As far as I know, this makes it impossible to use SPI with the Orangutan or Baby Orangutan as slave while still using motor 2.

It should still be possible to use SPI with the Orangutan or Baby Orangutan as master, however. As long as SS (PB2) is an output, the master is happy.

- Ben