Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
March 28, 2024, 07:07:41 19:07


Login with username, password and session length


Pages: [1]
Print
Author Topic: problem with spi !  (Read 2983 times)
0 Members and 1 Guest are viewing this topic.
omidsht
Active Member
***
 Muted
Offline Offline

Posts: 192

Thank You
-Given: 60
-Receive: 16



« on: July 27, 2008, 08:30:28 08:30 »

Hi , i have written a program with fastavr compiler to use spi ,
but if i coonect to SS pins of both avr together it works fine , but when i connect the SS pin of master avr to vcc and SS pin of slave avr to Ground , it does not work or it gets wrong numbers !?! why ?
(i do this because maybe i want to use multi slvae avrs)
please help me !
thanks in advance
OMID Huh
Logged
bezobraznic
Newbie
*
Offline Offline

Posts: 20

Thank You
-Given: 83
-Receive: 26


« Reply #1 on: July 27, 2008, 09:01:36 09:01 »

In master mode, leave SS pin unconnected and configure as an output.
« Last Edit: July 27, 2008, 09:16:09 09:16 by bezobraznic » Logged
Codeman
Junior Member
**
Offline Offline

Posts: 70

Thank You
-Given: 31
-Receive: 20


« Reply #2 on: September 05, 2008, 09:08:14 21:08 »

Forget about SS on master. SS means "slave select" and is used when the master is used as slave. The way to select other slaves is use other pins (any pins) and configure them as outputs. Then used them to select other slaves.

Good luck

Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC