Trainer4Edu.com

 

DRAGON12-Plus2-Rev. D Trainer
All-In-One HCS12 trainer for academia


This Dragon12-Plus2 board has been discontinued due to semiconductor shortage. The replacement board is the Dragon12-Light board. This page is for reference only.

The DRAGON12-Plus2 trainer Rev. D comes with D-Bug12 monitor firmware or serial monitor firmware installed. 

The D-Bug12 monitor for HCS12 is similar to the BUFFALO monitor for 68HC11. It will execute all BUFFALO commands and work with an ASCII  terminal program, like AsmiDE and MiniIDE. With the vast online resources available for the HCS12, it will take almost no time to start a HCS12 course for a professor who is currently teaching a 68HC11 or a 68HC12 course.

The serial monitor is required to work with the CodeWarrior IDE 5.1 SE.


DRAGON12-Plus2- silkscreen

Sample programs and Textbooks

 

The DRAGON12-Plus2 Rev. D trainer kit includes a DRAGON12-Plus2 board, a solderless breadboard and a 3 foot USB cable.

DRAGON12-Plus2 features:

  • Backwards compatible to 68HC11 and 68HC12 code
  • Supports source level debugging with single step and breakpoints for C and Assembler
  • RGB color LED
  • USB TX and RX indicator LEDs
  • 16X2 LCD display module with LED backlight.
  • 4-digit, 7-segment display module for learning multiplexing technique
  • 4 X 4 keypad
  • Eight LEDs connected to port B
  • An 8-position DIP switch connected to port H
  • Four pushbutton switches connected to PH0-PH3
  • Capacitive touching switch shows how a capacitive switch works
  • IR detector
  • CAN controller
  • RS485 communication port with terminal block for daisy chaining
  • Speaker driven by timer, or PWM, or DAC for alarm, voice and music applications
  • Light sensor for home automation applications
  • Potentiometer trimmer pot for analog input
  • Temperature sensor for home automation applications
  • X-Y-Z accelerometer module interface header
  • MicroSD memory card slot (Memory card is not included)
  • XBee (Wi-Fi) interface (XBee module is not included)
  • Bluetooth interface (Bluetooth module is not included)
  • RS232 DB9 connector for SCI1
  • Two analog sensor input headers
  • Dual 10-bit DAC for generating analog waveforms
  • High efficiency dual H-Bridge for controlling two DC motors or one stepper motor
  • Four robot servo outputs with a terminal block for external servo voltage 
  • DPDT form C relay
  • Logic probe with a LED indicator
  • Fast SPI expansion port for interfacing external SPI devices
  • Power-On LED indicators for 5V and 3.3V
  • Resettable fuses to protect USB port and Motor controller
  • Abort switch for stopping program when program is hung in a dead loop
  • Bus speed up to 25 MHz
  • The 112-Pins on-board MCU (MC9S12DG256CVPE) with 89 I/O-Pins is included
  • BDM-in connector to be connected with a BDM from multiple vendors for debugging.
  • BDM-out connector for making this board as a HCS12 / 9S12 BDM or programmer. No extra hardware needed.
  • Female headers provide shortest distance (great for high speed applications!) to every I/O pin of the MC9S12DG256
  • Comes with AsmIDE under GPL (general public license)
  • Pre-loaded with D-Bug12 monitor for working with AsmIDE or serial monitor for working with CodeWarrior
  • Mode switch for selecting 4 operating modes with D-Bug12 monitor: EVB, Jump-to-EEPROM, BDM POD and Bootloader
  • Fast prototyping with on-board solderless breadboard
  • Many fully debugged 68HC12 program examples including source code
  • PCB size: 8.5" X 5.4"

Options:

 

More information on options:

SD memory interface: http://www.evbplus.com/hcs12_9s12/SD_memory.html


Applications:

  • A perfect stand-alone 16-bit HCS12 trainer for classrooms. It's not too simple like an 8-bit trainer and not too complex like a 32-bit trainer
  • Perfect for upgrading all outdated 68HC11 / 68HC12 development boards 

 

