Friday, May 26, 2006

Hello Rod (almost)

Tools installed, it’s time for me to try and create the obligatory “Hello Rod” program. uVision is the IDE for the tools and so this seems to be a good place to start. The IDE looks to me pretty much like any other development IDE, and I have used rather lot in my time: Visual Studio, Eclipse, CodeWarrior, Idle, FreerIDE -- my PC is littered with them.

Opening uVision in the RealView Microcontroller Development Kit for the first time, I don’t get a blank project. Instead, I get a pre-built project called Measure which uses the analog inputs of the AT91M55800A to simulate a datalogger. Cool! I am sure I will be able to re-use some of the code here. Pressing the build button is irresistible and the project compiles with no errors. Selecting Debug then takes me to a debugger perspective (a bit like Eclipse). Pressing F5, as always, starts execution and away it goes. It boots up with a simple menu system on the serial port asking me to set the time and interval for logging. I do this and hit D for display and very little seems to happen. The line in the logic analyzer window remains flat. Then I notice some buttons off to the side of the simulation; one is labeled Analog0 0..3.0. (I think it should be Analog 0.0..3.0V). Pressing this button seems to inject values into the analog port AD0 of the simulated MCU. The logic analyzer shows the voltage rising and falling on AD0 and the serial port shows the values on AD0 changing over time.

0 Comments:

Post a Comment

<< Home