Title: ELE408 Lab Demo
1ELE408 Lab Demo
- How to use the board of MCF5307 microprocessor?
2Hardware used in the lab
- Motorola ColdFire SBC5307C3 (new) or Arnewsh
SBC5307PROMO (old) - PC as a dumb terminal (COM1)
- HP 1662CS Logic Analyzer
- Network connection
3The 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
4Hooking up hardware
- Connect COM1 of PC to Terminal connector on
SBC5307 - Apply power to the board.
5Running the dumb terminal
1. On Windows NT, Start -gt Programs -gt
Accessories -gt HyperTerminal -gt Hyper Terminal
2. Input connection name
6Set the Connect using to COM1
7Set COM1 Properties
- Bits per second 19200
- Data bits 8 Parity None
- Stop bits 1
- Flow control Xon/Xoff
8Hard Reset SBC5307
By pushing the red button at the left-bottom of
the board.
9Writing you codes
- Use any text editor you want.
- Save your code as filename.s.
10Using 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.
11Download your code
In debug prompt of Hyper Terminal, type in dl
20000
12Download your code
Transfer -gt Send Text Files
13Select your SREC file to download
14Run your code
After download the file, use GO 20000 or use GT
or TRACE to run the program.
15Run the Demo program
1. Use rm command to change the pc register to
20000, which is the beginning address of the
program.
16Run the Demo program
2. Use the TRACE feature to single-step through
the program.
17Wrap up
- After doing the lab we need you to
- Log off NT
- Power off the board.
18References
- 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
19Try 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