Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 08, 2016, 03:12:28 15:12


Login with username, password and session length


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

Posts: 193

Thank You
-Given: 60
-Receive: 16



« on: July 27, 2008, 09:30:28 09: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
*
 Muted
Offline Offline

Posts: 31

Thank You
-Given: 61
-Receive: 24


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

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

Posts: 72

Thank You
-Given: 27
-Receive: 20


« Reply #2 on: September 05, 2008, 10:08:14 22: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