sd card problem

Coding and general discussion relating to user created compiler modules

Moderators: David Barker, Jerry Messina

Post Reply
Roshan
Registered User
Registered User
Posts: 42
Joined: Tue Mar 03, 2009 3:08 pm
Location: India

sd card problem

Post by Roshan » Fri Sep 09, 2011 6:32 am

Hi All ,

I am writing in sd card & it works perfect.

my problem is,

i read rtc ds1307 & i am using ready module which is available on the site.

if time is

hour = 0, Minute = 0 and second = 0 then

it only write in file "0"

EVEN MY command is like this

SD.WRITE(DECTOSTR(TIME.HOUR,2)
SD.WRITE(DECTOSTR(TIME.MINUTE,2)
SD.WRITE(DECTOSTR(TIME.SECOND,2)

HOW CAN I SOLVE THIS ?

ROSHAN
ROSHAN

User avatar
Senacharim
Posts: 139
Joined: Tue Aug 10, 2010 5:19 pm
Location: Ventura, CA

Post by Senacharim » Fri Sep 09, 2011 2:10 pm

Are you certain your code is correctly interfacing with the clock module?

'0' is what one gets when the clock module is non-functional or communication is not being achieved.
Surviving Member
Bermuda Triangle Battalion
from 2026 to 1992

Voted "Most likely to time travel"--Class of 2024.

Post Reply