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 support@ccsinfo.com

PIC32

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Maddman7887



Joined: 07 Jun 2010
Posts: 2

View user's profile Send private message

PIC32
PostPosted: Sat Jun 12, 2010 11:20 pm     Reply with quote

Power with 5v and SD card

Last edited by Maddman7887 on Thu Apr 24, 2014 7:04 am; edited 2 times in total
Ttelmah



Joined: 11 Mar 2010
Posts: 19328

View user's profile Send private message

PostPosted: Sun Jun 13, 2010 3:07 am     Reply with quote

The first thing you are going to need to do, is sort out the hardware.....
If you are connecting directly to a 5v PIC, then you will almost certainly overvoltage the device. The PIC logic outputs can deliver more current than this chip needs as a supply. When the clock and data lines go 'high', these will be pulling up to well above the chips supply voltage. This will result in the supply level for the chip rising, and possible damage. You need resistive voltage dividers on the data lines from the PIC.
Then the data output from the chip, will also need to be buffered to bring the signal 'up' to a level that the PIC can read.
The supply at the chip needs smoothing.
Do a search here for people reading/writing SD cards. This is basically the core 'chip' used in some of these, and with only small modifications, the same code (and buffering...) is needed.

Best Wishes
Maddman7887



Joined: 07 Jun 2010
Posts: 2

View user's profile Send private message

PostPosted: Mon Jun 14, 2010 4:23 pm     Reply with quote

..........

Last edited by Maddman7887 on Thu Apr 24, 2014 6:52 am; edited 1 time in total
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Mon Jun 14, 2010 6:44 pm     Reply with quote

Maddman7887 wrote:
The information you provided for me is Vague. I would need some more insight please.
Simple words:

Your PIC is running 5V. Yes?
The Atmel Dataflash is running at about 2.0 - 2.5V

Because the chips are not at the same voltage they can not talk to each other. Maybe you have damaged the Dataflash.

Solution 1: choose a newer PIC type that can run at the same 2.5V. A new PIC is also cheaper than the old PIC16F877A.

Solution 2: implement 'interface' electronics. Difficult. Lots of problems. More expensive than a new PIC.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
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