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.
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
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...
Thanks Jayanth,
I don't know anything about SPI BIT BANGING.
if u have any code which works for 10bit data, could u please share me that code.
Thanks,
Sid
SPI can send 8bit data at a time.
Here is the code for Master and Slave.
master code
-------------
OpenSPI(SPI_FOSC_64, MODE_01, SMPMID); //SPI configuration
SSPCON1bits.WCOL = 0; //Clearing SSPBUF
LATDbits.LATD0 = 0; //Slave select
WriteSPI(0xFF); //writing 0xFF to slave...
Hello lachmannmarcel,
I tried your code,still it is not working properly.
it's giving 10bit value but the values are not correct.
so i gave more delay but still it's not working.
Thanks
sid
- - - Updated - - -
I think it's not mandatory that 8 less significant bits should be in AdressL and 2 most significant bits should be in AdressH.
It depends on the ADFM bit in ADCON2 register.
if ADFM=0
Then Left justified (D10-D2 --> ADRESH)
if ADFM=1
Then right justified (D1-D0 --> ADRESL)
In my...
Hello all,
I am doing Single master multiple slave implemetation.
Master - PIC18F4550
Slave - PIC18F4520
A potentiometer is connected to the Slave. Slave will convert the Potentiometer value to digital and communicate with the master using SPI protocol.
I am getting 8bit data(ADRESH -- Left...
Hello all,
I am doing project on PIC.
I am trying to communicating b/w 18F4550(Master) and 18F4520(Slave). Communication is happening but the data is not correct at the slave side(data slippage).
(Clock,data coming from master).
How to avoid this data slippage.
Thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.