English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Hi all,
I have a problem when trying to read the analog value from the
onboard potentiometer on Dragon 12(mc9s12dp256) .I came to know that
the potentiometer is internally connected to pad07 and the result is
stored in the adr00h register.I tried to display it on the LCD.It
gives a blank space.These are my ATDCTL config words

_io_reg[atd0ctl2] =0x80;
_io_reg[atd0ctl3] =0x08;
_io_reg[atd0ctl4] =0x80;
_io_reg[atd0ctl5] =0x27;

I tried connecting the vrh and vrl to 5v and 0v respectively but still
didnt work out.

Could anybody suggest how i can read values from the pot.

2007-05-11 07:35:34 · 1 answers · asked by minnu 1 in Computers & Internet Programming & Design

1 answers

I would check you analog to digital converters configuration . The link uses the pot of control LED bright ness you should examine the code and see how the ADC is configured in this project and compare it to yours.

2007-05-11 12:41:13 · answer #1 · answered by MarkG 7 · 0 0

fedest.com, questions and answers