2.2 Getting
Started
To operate the MiniDragon-Plus2 board, follow steps1 through 5 below:
1. Make sure that the two DIP switches of S7 must be set in the “low” positions for EVB mode,
then plug the AC adapter into a wall outlet, and plug the female plug of the AC adapter into
the DC jack on the left side of the MiniDragon Plus2 board. After power up, the speaker
should chirp once, the 7-segment LED should display a diagnostic code of E-4-3
momentarily. The letter E stands for EVB mode, the number 4 stands for single chip mode
and the number 3 means that 2 switches (S3, S4) are open. Here is the code explanation:
First letter: E = EVB mode, J = Jump to EEPROM, P = Pod and b = Bootloader mode.
Second number: 4 = Single chip mode, 6 = Narrow expended mode, 7 = Wide exp. mode
Third number: 0 = S3 & S4 closed, 1 = S3 open & S4 closed, 2 = S3 closed & S4 open 3=
S3 & S4 open
If a 16x2 LCD module is connected the LCD should display the following message:
“Min2 EVB” ; you can display your name on LCD and see details
“D-Bug12 EVB MODE” ; at CDROM\examples\name_display\readme.txt
If it does not occur check the Power-On LED indicator. The PWR LED is the decimal point of
the 7-segment. It is lit when VCC (5V) is present. If the PWR LED is off check the J14 on
solder side. It should be shorted by a solder bridge. Also check the output of the AC adapter.
It should be about 10V DC without a load (the output DC voltage of the AC adapter is rated
for 7.5V at 300mA, but usually the voltage is much higher without a load).
2. Plug the RS232 cable into the RJ11 jack
P1
at the left side of the MiniDragon Plus2 board
and plug the DB9 female end of the cable into COM1 or COM2 port on your PC. The RJ11
jack P2 on the top edge of the board is the MC9S12DG256’s SCI1 port that can be used by
a user’s program.
3. To invoke the AsmIDE, you can right click the Start button, then left click “Explorer”, left click
on C:\MiniDragonP2 and finally, double left click on AsmIDE.exe. If you have created a
shortcut icon on the desktop, just double click the AsmIDE icon on the desktop.
4. The AsmIDE is simple and very easy to use. You only need to use three commands from the
AsmIDE for your HCS12 development work. Use the File command to edit your source
code, the Build->Assemble command to assemble your source code, and the Build-
>Download command to download an s19 file to the MiniDragon-Plus2 board.
5. If your PC has a COM port output (it’s a 9-pin male DB9 connector), you don’t need a USB to
RS232 converter. Usually the PC COM port will be COM1 or COM2. For setting the COM
port of the AsmIDE, you can click through View-> Option->Terminal Window Options menu,
then select the correct COM port and skip the step 6.
13
Содержание MiniDragon-Plus2 Trainer
Страница 1: ...MiniDragon Plus2 Trainer ForFreescaleHCS12microcontrollerfamily User sManual Revision 1 03 ...
Страница 6: ...Fig 1 1 MC9S12DG256 Memory map 6 ...
Страница 7: ...Fig 1 2 MC9S12DG256 MCU block diagram 7 ...
Страница 35: ...8 2 Interrupt vector table Fig 8 2 MC9S12DG256 Interrupt vector table 1 35 ...
Страница 36: ...Fig 8 3 MC9S12DG256 Interrupt vector table 2 36 ...
Страница 37: ...Fig 8 4 MC9S12DG256 secondary interrupt vector table 37 ...