Page 410 - Introduction to Microcontrollers Architecture, Programming, and Interfacing of The Motorola 68HC12
P. 410

Appendix 2
                             Using the HiWare CD-ROM

        A2.1 Loading HIWARE Software
        You can use the software on the enclosed CD-ROM to simulate your programs on a PC
        running Windows 95 or later, or Windows NT 5.0 or later, without using any extra
        hardware. You can also use this software with a real target microcontroller, so you can
        collect data from external hardware, and control external hardware. Open the CD-ROM,
        check "setpe.exe", and choose the Motorola HC12 target. If you have 60 megabytes of
        disk space, load all parts of the tool chain.

        A2.2 Opening the HIWARE Toolbox
        You can open the HIWARE Toolbox in at least two ways, depending on how HIWARE
        was installed. The best way is to click on the Start icon, to the Programs item, to the
        HIWARE item, to HC12 Projects item, to either ManualProject item or
        AssemblerProject item. This should open the toolbox for this book's experiments.
            Another way to open the HIWARE Toolbox is to click on the Start icon, to the
        Programs item, to the HIWARE item, to the HIWARE TOOLS item. When the tool bar
        appears, click on its leftmost icon (the one with the picture of three pages and a pencil)
        to open a dialog box. In that dialog box, click on the Open., icon. Click on folder and
        files names to find and select one of the folders described below. Then click on OK in the
        inner box, and the outer box. If a dialog box appears to confirm that you change the
        project, click on OK. This should open the toolbox for experiments in this book.
            The folder ManualProgramFolder in the HIWARE folder provides examples of
        programs in the first three chapters of the book. These examples use just the HIWARE
        debugger applicaton. The folder Assembly ProgramFolder in the HIWARE folder
        provides examples of programs in the remaining chapters of the book. These examples
        use the NOTEPAD text editor, the HIWARE assembler and the HIWAVE debugger.
        You can also use other text editors such as WinEdit, in place of NOTEPAD, to generate
        source code for the assembler.
        A2.3 Running Examples From the ManualProgramFolder


        ManualProgramFolder has files which contain examples from this text book that you
        can load and run on the HIWAVE simulator, or download and run on the target machine.
        The file p.ll.abs contains machine code for an example on page 11, which is Figure
        1.5. Similarly, p.lSa.abs is the example on the top of page 13, Figure 1.8. Click on the
        HIWAVE icon in the HIWARE toolbox. After HIWAVE starts, load an example by
        pulling the Simulator menu to the Load., item. Select the file for the example, such as
        p.ll.abs. First, double-click on the box next to SP in the Register window, and type a
        suitable stack pointer value such as hexadecimal AOO (just press the keys A, 0, and 0,
        and Enter), Then single-step though the program to learn how it works. You can single-


                                          387
   405   406   407   408   409   410   411   412   413   414   415