I had a memory of problems with certain chips with the high ports at
about the time of this compiler. I think the compiler does attempt to
set ANSG, but actually accesses the wrong register. However the
register location is correct in the database used by the SFR access.
It was a niggling memory of mine, which is why I suggested it....
E_Blue
Joined: 13 Apr 2011 Posts: 417
Posted: Mon Oct 28, 2019 9:14 am
The crazy thing is that if I don't declare
Code:
setup_adc_ports(sAN12|sAN15|VSS_VDD);
The ANSG is setup properly and UART2 works ok.
So I'm explicitly declaring that ONLY AN12 & AN15 must be analog.
Anyway, lesson learned. _________________ Electric Blue
E_Blue
Joined: 13 Apr 2011 Posts: 417
Posted: Wed Oct 30, 2019 1:13 pm
Ttelmah wrote:
I had a memory of problems with certain chips with the high ports at
about the time of this compiler. I think the compiler does attempt to
set ANSG, but actually accesses the wrong register. However the
register location is correct in the database used by the SFR access.
It was a niggling memory of mine, which is why I suggested it....
I didn't see the second page.
If you are correct, I see some hard developing times for me. _________________ Electric Blue
All times are GMT - 6 Hours Goto page Previous1, 2
Page 2 of 2
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum