AVR does not have SPI, How to implement in Software to communicate with ADC?

I am quite new to this topic. I don't have the luxuary to use any SPI registers to send and receive data in Atmel 328 chip. I wanna read data from 4 light sensors which are connected to analog to digital convertor TLC541IN. I wish to read data from light sensors and implement a light following robot. How to implement SPI suing C/C++ without using the built in shift registers dedicated for SPI.

Your help is greatly appreciate in advance.

What Atmel chip are you using?

...R

Atmel328. SPI ports are currently occupied with the motor shilled.

Do you mean that the motor shield uses SPI, or simply that it prevents access to the SPI pins?

If the latter it is a good reason not use the shield :slight_smile:

Post a link to the datasheet for the shield you are using.

...R