EVBplus MiniDragon-Plus2 Trainer User Manual

Browse online or download User Manual for Unknown EVBplus MiniDragon-Plus2 Trainer. EVBplus MiniDragon-Plus2 Trainer User`s manual [en]

  • Download
  • Add to my manuals
  • Print
  • Page
    / 36
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 0
MiniDragon-Plus3 Trainer
For Freescale HCS12 microcontroller family
Users Manual
Revision 1.00
Page view 0
1 2 3 4 5 6 ... 35 36

Summary of Contents

Page 1 - MiniDragon-Plus3 Trainer

MiniDragon-Plus3 TrainerFor Freescale HCS12 microcontroller familyUser’s ManualRevision 1.00

Page 2 - Table OF Contents

• MC9S12DG256, 256K flash, 12K RAM and 4K EEPROM• Dual UARTs • 16 MHz crystal, 8 MHz default bus speed and up to 25MHz bus speed via PLL• Pre-installe

Page 3

Pin Name Pin # I/O UsagePA0 Pin 57 Col_0 of keypad (output)PA1 Pin 58 Col_1 of keypad (output)

Page 4 - Chapter 1. Introduction

PM0 Pin 105 CAN0_RXPM1 Pin 104 CAN0_TXPM2 Pin 103 not usedPM3 Pin 102 not usedPM4 Pin 101 no

Page 5

Chapter 2. Quick StartBy default the MiniDragon-Plus3 board is pre-installed with the bootloader (Freescale AN2153.pdf) and the D-Bug12 monitor (Free

Page 6 -

2.2 Getting StartedTo operate the MiniDragon-Plus3 board, follow steps1 through 5 below:1. Make sure that the two DIP switches of S7 must be set in th

Page 7

8. You can program text values for function keys to be sent from the terminal window. Some function keys are pre-programmed, but you can change it any

Page 8

2.3 Test Hardware:To help users up and running, the MiniDragon-Plus3 board comes with many fully debugged, ready-to-run sample programs including

Page 9

Chapter 3. Software descriptions3.1 Bootloader and D-Bug12 MonitorThe MC9S12DG256 on the MiniDragon-Plus3 board is pre-loaded with bootloader and D-B

Page 10

3.1.2 Jump-to-EEPROM mode: PAD1=0, PAD0=1This mode enables the MC9S12DG256 to jump directly to the internal EEPROM at location $0400 upon reset.Thi

Page 11

You first must set the target speed with the choice 1). After entering the first choice, you will be prompted to enter the target speed. It’s the cry

Page 12

Table OF ContentsChapter 1. Introduction ...

Page 13 - Chapter 2. Quick Start

Now we are going to program the bootloader and the D-Bug12 into the flash memory of the target MC9S12DG256.Before we actually program the flash memory

Page 14

******************************************************************************************************************************************************

Page 15 - D-Bug12 v4.0.0b32

The option a) will erase the D-Bug12 portion of flash memory, not the bootloader itself.The option b) will program the D-Bug12 portion of flash memory

Page 16

It will assemble your source program and generate hex code within 4K locations from $2000 to $2FFF. Here is a very simple program, but it’s complete.

Page 17

3. Click Build button, select Assemble option, or click the assembler button on the toolbar to assemble your code and generate an s19 file. If the ass

Page 18

3.3.3 Use on-chip flash for testing your code in BOOTLOADER mode.In this mode, you download your program directly into on-chip flash memory. You firs

Page 19

Chapter 4: Hardware DescriptionsThe crystal frequency is 16 MHz and usually it will result in an 8 MHz bus speed, but on this board the MC9S12DG256’s

Page 20 - S>fload <Enter>

The segment A, B, C, D, E, F and G are driven by PH0, PH1, PH2, PH3, PH4, PH5 and PH6, respectively. The hex value of the segment code for common cat

Page 21

4.8 RS485 portThe RS485 interface IC (SN75176) is not installed. To make RS485 work, user has to install the U9, shorting the J27 and install a termi

Page 22

4.11 Keypad (optional)Port A is an 8-bit bi-directional port. Its primary usage is for a 4X4 keypad. If the port is not used for the keypad, it can

Page 23

4.10 LCD display module ... 284.11 Keypad ...

Page 24

If PA6 = low, the key 6 is down. If PA5 = low, the key 5 is down. If PA4 = low, the key 4 is down. Keypad scan routine sets PA0 low and PA1, PA2, PA3

Page 25

Chapter 5: Code Warrior and serial monitorCode Warrior is a very powerful and professional IDE. The main feature of Code Warrior IDE is the source le

Page 26

Chapter 6: PLL code; The crystal frequency on the MiniDragon-Plus3 board is 16 MHz so the default bus speed is; 8 MHz. In order to set the bus

Page 27

Chapter 7: Appendix7.1 D-Bug12 utility routinesThe AN1280 was written for OLD 68HC12 family. If you happen to use printf routine with your old 68

Page 28

7.2 Interrupt vector tablesFig 8-2: MC9S12DG256 Interrupt vector table 134

Page 29

Fig 8-3: MC9S12DG256 Interrupt vector table 235

Page 30

Fig 8-4: MC9S12DG256 secondary interrupt vector table36

Page 31

Chapter 1. Introduction1.1 WelcomeThank you very much for purchasing the MiniDragon-Plus3 trainer. The MiniDragon-Plus3 trainer is a low-cost,

Page 32 - Chapter 6: PLL code

1.2 MC9S12DG256 features and memory map:The MiniDragon-Plus3 board may come with theMC9S12DP256CCPV or the MC9S12DG256CVPE installed

Page 33 - Chapter 7: Appendix

Fig 1-1: MC9S12DG256 Memory map6

Page 34 - 7.2 Interrupt vector tables

Fig 1-2: MC9S12DG256 MCU block diagram7

Page 35

Fig 1-3: MC9S12DG256 MCU pin assignments8

Page 36

1.3 On-board hardware features:• On-board USB interface based on the flawless FT232RL for programming and debugging code, no BDM needed.• Automatic se

Comments to this Manuals

No comments