Saturday, 05 July 2025
     
 
Latest News
Main Menu
Home Home
Shop Shop
News News
BASCOM-AVR BASCOM-AVR
BASCOM-8051 BASCOM-8051
Products Products
Application Notes Application Notes
Publications Publications
Links Links
Support Center Support Center
Downloads Downloads
Forum Forum
Resellers Resellers
Contact Us Contact Us
Updates Updates
MCS Wiki MCS Wiki
Online Help
BASCOM-AVR Help BASCOM-AVR Help
BASCOM-8051 Help BASCOM-8051 Help
Contents in Cart
Show Cart
Your Cart is currently empty.
Search the Shop

Products Search

User Login
Username

Password

If you have problem after log in with disappeared login data, please press F5 in your browser

Polls
RSS News
Check the Shop
  Random 
Random
 

MCS Flash Programmer PCB
MCS Flash Programmer PCB
EUR 12.04


M128LM CPU module
M128LM CPU module
EUR 49.61


 
     
 

 
 
Popular
 
     
 
Shopping zone
Categories

List All Products


Advanced Search
Shop Download Area
Show Cart
Your Cart is currently empty.






AVR-DOS User License (Download version)


Price: EUR 24.14

This product is provided as downloadable without any storage media and is billed without shipping.
AVR-DOS is a FAT16 and FAT32 File system for BASCOM-AVR written by Vögel Franz Josef. MCS Electronics is the authorised reseller for this add-on library.

The library is completely written in AVR-assembler.
The AVR-DOS File system is completely integrated into the compiler

The syntax is completely the same as from QB/VB.
A small example:

Print #1 , "Init File System ... ";

Dim Gbtemp1 As Byte ' scratch byte
Gbtemp1
= Initfilesystem(1) ' we must init the filesystem once
If Gbtemp1 > 0 Then
 
Print #1 , "Error " ; Gbtemp1
Else
 
Print #1 , " OK"
 
Print "Disksize : " ; Disksize() ' show disk size in bytes
 
Print "Disk free: " ; Diskfree() ' show free space too
End If


'dim some test variables
Dim S As String * 60 , Fl As String * 12 , Ff As Byte
Dim Sdatetime As String * 18
Fl
= "test.txt"
S
= "test this"

'Now we are getting to it
'We can specify a file handle with #1 or #2 etc. or we can ask for a free
' file handle with the FreeFile function. It will return a free handle if there is one.

Ff
= Freefile() ' get a file handle

'With this file handle we refer to a file
Open Fl For Output As #ff ' open fikle for output
' we need to open a file before we can use the file commands
' we open it for OUTPUT, INPUT , APPEND or BINARY
' In this case we open it for OUTPUT because we want to write to the file.
' If the file existed, the file would be overwritten.
Print #ff , S ' print some data
Print #ff , S
Print #ff , S
Print #ff , "A constant" ; S
Testsb Ff
Close #ff 

 

It is simple to creata data loggers, MP3 players etc.





For enable cart please login or register first

Customer Reviews:

boy_33pol  (Tuesday, 25 September 2007)
Rating: 5





thanx for that

Duval JP  (Tuesday, 18 February 2025)
Rating: 5
Yes AVR-Dos is fully the same as Visual Basic, it is fast and easy. I use it without anay problem.
the plessure to name the file in 8.3
see the wiki about it


You cannot write a review because you not have ordered this product yet.