Personal tools
You are here: Home Forums HEW How to monitor a variable in the program?

How to monitor a variable in the program?

Up to HEW

How to monitor a variable in the program?

Posted by Paul Hsieh at July 07. 2008

I try to input a analog voltage into the h8s/2638 board in scan mode. After the a/d conversion, the voltage value will be stored into the variable like this:

usADC1_Result = P_AD.DRA;

Then I pass the value into the analog output by using d/a conversion.

P_DA.DR0 = usADC1_Result;

As the analog voltage will change, then the value will always changing. Therefore, how to monitor the variable usADC1_Result or the P_AD.DRA by using the hew 4.0?

Re: How to monitor a variable in the program?

Posted by Calvin Grier at July 08. 2008

I'd recommend you look at the HEW training modules on RenesasInteractive.com.

Specifically there's a module on HEW Debugging, and it has a section called Examining Memory. It tells about the Watch Window.

www.RenesasInteractive.com

Powered by Ploneboard