

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


University of Florida EEL 4744 Casey Morrison, & Robert Oaks, Former TAs Electrical & Computer Engineering Dept. Dr. Eric M. Schwartz Page 1 / 2 Revision 0 10-May-
Inside the monitor source code folder, there are a number of files. The file “main.asm” is the main program. The following instructions will describe how to assemble this program. To assemble the monitor, open “main.asm” in an editor/assembler (MiniIDE). At the top of “main.asm” there are a few #define statements: #define 4MHZ is not commented out if it is a 4 MHz board #define 8MHZ is not commented out if it is a 8 MHz board Both should not be defined at once, but one should be defined Default is currently 4 MHz, with “#define 8MHZ” commented out #define 4800 will set the board to 4800 baud, rather than the default 9600 baud This is commented out as default #define CHECKSUM sets the monitor to use checksums when loading s-files This is enabled as default #define TESTING does two things to enable the monitor to be loaded into RAM rather than into static memory. First, it disables the interrupt vector table. Then, it changes the memory address where the monitor starts. Currently the monitor will be loaded at $4000 if TESTING is defined. This can be easily changed by changing the value of test_start_point, which is found under the heading “MISC EQUATES” in “main.asm.” TESTING should not be defined if this is to be loaded into static memory. This makes the monitor begin at $E000. #define STAR sets the monitor to print out stars when loading programs The frequency of stars can be set at the top of the “m_load” file by adjusting the value of the equate statement. It can also be adjusted by adjusting the value in memory location “star_count_register”.
If TESTING is defined, the assembled s-file is ready for use. Presumably, an existing monitor ( DEBUG12 ) exists on the board that can handle loading this monitor into RAM. Use the existing monitor and a terminal program to load this monitor into RAM. Then, run the program at address $4000 (or another address if the starting point has been changed). This technique only works because this monitor is just a little larger than 4K. With 8K of RAM on the board, that leaves a little less than 4K to load programs using this monitor.
If TESTING is not defined, the assembled s-file needs to be modified before loading it into static memory (ROM). On the current UF 68HC12 boards, the memory map has EPROM or EEPROM going from $8000-$FFFF. $E000 is included in this range, but $E000 is relative to the start of the processor’s memory map. Relative to the start of the 32KB EPROM or EEPROM that is used, the start of the memory map is $E000 - $8000, or $7000. The memory locations that are in the s-file need to be shifted down by $8000. To do this, follow these steps:
University of Florida EEL 4744 Casey Morrison, & Robert Oaks, Former TAs Electrical & Computer Engineering Dept. Dr. Eric M. Schwartz Page 2 / 2 Revision 0 10-May-
unix_prompt: ./s1tos3 main.s19 mainoff.s19 -
Follow these steps to program a static memory: