We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi folks. I'm new with ARM microprocessors and after some internet research couldn't find anything about that, so I came here. I'm using a LPC2148 and I would like to know how the debug works in Keil uVision. I want to debug a ADC code, but I don't know how to change the input value to see it working. I've already debugged a toggle led code on uVision, but couldn't work with anything using input values, so I would really appreciate if anyone could help me. And that's it, thanks in advance.
Regards, Rodrigo
In the debugger, with real hardware? Or in the SIMULATOR?
On real hardware you'd presumably use a variable resistor or potentiometer to change the voltage on the pin.
In the software of Keil uVision4, I've already tested in the real hardware, but the ADC value keep oscilating, so I'm trying debug the code in the software just to make sure that the problem isn't in the code, but I've never used the Keil debugger before, so I'm having some problems with that.
This page contains the documentation for simulation: http://www.keil.com/dd/chip/3880.htm
I've already seen this page, thanks Per, but I didn't understand how the ADx VTREG registers works. Do you know anything about that?
Yes, the debugger allows you to assign values to them.
You can even write C-like scripts that changes the ADC values over time, or based on stimuli from the running program.
Keil has a number of examples how to make use of scripts when running the simulator.
But where are this examples? I've just found some code examples, and not about the simulator.