Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

software SPI problem on ATMega88

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
Rens

Bascom Member



Joined: 09 Sep 2010
Posts: 9
Location: Barendrecht

netherlands.gif
PostPosted: Sun Jul 25, 2021 3:38 pm    Post subject: software SPI problem on ATMega88 Reply with quote

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 )
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum