ELE408 Lab Demo - PowerPoint PPT Presentation

1 / 19
About This Presentation
Title:

ELE408 Lab Demo

Description:

How to use the board of MCF5307 microprocessor? Hardware used ... Apply power to the board. Running the dumb terminal ... SBC5307 board SBC5307 User's Manual ... – PowerPoint PPT presentation

Number of Views:61
Avg rating:3.0/5.0
Slides: 20
Provided by: yina3
Category:
Tags: demo | ele408 | lab

less

Transcript and Presenter's Notes

Title: ELE408 Lab Demo


1
ELE408 Lab Demo
  • How to use the board of MCF5307 microprocessor?

2
Hardware used in the lab
  • Motorola ColdFire SBC5307C3 (new) or Arnewsh
    SBC5307PROMO (old)
  • PC as a dumb terminal (COM1)
  • HP 1662CS Logic Analyzer
  • Network connection

3
The Software used in the lab
1. The notepad software used to edit the program
2. The MS-DOS Prompt used to compile the program
3. The Hyper Terminal used to communicate with
the 5307 board
4. ColdFire cross compiler
4
Hooking up hardware
  • Connect COM1 of PC to Terminal connector on
    SBC5307
  • Apply power to the board.

5
Running the dumb terminal
1. On Windows NT, Start -gt Programs -gt
Accessories -gt HyperTerminal -gt Hyper Terminal
2. Input connection name
6
Set the Connect using to COM1
7
Set COM1 Properties
  • Bits per second 19200
  • Data bits 8 Parity None
  • Stop bits 1
  • Flow control Xon/Xoff

8
Hard Reset SBC5307
By pushing the red button at the left-bottom of
the board.
9
Writing you codes
  • Use any text editor you want.
  • Save your code as filename.s.

10
Using the cross compiler
1. Input the command m68k-elf-as -m5200 -mhwdiv
filename.s to compile your .s file to a.out file.
2. Input the command m68k-elf-objcopy
--output-targetsrec a.out filename.srec to
compile a.out file to .srec file which can read
by the 5307 board.
11
Download your code
In debug prompt of Hyper Terminal, type in dl
20000
12
Download your code
Transfer -gt Send Text Files
13
Select your SREC file to download
14
Run your code
After download the file, use GO 20000 or use GT
or TRACE to run the program.
15
Run the Demo program
1. Use rm command to change the pc register to
20000, which is the beginning address of the
program.
16
Run the Demo program
2. Use the TRACE feature to single-step through
the program.
17
Wrap up
  • After doing the lab we need you to
  • Log off NT
  • Power off the board.

18
References
  • Motorola ColdFire MCF5307 Processor -- MCF5307
    Users Manual
  • SBC5307 board SBC5307 Users Manual
  • CodlFire cross compiler/syntax document --
    F/coldfire/gcc-m68k/doc/
  • MCF5307 assembly instruction set Table 3-7,
    P3-23, MCF5307 Users Manual
  • SBC5307 assembly syntax P2-8, SBC5307 Users
    Manual

For course and lab information
http//www.ele.uri.edu/yinan/teaching/teaching.ht
ml
19
Try the Demo program
move.l 0xFFFFFFFF, d0 move.w 0x3000, d0 add.l
0xFFFF0000, d0 movea.w 0x3000, a0 movea.w
0x4000, a1
The command will be used m68k-elf-as -m5200
-mhwdiv filename.s m68k-elf-objcopy
--output-targetsrec a.out filename.srec rm trace
Write a Comment
User Comments (0)
About PowerShow.com