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

How to identify four UARTs in PIC24F128GA106?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
donquixote



Joined: 21 Jul 2008
Posts: 15
Location: Shanghai, China

View user's profile Send private message

How to identify four UARTs in PIC24F128GA106?
PostPosted: Wed Oct 15, 2008 1:49 am     Reply with quote

Hi, Guys,

My question is how to identify the four UARTs in PIC24F128GA106?

I would like to use the interrupt service routine for both Receiving and Transmitting. And CCS provide the #INT_RDA, #INT_RDA0, #INT_RDA1 and #INT_RDA2 for uart receive data interrupt handler.

What is the difference among them ? Is #INT_RDA0 for UART1, #INT_RDA1 for UART2 , #INT_RDA2 for UART3? What about the #INT_RDA?

Anyone could help me out ?

Thanks.
_________________
Don Quixote
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Wed Oct 15, 2008 2:31 am     Reply with quote

Hello,

for the PIC24FJ128GB106, (the same chip with additional USB interface), PCD knows
#int_RDA, #int_TBE,
#int_RDA2,#int_TBE2,
#int_RDA3,#int_TBE3,
#int_RDA4,#int_TBE4

The xx3 and xx4 items are missing for the GA chips up to most recent V4.081, but I think they have simply been forgotten. I have a CCS support mail of Sep-15-2008, stating Someone is looking at the interrupts now, which he apparently keeps doing.

Using GB definition files instead of GA helped me as a workaround. It produces an error with ICD-U40, but the latter isn't yet working with PIC24FJ128 anyway. You may want to browse my last months forum contributions to learn about other potential PCD/PIC24 traps. I didn't yet check, which bugs have been fixed from V4.079 to V4.081, it may be one or two according to the version history.

However, I got my GA106 application working (with V4.079).

Best regards,
Frank
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
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