ChipCenter Questlink
SEARCH CHIPCENTER
Search Type:
Search for:




Knowledge Centers
Product Reviews
Data Sheets
Guides & Experts
News
International
Ask Us
Circuit Cellar Online
App Notes
NetSeminars
Careers
Resources
FAQ
EE Times Network
Electronics Group Sites

AN HC11 FILE MANAGER


Circuit Cellar Online
THE MAGAZINE FOR COMPUTER APPLICATIONS
Circuit Cellar Online offers articles illustrating creative solutions
and unique applications through complete projects, practical
tutorials, and useful design techniques.

AN HC11 FILE MANAGER

Lessons from the Trenches Part 2ýAll of the Details
by Walter Krawec

Introduction ý Format() ý Install() ý Directory() ý Run() ý Menu() ý Saving Memory ý Interfacing to the File Manager ý Two Sample Programs ý Conclusion ý Sources and PDF

Last month, I introduced you to the WCC11 compiler for the 68HC11 and how to code a simple program using it. This month, Iýll build the full file manager and show you how you can use it to manage the development of projects on the processor and share procedures among the projects.

The file manager is built using four source files (download all code for this article). FileMngr.c contains all of the procedures specific to the file manager. Itoa.c contains procedures for printing integers. Msg.c contains the strings of various messages that the file manager prints. And, SCI.c contains the support procedures for the 68HC11's SCI port. [1]

The file manager keeps a table of information that describes the installed programs in memory (see Figure 1). A variable in low memory, called prg_addr, points to this structure, and all accesses to it are relative to this pointer.

Figure 1ýThe file manager maintains name and position information for the installed programs.

 

I'll be referring to these files and this data structure as I go through the descriptions of the procedures that implement the file manager.

NEXT


Circuit Cellar provides up-to-date information for engineers. Visit www.circuitcellar.com for more information and additional articles.
For subscription information, call (860) 875-2199, subscribe@circuitcellar.com or subscribe online. ýCircuit Cellar, the Magazine for Computer Applications. Posted with permission.
Click here to get your listing up.

Copyright © 2003 ChipCenter-QuestLink
About ChipCenter-Questlink  Contact Us  Privacy Statement   Advertising Information  FAQ