Rens
Joined: 09 Sep 2010 Posts: 9 Location: Barendrecht
|
Posted: Sun Jul 25, 2021 3:38 pm Post subject: software SPI problem on ATMega88 |
|
|
Hello,
I have problems configuring a software SPI on a ATmega 88.
I am currently working on a RF two way communication system using two RFM12 (5Vdc version) tranceiver modules.
The system it currently runs on is a ATmega16 with te hardware SPI, and a ATmega88 with a software SPI.
both boards are running on 8MHz.
The setting for the HW SPI is:
Config Spi = Hard , Interrupt = Off , Data_order = Msb , Master = Yes , Polarity = Low , Phase = 0 , Clockrate = 4 , Noss = 1
What is the compatible setting for the software SPI for communicating with a RFM12 tranceiver ?
At this moment i am using:
Config Spi = Soft , Din = Pinc.1 , Dout = Portc.2 , Ss = None , Clock = Portc.0 , Spiin = 0
this part of te settings i have remarked for now, ', Mode = 1 , Speed = 2 , Setup = 1
I know there is no relation between the two SPI systems because they are communicating each with there own slave.
(BASCOM-AVR version : 2.0.8.1 , Latest : 2.0.8.4 ) |
|