The hc16qsm.abs program in this directory is written specifically
for the 68HC16 or any processor that has the queued serial module
and a cpu16 core.

Execute the "hc16qsm.inc" include file from the command
pane of the Shell window.  It sets up PowerViews to know which
compiler was used to generate the demo program.  To do this, type:

   include "\pwrviews\samphc16\hc16qsm.inc";

After finishing with the demo program, be sure to set PowerViews
to the compiler you are using for your development.  You can use
the Options Compiler Used...  menu command in the Source window,
or the compilerUsed command in the Shell window.


PowerPack 68HC16 emulator

To run this program using the overlay memory of the PowerPack
emulator, simply set up the map for 64K of code beginning at address 0.
The program begins at 0x400 and ends about 0x8A6.  The stack starts
at about 0xB00 with a size of 0x80 and grows down.  Be sure to click
on the Configure Configure Chip Selects menu command in the Toolbar
window to orient the processor chip selects with the PowerPack hardware.


PowerScope Hardware-assisted Debugger

If you are using a PowerScope, be sure your target has a read/write
chip select set up from 0x0 to about 0x1FFF.


Connecting PowerScope to the Motorola 68HC16EVB target board

If you own a Motorola 68HC16EVB target board, can set up PowerScope to
connect to the BDM (Background Debug Monitor) pins on this board.  You can
then run the demo program on this board.  PowerScope is shipped with a
rainbow ribbon cable.  The end that plugs into the PowerScope has
a 10 pin dual-row connector and at the other end, each wire is
individually shrink wrapped to fit over a square pin.

To connect the PowerScope to the 68HC16EVB target board, first connect
each of the 10 wires to the P connectors on the target.
The colored wire-to-EVB board signals match up as follows:

   Color    Signal       Target Connector
   ------   ----------   ----------------
   Brown    DS-          P6- 3
   Red      BERR-        P5- 4
   Orange   GND          P2-20
   Yellow   BKPT/DSCLK   P5- 5
   Green    GND          P5-20
   Blue     FREEZE       P5- 6
   Violet   RESET        P4- 6
   Gray     IPIPE1/DSI   P5-10
   White    Vdd (+5v)    P6- 1
   Black    IPIPE0/DSO   P5- 9

Next, plug the connector end of the ribbon cable into the PowerScope
10 pin receiving connector.  As you are facing this male receiving
connector, pin 1 of the cable (marked with an arrow) is to the right.

You must remove the socketed PAL IC in U5 for the PowerScope to work.

PowerScope is now ready to provide download and debug of the demo
program after you power up the target.