Verify the type of monitor firmware on your Dragon12-Plus2 board:

  1. Apply power to your Dragon12-Plus2 Rev D board via a USB cable connecting to a USB port.
     

  2. Observe the 8 port B LED indicators.
     

  3. If your board is pre-installed with D-Bug12 monitor firmware, the 8 port B LED indicators will flash sequentially from left to right and the speaker will chirp once when the board is powered up.
     

  4. If you ordered the board with serial monitor firmware for the CodeWarrior, it would be pre-installed with the serial monitor and a factory test program. The state of the left switch of the 2-position DIP switch (SW7) is tested by the serial monitor for selecting RUN or LOAD mode during power up or reset, and the 8 port B LED indicators will flash sequentially from right to left and the speaker will chirp once to indicate that the serial monitor firmware is functioning. The right DIP switch is not used by the serial monitor.
    For more information please see this video:  http://www.youtube.com/watch?v=gmwBMWII0p8&feature=related

    If the left switch is placed in the "LOAD" mode (in the "low" position) the monitor will wait for a command from the host PC.
    If the left switch is placed in the "RUN" mode (in the "up" position) the 8 port B LED indicators will flash again from left to right to indicate that the program execution is diverted to the user code.

    The CodeWarrior communicates with serial monitor firmware only in LOAD mode and so in order to interface with the CodeWarrior you have to place the left switch in the “low “ position. The 8 port B LED indicators will flash from right to left and the speaker will chirp once when the board is powered up.

    If your board does not communicate with CodeWarrior, the first thing you should check is that if the left DIP switch of the SW7 is in the LOAD mode ( in the "low" position).
     

  5. If monitor firmware is not installed or is erased by a BDM, the 8 port B LED indicators will not flash sequentially during power up or reset.

 

The DRAGON12-Plus2 board comes with a built-in USB interface based on the FT231XS. The driver for the FT231XS must be installed properly before using the board.

Install and verify USB driver:

  1. Plug the Dragon12-Plus2 Rev. D board to your PC via a supplied USB cable.  Let Win10 search the driver on the web and automatically install it for you.  If the auto installation does not work for your PC (it's very unlikely), you can download the exe file and then run it to install the driver manually.
    https://www.ftdichip.com/Drivers/VCP.htm  the version is 2.12.18

    or you can download the setup executable, unzip it and then click on the EXE file.
     
  2. Verify it in Device Manager
     

  3. Once you have verified that the USB driver is properly installed, you may invoke the IDE (CodeWarrior or AsmIDE).
     

  4. If you are going to use CodeWarrior IDE and have not installed it you need to Download and configure CodeWarrior http://www.trainer4edu.com/dragon12/codewarrior_hcs12.html


For AsmIDE users:

The software tool AsmIDE including the assembler (AS12.exe) is used with Freescale D-Bug12 monitor. All sample programs are tested under the D-Bug12 monitor.  If you plan to use the CodeWarrior IDE with Freescale serial monitor, or you have been using the MiniIDE, you can ignore the AsmIDE and AS12.exe, but all sample programs can run under the MiniIDE or can be converted to run under the CodeWarrior. 

If the AsmIDE does not communicate with your Dragon12-Plus2 board then you need to check if the COM port number that is assigned by the AsmIDE matches the USB-to-Serial COM port number that is assigned by Windows' Device Manager. The Device Manager assigns the USB-to-Serial COM port number randomly and it does not know which COM port number that AsmIDE is going to use.

In order to find the USB-to-Serial COM port number that is assigned by Device Manager, you can click through "Control Panel -> Systems -> Hardware -> Device Manager -> Ports".  The USB-to-Serial COM port number will appear.

For setting the COM port of the AsmIDE to match that USB-to-Serial COM port number, you can click through "View-> Option->Terminal Window Options" menu, then select the correct COM port from COM1 to COM4.


In order to establish a reliable USB communication, always connect the DRAGON12-Plus2 Rev. D board to your PC's USB port first before invoking the AsmIDE, otherwise the AsmIDE will not be able to communicate with the DRAGON12-Plus2 Rev. D board.  During a debugging session, if you accidentally unplug the USB cable from the DRAGON12-Plus2 Rev. D board, you need to re-establish the USB communication.  The AsmIDE will not recognize the DRAGON12-Plus2 Rev. D board again if you just simply re-plug in the USB cable

To re-establish the USB communication you need to exit AsmIDE and power cycle the DRAGON12_Plus2 Rev. D board (disconnect the USB cable from the DRAGON12-Plus2 Rev. D board, then re-plug in the USB cable), then you can invoke AsmIDE again and the AsmIDE will start to communicate with the DRAGON12-Plus2 Rev. D board. If this does not work, you may need to restart your PC.

If restarting the PC does not solve the problem, you can try it on another PC.

 

Download the MC9S12DG256 Device User Guide
http://pdf.datasheetcatalog.com/datasheet/motorola/9S12DT256DGV3.pdf

Download the D-Bug12 Reference Guide, DB12RG4.pdf
http://www.ece.utep.edu/courses/web3376/Interrupts_files/DB12RG4.pdf

Download the AN2548.pdf (serial monitor)
http://www.freescale.com/files/microcontrollers/doc/app_note/AN2548.pdf

Download the AN2153.pdf (serial bootloader)
http://www.freescale.com/files/microcontrollers/doc/app_note/AN2153.pdf