Atmega162 SPI connection

General discussion on mikroBasic PRO for AVR.
Post Reply
Author
Message
constantine34
Posts: 1
Joined: 29 Aug 2016 21:06

Atmega162 SPI connection

#1 Post by constantine34 » 07 Sep 2016 01:00

Hi,

I am trying to establish an SPI connection between teo ATmega162 but I can not succeed.
Can you give me a code example for the master and the slave? Thanks.

User avatar
lana.arsic
mikroElektronika team
Posts: 1715
Joined: 15 Jan 2016 12:50

Re: Atmega162 SPI connection

#2 Post by lana.arsic » 07 Sep 2016 14:19

Hi constantine34,

Welcome to the MikroE forum.

For Master mode, you can take a look in example DAC provided in the compiler,
you can find it in installation folder, for example in:

C:\Users\Public\Documents\Mikroelektronika\mikroBasic PRO for AVR\Examples\Extra Boards\DAC (SPI)

For Slave mode you may find this thread useful:

http://forum.mikroe.com/viewtopic.php?f ... 69#p113869

Best regards,
Lana

Post Reply

Return to “mikroBasic PRO for AVR General”