Qdatasheet_Logo
Integrated circuits, Transistor, Semiconductors Search and Datasheet PDF Download Site

AN2125 View Datasheet(PDF) - STMicroelectronics

Part Name
Description
MFG CO.
'AN2125' PDF : 68 Pages View PDF
uPSD3300 Series Design Guide for DK3300-ELCD Using KEIL
PWM = xx ADC = yyy where xx and yyy are changing with each execution of the program
loop.
Click “RST” and the program returns to first line of the main program.
Click
“Step-Over” to execute one line of C code. You can scroll down to see more
lines of code in the program.
Click “Step-Over” again, which passes you over, and continue until timer0_init().
When the yellow pointer is on timer0_init(), click
the called function, timer0_init().
“Step-In”. The debugger is now in
Double click
“Disassembly”. This opens a display named, “Disassembly” showing
both C and Assembly code source instructions.
Click “Step-Over” a few times to see that code execution can be stepped one
assembly instruction at a time.
Click
“Reset” to return to main program, pwm_adc.c
5.5 Breakpoints
Four hardware breakpoints are available on uPSD3300.
Set one breakpoint by setting the cursor on the left of the line of code (
printfLCD(msg_buff); ) and clicking on “Insert Breakpoint” ;
a red dot at the beginning of line of code appears as shown in Figure 48 in APPENDIX B.
Click “Run”, the program will run until hitting breakpoint. The yellow pointer
indicates where MCU execution has stopped in the main program, now waiting for your
debugging command.
Click “Run” repeatedly. See that the display value changes for PWM and ADC after
each cycle. You will see increasing values for PWM and decreasing values for ADC each
time one loop of code is executed within the while(1) loop construct.
5.6 Debugging and Variables Watch
For this project watch variables were selected during Target device set up aand they are
shown in the watch Window which appears at bottom of screen (Refer to Figure 15). See
how at each stepping the variables change.
Click “Run” repeatedly. See that the display value changes for PWM and ADC after
each cycle.
23/68
1
Share Link: GO URL

All Rights Reserved © qdatasheet.com  [ Privacy Policy ] [ Contact Us ]