uPSD3300 Series Design Guide for DK3300-ELCD Using KEIL
5 SAMPLE DESIGN AND DEMONSTRATION CODE FOR KEIL
5.1 Purpose
The demonstration application code is a Keil-based project that shows the use of the PWM
and ADC function blocks within the uPSD3300 device. A pulse-width modulated signal output
from the PWM circuit is tied to an RC circuit resulting in a DC voltage that is proportional to the
pulse width. This DC voltage is input to an ADC channel and is read after each time the pulse-
width signal from the PWM is changed. The PWM setting and the read ADC value is displayed
on the LCD.
This simple demonstration project will illustrate the powerful software development tools
based upon Keil software, and the ULINK JTAG adapter, which provides many features for ed-
iting, compiling, programming, and debugging a uPSD3300 MCU Series from STMicroelec-
tronics. This demo will quickly illustrate the specific features below to give you a feel for their
simplicity and capability:
■ Project Compilation and Flash Programming
■ Single-Step Execution and Source-Level Debugging
■ Device-Specific Formatted Displays
■ Breakpoints
■ Symbolic Debugging and Variables Watch
■ Code Iteration
■ Instruction Tracing approaching Real-Time performance
The ULINK kit, and the DK3300-ELCD Development Board or your own designed circuit board
with a uPSD3300 MCU is all that is needed to develop code. Keil's debugger utility can be used
to symbolically debug 8051 code generated. The demo version limits code size and usage.
Check (http://www.keil.com) for more information on Keil Software and upgrades.
5.2 Compile Project
Launch KEIL from the Windows programs menu or from KEIL icon. Select Open Project
and follow the path to select the project file as shown in Figure 14
21/68
1