Serial Programming, SPI and ATmega

Jul 25, 2004 2 Replies

Dear all,



I am trying to send commands to a max6952 LED driver via SPI with my microcontroller (ATmega8) which has SPI, however I have never writtern programing for serial communication, and I don't know were to start. Would anyne be kind enough to guide me the write direction (documentation, website...). I can't find anything on google.



Can I use general pins on the microcontroller? Or should I use the SPI ports on the uC? How do I create the clk?



Any help is greatly appreciated.



Shahin


Ummm, have you tried looking at the datasheet for the ATMega8? There's even sample code there.

Do you know the website

formatting link
? There are forums with thousands of questions and answers about AVR programming. Perhaps you will find a user project for your purpose in the database.

I didn't use the SPI hardware in my projects because it is also used for in circuit programming. In my telescope driver (mega128) I control some microstepping motor drivers serially and did it completely in software. Look at

formatting link
for more details.

Martin

"samad" schrieb im Newsbeitrag news:XIFMc.105042$Mr4.17350@pd7tw1no...

ports

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required