Download Introduction to Labs - Kettering University

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Assembly language wikipedia , lookup

Transcript
© 2010 Kettering University, All rights reserved.
Microcomputers I – CE 320
Jaerock Kwon, Ph.D.
Electrical and Computer Engineering
Kettering University
[email protected]
http://www.kettering.edu/~jkwon
Dragon 12-Plus Development Board
D-Bug12
MiniIDE
Today’s Topics
• Introduction of Labs
• Dragon12-Plus Development Board
• DBUG12 commands
• MiniIDE
Introduction of Labs
• See the syllabus
Dragon12-Plus Development Board
•
HCS12/9S12 based development board.
•
Manual can be found at
– http://www.evbplus.com/download_hcs12/dragon12_plus_hcs12_manual.pdf
Layout of Lab Settings
Serial
Communication
•
Users can communicate with the Dragon 12 plus through the serial
communication ports
– Small monitor program on the Dragon 12 plus (D-Bug12)
– Users can type commands, download programs, and get/display output from
the Dragon 12 plus.
Memory Map
Hardware Descriptions
• LEDs
• DIP switch and pushbuttons*
• 7-segment LED *
• Keypad
• LCD display
• Dual RS232 communication ports
– DB9 female connectors
D-Bug12
A Debug Monitor for the MC68HC912B32 Microcontroller
• Basically D-Bug12 is a software program that interprets
commands that a user types in.
• You can interact with the microcontroller through D-Bug12
command.
– Download your program
– See/manipulate contents of memory and registers
D-Bug12 Command Set
Frequently used ones
•
•
•
•
•
•
•
•
•
•
•
BF - Block Fill user memory with data.
BR - Set/Display user breakpoints.
G - Go. Begin execution of user program.
LOAD - Load user program in S-Record format.
MD - Memory Display. Display memory contents in hex
bytes/ASCII format.
MM - Memory Modify. Interactively examine/change memory
contents.
NOBR - Remove one/all user breakpoints.
RD - Register Display. Display the CPU register contents.
RM - Register Modify. Interactively examine/change CPU
register contents.
T - Trace. Execute an instruction, disassemble it, and display
the CPU registers.
<RegisterName> <RegisterValue> - Set CPU
<RegisterName> to <RegisterValue>
MiniIDE
• In order to communicate with the Dragon 12 Plus, we need to
have/use
– Terminal program to send typed inputs to the board and see the
output from it.
– Assembler to assemble the assembly program.
– Text editor to edit assembly program
• The IDE is a integrated tool for all of above.
• Integrated Development Environment (IDE)
– Source code editor, assembler, and etc.
• MiniIDE is an IDE for HCS12 assembly programming
– You can download the software at
http://www.mgtek.com/miniide/
MiniIDE
Source code editor
Output of assembler
Terminal window
Demo
Questions?
Wrap-up
What we’ve learned
• Dragon12-Plus Development Board
• DBUG12 commands
• MiniIDE
What to Come
• Lab sessions start next Tuesday at AB-2817