CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

SD CARD CCS C
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
temtronic



Joined: 01 Jul 2010
Posts: 9503
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sat Jul 05, 2025 5:02 am     Reply with quote

it's because you MUST fix the hardware !
You must install 'logic level ' translation between the SD device and the PIC.
As Mr. T has pointed out the 3v SD can't send a '1' to the 5 v PIC.
NO code you try will work.

You must correct the hardware first THEN the software will work....
Ttelmah



Joined: 11 Mar 2010
Posts: 19882

View user's profile Send private message

PostPosted: Sat Jul 05, 2025 10:16 am     Reply with quote

Critical difference.

If you look at the SD module he is using there, it has level translator
hardware feeding the SD signals.The chip on the right (U1), has the
resistors necessary to pull up the SD lines, and this chip is level shifting
the signals for the SD. This is a properly designed module to drive an SD
from a 5v processor.
The LCD board you have does not have this level shifting. If you enlarge
the picture, you can see that the SD signals go directly to the connector pins.
No level shifting. Hence it _wiill not work_ (with a PIC).
The module he is using is this one:
[url]
https://www.switchelectronics.co.uk/products/micro-sd-card-mini-tf-reader-module?currency=GBP&variant=45334952280373&utm_source=google&utm_medium=cpc&utm_campaign=Google%20Shopping&stkn=bbf1d20e1ed7&gad_source=1&gad_campaignid=20470999819&gbraid=0AAAAAqEgT0CyMF-25WdEaLvA6rjxVP_Wh&gclid=Cj0KCQjwmqPDBhCAARIsADorxIZrqT-NdxVCAXBV5bapVpWcNwJ4IRAveNBVq68KcF-ezTsJQVbY0WEaAtS_EALw_wcB
[/url]

It is rather like putting diesel in a petrol car. Will not work, and can cause
damage.

As Jay says, you need to get the hardware right first. Software cannot fix
incorrect hardware. You can either add your own level translation
hardware, or switch to a module that does have this.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group