CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

UART 2 on PIC 24FJ not receiving data
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Ttelmah



Joined: 11 Mar 2010
Posts: 19247

View user's profile Send private message

PostPosted: Sat Oct 26, 2019 6:53 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Oct 28, 2019 9:14 am     Reply with quote

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. Confused Rolling Eyes
So I'm explicitly declaring that ONLY AN12 & AN15 must be analog.

Anyway, lesson learned. Wink
_________________
Electric Blue
E_Blue



Joined: 13 Apr 2011
Posts: 417

View user's profile Send private message

PostPosted: Wed Oct 30, 2019 1:13 pm     Reply with quote

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. Confused Rolling Eyes
_________________
Electric Blue
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group