Selectable default SPI divider in VisualTFT setup screen

Post your requests and ideas on the future development of Visual TFT Software.
Post Reply
Author
Message
stevencovert
Posts: 247
Joined: 19 May 2009 21:46
Location: Virginia, USA

Selectable default SPI divider in VisualTFT setup screen

#1 Post by stevencovert » 05 Mar 2012 18:36

I am using a 64MHz PIC18, and when the MMC_Init is called, the SPI is set up with a 64 divider:

Code: Select all

  SPI1_Init_Advanced(_SPI_MASTER_OSC_DIV64, _SPI_DATA_SAMPLE_MIDDLE, _SPI_CLK_IDLE_LOW, _SPI_LOW_2_HIGH);
then when communication is made, it is set to 4. With my hardware 4 is too fast, the calls to the SD card lock up.

Maybe a drop box on the TFT tab for SPI speed?

Thanks
Steve
I like apple P=IE!

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Selectable default SPI divider in VisualTFT setup screen

#2 Post by filip » 06 Mar 2012 11:21

Hi,

Thank you for your proposal, I will pass it to our developers.
You can change this manually in the code by commenting out the SPI reinitialization with the divider 4.

Regards,
Filip.

Post Reply

Return to “Visual TFT Wish List”