Page 1 of 1

!8F87K22

Posted: Wed Jan 15, 2025 8:07 am
by Roy_Johnston
this component has 10 bit A/D.
when I use get integer it only returns 0 - 255.
it should return 0 - 1024.
what am i doing wrong.

Re: !8F87K22

Posted: Wed Jan 15, 2025 8:08 am
by Roy_Johnston
sorry 18F8722

Re: !8F87K22

Posted: Wed Jan 15, 2025 11:18 am
by medelec35
Hi Roy.
I have checked code generation for PIC8722 and it looks correct for 10bit.
Can you post your .fcfx project file and .c file, please.

Re: !8F87K22

Posted: Wed Jan 15, 2025 2:14 pm
by Roy_Johnston
Thanks
i found my mistake , all is OK
bad programming

Re: !8F87K22

Posted: Wed Jan 15, 2025 2:24 pm
by medelec35
No problem,
Thanks for letting us know.