Pic as SPI Slave

Beta Testing discussion on mikroC PRO for PIC.
Post Reply
Author
Message
Mince-n-Tatties
Posts: 2780
Joined: 25 Dec 2008 15:22
Location: Scotland

Pic as SPI Slave

#1 Post by Mince-n-Tatties » 27 Jun 2009 23:16

Hi,

using mikroC pro 2.15 while helping out in the forum it has recently come to my attention that the SPI CLK signal does not appear to be operating as an input during slave configuration.

this would also look to be the case with mikroC 8.2.

I have always used my own SPI library up until now hence never having seen the issue previously.

could you please check the clock is being set to input while the pic is in slave mode.

setting used

Code: Select all


SPI1_Init_Advanced(_SPI_SLAVE_SS_ENABLE, _SPI_DATA_SAMPLE_MIDDLE, _SPI_CLK_IDLE_LOW, _SPI_LOW_2_HIGH); 

User avatar
slavisa.zlatanovic
mikroElektronika team
Posts: 1321
Joined: 07 Apr 2009 09:39

#2 Post by slavisa.zlatanovic » 29 Jun 2009 13:45

Hi!
could you please check the clock is being set to input while the pic is in slave mode.
We'll check this issue!

BTW.
We highly appreciate your activity on this forum.
Thanks!

Mince-n-Tatties
Posts: 2780
Joined: 25 Dec 2008 15:22
Location: Scotland

#3 Post by Mince-n-Tatties » 30 Jun 2009 00:32

slavisa.zlatanovic wrote:Hi!
could you please check the clock is being set to input while the pic is in slave mode.
We'll check this issue!

BTW.
We highly appreciate your activity on this forum.
Thanks!
thank you, much appreciated

User avatar
nikola.kostic
mikroElektronika team
Posts: 433
Joined: 11 Aug 2009 12:12

#4 Post by nikola.kostic » 05 Oct 2009 14:44

This is fixed and will be included in the next release of mikroC PRO. Thank you for your report Mince-n-Tatties.

Mince-n-Tatties
Posts: 2780
Joined: 25 Dec 2008 15:22
Location: Scotland

#5 Post by Mince-n-Tatties » 05 Oct 2009 15:00

thank you for the test files and ultra rapid response

Post Reply

Return to “mikroC PRO for PIC Beta Testing”