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

18F4520 SD CARD INIT PROBLEM --WITH SD CARD ADAPTER !!
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
boraciner



Joined: 29 Jul 2009
Posts: 9

View user's profile Send private message

PostPosted: Sat Jan 16, 2010 5:29 pm     Reply with quote

ok sir, I understand now.
I'll try to find 74HCT125(dip) thanks a lot !!
boraciner



Joined: 29 Jul 2009
Posts: 9

View user's profile Send private message

PostPosted: Sun Jan 17, 2010 5:59 am     Reply with quote

I see a level translator on this board ?????
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Jan 17, 2010 11:47 am     Reply with quote

The level translator chip only goes one way. It only shifts from +5v
CMOS levels down to +3.3v CMOS levels.

The "DO" signal from Connector J1 goes directly to pin 7 of connector J2.
There is no level translation on that signal. You need an external
level shifter chip to translate the 3.3v CMOS levels up to +5v CMOS levels. The PIC requires 5v CMOS levels on its SDI pin.

Schematic:
http://gravitech.us/MicroResearch/Others/MICROSD-ADP/MicroSD-ADP_Schematic.pdf
asmallri



Joined: 12 Aug 2004
Posts: 1635
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Mon Jan 18, 2010 9:21 pm     Reply with quote

Quote:


Schematic:
http://gravitech.us/MicroResearch/Others/MICROSD-ADP/MicroSD-ADP_Schematic.pdf


Anyone using this schematic as a reference should be aware that additional pull resistors are required. Unused Dx lines from the SD/MMC cards require pull-ups resistors as does the DO line from the card and the CD from the card socket.

The DO also needs a level converter (in theory) to meet the worst case Schmidt trigger input levels on the PIC input pins for the SPI port when the SPI peripheral is used.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
karsia



Joined: 26 Feb 2010
Posts: 5

View user's profile Send private message

PostPosted: Sat Mar 13, 2010 3:44 am     Reply with quote

18f4520 can detect 2volt even from the ttl buffer if suplly range is between 4.5 and 5.5 . You can check it from datasheet ( DC CHARACTERISTICS input low voltage- input high voltage-page 335 ).
probably most of pics can detect this.
asmallri



Joined: 12 Aug 2004
Posts: 1635
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Sat Mar 13, 2010 9:03 am     Reply with quote

karsia wrote:
18f4520 can detect 2volt even from the ttl buffer if suplly range is between 4.5 and 5.5 . You can check it from datasheet ( DC CHARACTERISTICS input low voltage- input high voltage-page 335 ).
probably most of pics can detect this.


When configured for SPI mode, the pin is operated in Schmitt input mode not TTL mode.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!


Last edited by asmallri on Sat Mar 13, 2010 2:16 pm; edited 1 time in total
karsia



Joined: 26 Feb 2010
Posts: 5

View user's profile Send private message

PostPosted: Sat Mar 13, 2010 2:06 pm     Reply with quote

asmallri wrote:
karsia wrote:
18f4520 can detect 2volt even from the ttl buffer if suplly range is between 4.5 and 5.5 . You can check it from datasheet ( DC CHARACTERISTICS input low voltage- input high voltage-page 335 ).
probably most of pics can detect this.


When configured as an SPI mode, the pin is operated in Schmitt input mode not TTL mode.

Yes you are right. I thought for SD-1 bit or SD-4 bit mode.
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