Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 466 matches
www.mcselec.com Forum Index
Author Message
  Topic: What happens to SD card when unplugged?
njepsen

Replies: 1
Views: 634

PostForum: AVR-DOS   Posted: Wed Feb 29, 2012 11:45 pm   Subject: What happens to SD card when unplugged?
I am monitoring the switch on my card holder, and when the card is unplugged, the program jumps to

Start:

While Sd_inserted = 1 '1 = no card
...
  Topic: mkdir
njepsen

Replies: 1
Views: 552

PostForum: AVR-DOS   Posted: Tue Feb 21, 2012 1:07 am   Subject: mkdir
The mkdir help text states that "the length of the pathname is limited to 8 characters"

Does this mean that:

dim directoryname as string *20
directoryname = "mydirnam" '8 char
mkdir (direct ...
  Topic: Avr-dos SDHC card reader and writer
njepsen

Replies: 1
Views: 825

PostForum: AVR-DOS   Posted: Tue Feb 21, 2012 12:55 am   Subject: Avr-dos SDHC card reader and writer
hamedhamedi,
seeing you are using avr_dos, perhaps you should put this on the AVR-DOS site, not this one.

regards
  Topic: Exact timing + reduce time to enter a ISR
njepsen

Replies: 7
Views: 311

PostForum: BASCOM-AVR Archive   Posted: Fri Feb 17, 2012 12:58 am   Subject: Exact timing + reduce time to enter a ISR
At 12.0mhz your clock pulse will be 0.08333 uS each. Your last error is less than 1 ck pulse!
The first two errors are only 1.5 - 2.0 clock pulses long. How are you measuring the length of the 3ms p ...
  Topic: FAT issue?
njepsen

Replies: 1
Views: 604

PostForum: AVR-DOS   Posted: Wed Feb 15, 2012 5:40 am   Subject: FAT issue?
I am writing data files received at a UART ser port to an SD card, 1 new data file every 15 minutes. Each block of data ( about 255 bytes) is saved as a new file, inside a single folder.
From time t ...
  Topic: SD card init
njepsen

Replies: 8
Views: 903

PostForum: AVR-DOS   Posted: Fri Feb 10, 2012 12:04 pm   Subject: SD card init
Good suggestion Peter. I could do that with a very small h/ware change, because my SD card is at the end of a ribbon cable, attached with a 10way box header with spare cores, for an additional CS pin.
  Topic: SD card init
njepsen

Replies: 8
Views: 903

PostForum: AVR-DOS   Posted: Tue Feb 07, 2012 11:33 am   Subject: SD card init
Hi Peter,
I am monitoring weather, 500 miles from home so doing something manually is not possible. I can text the remote device so the possibility of remote manual intervention exists. But ...
  Topic: SD card init
njepsen

Replies: 8
Views: 903

PostForum: AVR-DOS   Posted: Tue Feb 07, 2012 1:35 am   Subject: SD card init
Hi Peter.
No apology needed. I am aware of the $include, and had only called it once. My question was which function or functions should I use to check the card intergrity, once the co ...
  Topic: dir() and dir("*.*")
njepsen

Replies: 5
Views: 638

PostForum: AVR-DOS   Posted: Mon Feb 06, 2012 11:47 pm   Subject: dir() and dir("*.*")
I'm sure you are right Peter. I think there is an ascii zero, or a ctrl-Z or something in there which upsets my modem. The work around was easy - I just changed directories back to the root, then ba ...
  Topic: dir() and dir("*.*")
njepsen

Replies: 5
Views: 638

PostForum: AVR-DOS   Posted: Mon Feb 06, 2012 11:00 pm   Subject: dir() and dir("*.*")
Understood. Does something untoward happen when you do a dir(), kill (i.e kill the first file ),dir()
  Topic: SD card init
njepsen

Replies: 8
Views: 903

PostForum: AVR-DOS   Posted: Mon Feb 06, 2012 10:58 pm   Subject: SD card init
Thanks Peter
  Topic: SD card init
njepsen

Replies: 8
Views: 903

PostForum: AVR-DOS   Posted: Sun Feb 05, 2012 1:30 am   Subject: SD card init
I'm a little confused ( which is easy) by what is required to initialise an SD card, and how often and when it should be done.
I have a large routine, which stores stuff to an SD card, and sends it o ...
  Topic: dir() and dir("*.*")
njepsen

Replies: 5
Views: 638

PostForum: AVR-DOS   Posted: Sun Feb 05, 2012 1:20 am   Subject: dir() and dir("*.*")
This function confused me, with the statement "In fact when you want to get the next filename from the directory, you must not provide a mask after the first call." which suggested that the processor ...
  Topic: AVRDOS for Beginners
njepsen

Replies: 16
Views: 2275

PostForum: AVR-DOS   Posted: Thu Jan 26, 2012 2:27 am   Subject: AVRDOS for Beginners
Ah thankyou Mark. That answers my question about what happens to bytes left over after the last 512 gulp.
  Topic: AVRDOS for Beginners
njepsen

Replies: 16
Views: 2275

PostForum: AVR-DOS   Posted: Wed Jan 25, 2012 11:36 pm   Subject: AVRDOS for Beginners
Peter,
Thanks for that. So what you are saying is that after the put, its the close or flush that actually does the write. The help for "PUT" suggests that the write to file is initiated ...
 
Page 27 of 32 Goto page Previous  1, 2, 3 ... 26, 27, 28 ... 30, 31, 32  Next
All times are GMT + 1 Hour
Jump to: