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