Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Single master multiple slave implentation using PIC microcontroller

Status
Not open for further replies.

Siddft

Junior Member level 2
Joined
Oct 19, 2012
Messages
20
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Bangalore
Activity points
1,432
Hello All,

I am trying to implement Single Master Multiple slave implementation using PIC microcontroller.

I am using PIC18F4550 as Master and PIC18F4520 as slave.

Slaves will convert the values of potentiometer(A/D conversion) and communicate those values to master using SPI protocol.

I am getting values correctly from slave to master in Single master single slave implemetation.

But when i connect more slaves to master then 'm not getting the values properly, i think there migth be some problem with DELAY(SYNC problem) so how to overcome from this problem.

If anybody have sample code for Single Master Multiple slave implementation plz share it.


Advance thanks,
Siddesh
 

Hi there,

Use daisy chain connection for multi slave communication. beacuse currently only one chip select pin you are using for slave selection it is wrong method.

Try daisy chain spi configuration and revert back me.

Best regards,
 

Attachments

  • 4609Fig05.gif
    4609Fig05.gif
    12.6 KB · Views: 119
  • images.jpg
    images.jpg
    10.1 KB · Views: 106
  • Diag.png
    Diag.png
    14.7 KB · Views: 118
  • 350px-SPI_three_slaves_daisy_chained.svg.png
    350px-SPI_three_slaves_daisy_chained.svg.png
    11.8 KB · Views: 158
  • spi_interface_4.jpg
    spi_interface_4.jpg
    33.7 KB · Views: 113

hello Jinzpaul4u ,

rite noe 'm implementing using Typical SPI bus configuratiion.

I am using 2 slave selects D0 and D1.

Thanks

- - - Updated - - -

'll try with daisy chain configuration
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top