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

how to use the serial E?

0 votes
when i debug the serial E,I define the macros before the main function.
#define SERE_TXP0RT PEDR
#define SERE_RXPORT PEDR // Defaults to PCDR
#define EINBUFSIZE 31
#define EOUTBUFSIZE 31

but it also have the problem that conflict with the programming port in debug mode.why?
my source code:
void main(void)
{
serEopen(BAUDRATE);
while(1)
{
serEputc(0x55);
}
}
related to an answer for: how to set before using the serial F?
asked Jul 11, 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
To use serial port E, there are samples. I only know the rs485 sample in the dc 9.62 package, but I am sure that sample carries over to 10.x. I use the programmer's port on the 3k and serial E without a problem. You have to toggle transmit and receive for it to work right.

Like I said, check the samples and you will see how to do it. You can also set more than the speed (i.e. data format, etc).
answered Jul 12, 2014 by developer New to the Community (10 points)
...