Digital Signal Processing Reference
In-Depth Information
3. FBTC
Program
File :
c:\c6713\bin\utilities\flashburn\c6000\dsk6713\
FBTC6713.out
Save this file as flash_sine.cdd (already on the CD within the folder flash_sine ).
Erasing and Programming the Flash Memory
The flash program post runs when the DSK is powered. It performs a number of tasks
to check the memory and the LEDs, generates a 1-kHz tone for 1 second, and so on.
Note: Continuing this step erases (kills) the flash program post and replaces it
with the flash_sine program. Be assured that it will be brought back to life readily.
Within the Flashburn utility (.cdd file) shown in Figure 2.30, select Program
Æ
Erase Flash. This erases any program ( post.hex ) stored in the flash memory. Still,
within the (.cdd) Flashburn utility, select Program
Æ
Program Flash. This loads
flash_sine.hex created initially into the flash memory.
To verify that the sine generation program is stored in flash memory, close the
(.cdd) Flashburn utility, exit CCS, and unplug the power to the DSK. Turn back on
the power to the DSK. The post program no longer runs. The LEDs are not turned
on, and the 1-kHz sinusoid is not generated for 1 second. Instead, verify from the
DSK output that the 1-kHz sine generation program now runs.
Recovering the Post Program
Launch CCS: Select Tools
Open. Look in c:\c6713\
examples\dsk6713\bsl\post to open the Flashburn utility configuration file
post.cdd . Note that there is no entry in the Conversion Cmd File. Select Program
Æ
Æ
FlashBurn
Æ
File
Æ
Erase Flash to erase any program ( flash_sine.hex ) stored in the flash memory.
Then select Program
Program Flash to download post.hex into the flash memory
(bringing it back to life when the DSK is powered again).
Æ
2.4 ASSIGNMENTS
1. Write a loop program, interrupt-driven using INT12, incorporating directly
into the program the BSL/CSL support functions to read and write without
using the init/comm “black box” file C6713dskinit.c .
2. Write a loop program, polling-based, incorporating directly into the program
the BSL/CSL support functions to read and write without using the init/comm
“black box” file C6713dskinit.c .
3. Write a program to generate a square wave using a sine wave as input. The
program should test if the input is greater than or equal to a variable accum ,
in which case the output is a positive scaled value, where accum accumulates
with a positive step size value. If not, the output is a negative scaled value and
accum accumulates with a negative step size value. Choose a step size value
of 2*pi* f / F s , using f
=
1 kHz (1 V p-p) as the input signal frequency and
F s
96 kHz as the sampling frequency. Cast the step size and accum as
floating-point values. Verify the output square-wave signal.
=
Search WWH ::




Custom Search