Home/Support/Support Forum/how to set before using the serial F?
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

how to set before using the serial F?

0 votes
hello,i am using the RCM6760 and RCM 6700 now,want to know how to set before using the serial F?my source code below:
#define FINBUFSIZE 31
#define FOUTBUFSIZE 31
#define BAUDRATE 9600
void main(void)
BitWrPortI(PDFR, &PDFRShadow, 1, 2);
BitWrPortI(PDFR, &PDFRShadow, 1, 3);
it cann't work,why?thank you!
asked Jul 10, 2014 in Rabbit Software by huanghao New to the Community (1 point)

Please log in or register to answer this question.

1 Answer

0 votes
Best answer
I assume you are attempting to use PD2 and PD3 with the BitWrPortI() statements instead of the default PC2 and PC3.

There are macros that you should be using instead(see RS232.lib):

#define SERF_TXPORT PDDR // Defaults to PCDR
$define SERF_RXPORT PDDR // Defaults to PCDR
answered Jul 10, 2014 by trooper2 Veteran of the Digi Community (589 points)
selected Jul 11, 2014 by huanghao
thank you for your answer.it can work now!
how to use the serial E?