90 likes | 276 Views
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:
E N D
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.
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
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.
More Links and readings • CW Tutorials (screencast) • Tutorials based on GCC (not CW) • MC9S12DP256 Documents • Documentation on lab mdoules (e.g. LCD, Keypad, Schematics ...)
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
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