Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Read text files from pen drive usb
Goto page Previous  1, 2
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive
View previous topic :: View next topic  
Author Message
Luciano

Bascom Member



Joined: 29 Nov 2004
Posts: 3149
Location: Italy

blank.gif
PostPosted: Sat Jun 08, 2013 7:54 am    Post subject: Reply with quote

Hi,

you could also use a microSD card formatted FAT32 and AVR-DOS. To use the microSD card
with a PC, just plug the card into a Micro SD-USB Adapter (see attached picture).

Best regards,

Luciano
Back to top
View user's profile
MWS

Bascom Member



Joined: 22 Aug 2009
Posts: 2335

blank.gif
PostPosted: Sat Jun 08, 2013 8:49 am    Post subject: Reply with quote

Luciano,
Luciano wrote:
you could also use a microSD card formatted FAT32 and AVR-DOS.

these are all feasible technical options, but the actual problem (that's where the TO gives the members a runaround in not mentioning it) is, that the one and most important factor was omitted: it has to be client-friendly.

If I remember right, there was a link from the TO, now seemingly removed by MOD (death from above Very Happy), which pointed to a beauty farm/clinic.
Which makes things clearer, as for such a purpose a memory stick or a smart card is client-friendly enough, while any other of the suggested solutions is not. Here it would have been responsibility of the TO to tell this frankly, which I do blame him for not doing it.

@Edit by MOD ...
Back to top
View user's profile
atmega64

Bascom Member



Joined: 23 Feb 2005
Posts: 298
Location: ITALY

italy.gif
PostPosted: Wed Jun 12, 2013 4:00 pm    Post subject: Reply with quote

I apologize if I have not explained well ...

From the Project Agreements should I use a pen drive as a support ...

I want to test the example that we talked about:

http://www.mcselec.com/index.php?option=com_content&task=view&id=279&Itemid=57

I took all the components and designed the circuit ...

I have a small question ...

how should I set the programmer to set the value of the external clock of the micro 16Mhz??

Use AVRDUDESS v.1.2 programmer with AVR ISP mk II ... for example when I use an ATmega32 with quartz 4MHz imposed the fuses: L = H = 0xD9 0xEA and everything is ok ...

but with this new micro (ATMEGA644P clocked at 16MHz) can not seem to find the right settings and the program I part???

Thank you all.
Back to top
View user's profile Visit poster's website
atmega64

Bascom Member



Joined: 23 Feb 2005
Posts: 298
Location: ITALY

italy.gif
PostPosted: Thu Jun 13, 2013 7:33 am    Post subject: Reply with quote

Hi,

I tried using the link AVRDUDESS

http://www.engbedded.com/fusecalc

but there is no selection of 16MHz?? Evil or Very Mad
Back to top
View user's profile Visit poster's website
AdrianJ

Bascom Expert



Joined: 16 Jan 2006
Posts: 2483
Location: Queensland

australia.gif
PostPosted: Thu Jun 13, 2013 7:57 am    Post subject: Reply with quote

According to the Atmel datasheet for AtMega644P, you should use CKSEL = 0111 for external crystal in full swing mode. There is no specific setting for 16 MHz, but that should work from 8-20MHz at Vcc = 5 volts.
_________________
Adrian Jansen
Computer language is a framework for creativity
Back to top
View user's profile Visit poster's website
atmega64

Bascom Member



Joined: 23 Feb 2005
Posts: 298
Location: ITALY

italy.gif
PostPosted: Thu Jun 13, 2013 10:46 am    Post subject: Reply with quote

I tried with "FULL SWING OSCILLATOR; START-UP TIME 16KCK+0ms; CRYSTAL OSC: BOD ENABLE; CKSEL = 0111 SUT = 01" and AVRDUDESS works!

a couple of questions ...

- Why, if I want to program directly by BASCOM can not identify the microprocessor??

- I seem slow start the program ... is this normal?
Back to top
View user's profile Visit poster's website
atmega64

Bascom Member



Joined: 23 Feb 2005
Posts: 298
Location: ITALY

italy.gif
PostPosted: Thu Jun 13, 2013 3:04 pm    Post subject: Reply with quote

Help.... Very Happy

Because this command:

Print # 1, "RD todo.txt" + Chr (13);

I get the following error:

Error: 42 Numeric parameter expected ["RD todo.txt]
Error: Invalid data type 31 [0011] 0 [13)]]
Back to top
View user's profile Visit poster's website
kimmi

Moderator



Joined: 24 Feb 2006
Posts: 1922
Location: Denmark

denmark.gif
PostPosted: Thu Jun 13, 2013 10:44 pm    Post subject: Reply with quote

try change + to ;
_________________
/ Kim
Back to top
View user's profile Visit poster's website MSN Messenger
atmega64

Bascom Member



Joined: 23 Feb 2005
Posts: 298
Location: ITALY

italy.gif
PostPosted: Fri Jun 14, 2013 9:20 am    Post subject: Reply with quote

Quote:
Print # 1, "RD todo.txt" + Chr (13);


resolved by deleting the ""


Quote:
- I seem slow start the program ... is this normal?


I solved by disabling: "Divide clock by 8 internally; [CKDIV8=0]"


Quote:
- Why, if I want to program directly by BASCOM can not identify the microprocessor??


this problem still remains a mystery ... Evil or Very Mad Evil or Very Mad Question Question
Back to top
View user's profile Visit poster's website
kimmi

Moderator



Joined: 24 Feb 2006
Posts: 1922
Location: Denmark

denmark.gif
PostPosted: Fri Jun 14, 2013 9:36 am    Post subject: Reply with quote

maybe this helps you info how to setup programmer and driver

http://avrhelp.mcselec.com/index.html?elektor__avr_isp_mkii.htm

http://avrhelp.mcselec.com/index.html?libusb.htm

_________________
/ Kim
Back to top
View user's profile Visit poster's website MSN Messenger
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 6198
Location: Holland

blank.gif
PostPosted: Fri Jun 14, 2013 9:44 am    Post subject: Reply with quote

- you should read the actual help you get.
- you change the topic right in the thread to a new one ? This is not the 'help me with all my problems' topic.
- you do not give good info, how you do you think you will get help?

_________________
Mark
Back to top
View user's profile Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive All times are GMT + 1 Hour
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
You cannot attach files in this forum
You cannot download files in this forum