Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Some AVR-DOS questions (M32 and SD)

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> AVR-DOS
View previous topic :: View next topic  
Author Message
Kimmeridgien

Bascom Member



Joined: 22 Feb 2007
Posts: 89
Location: Stockholm

sweden.gif
PostPosted: Wed Mar 04, 2009 12:20 am    Post subject: Some AVR-DOS questions (M32 and SD) Reply with quote

Hi

I'm building a very simple mp3 player using M32, VS1011 and SD. The application will know which files are available and their names, all placed in the root directory. Could somebody please help me straighten out a few question marks?

Is the clock really necessary? I am using a DS1307 external clock (with my own code), so do I have to include a separate library for AVR-DOS to work? Which one?

In the Config_MMC.bas file, for HW SPI: I am using the !SS pin on M32 for the SD card. Should I first declare it for alias Mmc_cs and then again for Spi_ss or only for Mmc_cs and comment out Spi_ss?

Since I am using an M32 and want to keep the SRAM usage down, I wonder if I have to declare my own 512-byte array or if I can read from the AVR-DOS buffer variable directly. (Would that be Gbdirbuffer(512) As Byte or Gbfatbuffer(512) As Byte?)

Are there more tweaks available than setting the following in CONFIG_AVR-DOS.bas?
Const Cfilehandles = 1
Const Csepfathandle = 0 (=> Gbdirbuffer(512) should be used?)

Thanks in advance!

Kind regards

Niclas
Back to top
View user's profile
benoit

Bascom Member



Joined: 24 Jul 2007
Posts: 177

france.gif
PostPosted: Sat Mar 28, 2009 10:00 am    Post subject: Reply with quote

HI
IT SEEM THAT Gbdirbuffer DON 'T WORK UNDER 512
YOU WILL GET ERROR MESSAGE WHEN COMPILING
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> AVR-DOS All times are GMT + 1 Hour
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
You cannot attach files in this forum
You cannot download files in this forum