1 / 9

CSE 3215 – Lab Tutorials

CSE 3215 – Lab Tutorials. Dragon12. Dragon12. MC9S12 DP 256 or MC9S12 DG 256 HCS12 family of MCUs Dragon12P User's Manual D-Bug12 : Debugger (take around 200KB of flash) Allows run small program from RAM Alternatives:

alijah
Download Presentation

CSE 3215 – Lab Tutorials

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CSE 3215 – Lab Tutorials

  2. Dragon12

  3. Dragon12 • MC9S12DP256 or MC9S12DG256 • HCS12 family of MCUs • Dragon12P User's Manual • D-Bug12: • Debugger (take around 200KB of flash) • Allows run small program from RAM • Alternatives: • SerialMonitor (SM): Small loader to enable loading a program to MCU’s flash directly via MCU’s serial port 0. • BDM: Generic name for hardware-base debugger to allow real-time debugging and fully control MCU and its flash.

  4. CodeWarrior Development Tools • For HCS12: CW SE 5.1: Special Edition v5.1 • CodeWarrior Special Edition - HCS12(X) - Classic • How to prepare CW to create suitable S record files for D-Bug12: • We simply use Dragon12 Stationaries (e.g. Templates): • CSE3215 CW Stationery.ZIP • For details on how to setup from scratch: • Setup CW Project from Sctrach

  5. Connecting to D-Bug12 • Use HyperTerminal (HT) • Serial Port COM1: BAUD: 9600, 8 N 1 and no flow control. • Reset the board to see D-Bug12 prompt • Type “help” to get details • Type “load” to load your S19 files (e.g. final compiled and linked executable). Use “Send Text File” of HT to send the file • Type “g 2029” to execute your program • CW may change 2029 … look for it in CW mapper files in your project. Look for “Entry” keyword.

  6. More Links and readings • CW Tutorials (screencast) • Tutorials based on GCC (not CW) • MC9S12DP256 Documents • Documentation on lab mdoules (e.g. LCD, Keypad, Schematics ...)

  7. Readings • MC9S12DP256 Device Users Guide (Electrical characteristics, Registers' Map ...) • Read Page 21, 22 and 23 • Get Familiar with p21-p48 (e.g. very fast reading) • Read Page 54-59 • Understand Page 77-80

  8. Readings Keypad, LCD, LEDs: • KeyPad.pdf • LCD_SPEC.PDF • LDQ-M514RI.pdf Code Warrior C and ASM refs: • MSL_C_Reference.zip • MSL_C_Reference.zip.doc • Manual_Assembler_HC12.pdf • InstructionSet.pdf How to use and extend D-Bug12 routines: • AN1280.pdf • AN1280A.pdf HCS12 External Bus Design: • AN2287.pdf • AN2408.pdf Oscilloscope and logic analyzer • DS-1000SRS(ENG).pdf • Logic analyzer

More Related