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 CCS Technical Support

PIC24FJ1024GB606, six UART support issue CCS v5.091 [Solved]

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



Joined: 24 Feb 2014
Posts: 10

View user's profile Send private message

PIC24FJ1024GB606, six UART support issue CCS v5.091 [Solved]
PostPosted: Sat Sep 05, 2020 3:09 pm     Reply with quote

Hello all, thanks for any incoming help and have a good day.

I found some issue with the CCS and the PIC24FJ1024GB606, I need to use six UART port at the same time, but the CCS only can handle 4 UART at the same time, I checked the Header of this device and only show U1RX, U2RX, U3RX, U4RX, then I try to also use U5RX and U6RX I got errors in compilation because these are invalid pins ID not exist.

I use CCS v5.091 with MPLAB X ide v5.30 but with the CCS ide also I got the same errors.


Last edited by jartur32 on Sun Sep 06, 2020 6:49 am; edited 2 times in total
jeremiah



Joined: 20 Jul 2010
Posts: 1357

View user's profile Send private message

PostPosted: Sat Sep 05, 2020 3:41 pm     Reply with quote

I use a similar chip, and on it U5 and U6 are "hard pinned" and not PPS, so you cannot use #pin_select on them. You just specify UART5 and UART6 in the #use rs232() statements and don't bother specifying pins. Maybe yours is similar?

EDIT: CCS accepts this setup so I think that is the case:
Code:

#include <24FJ1024GB606.h>

#pin_select U1RX = PIN_B1
#pin_select U1TX = PIN_B2
#pin_select U2RX = PIN_B9
#pin_select U2TX = PIN_B4
#pin_select U3RX = PIN_B5
#pin_select U3TX = PIN_B6
#pin_select U4RX = PIN_B7
#pin_select U4TX = PIN_B8

#use delay(clock=8MHz)
#use rs232(UART1,errors,baud=9600)
#use rs232(UART2,errors,baud=9600)
#use rs232(UART3,errors,baud=9600)
#use rs232(UART4,errors,baud=9600)
#use rs232(UART5,errors,baud=9600)
#use rs232(UART6,errors,baud=9600)


void main() {
   
   while(TRUE);
}
Ttelmah



Joined: 11 Mar 2010
Posts: 19549

View user's profile Send private message

PostPosted: Sat Sep 05, 2020 11:40 pm     Reply with quote

Spot on.

If you look in the data sheet, you will find that U5 & U6RX together with
U5 & U6TX don't exist in the PPS table, and as Jeremiah says only support
operation to their hardwired pins.
jartur32



Joined: 24 Feb 2014
Posts: 10

View user's profile Send private message

PostPosted: Sun Sep 06, 2020 6:52 am     Reply with quote

Thanks a lot, now I can make tests with the six UART port, I only made some change in the assignation pins and for now, I donĀ“t see problems, thanks and have a good day
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