Does USART in ATxmega128A1U-AU are multiplexed?

Go To Last Post
6 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

We have below technical queries regarding ATxmega128A3U-AUR and ATxmega128A1U-AU microcontrollers.

 

  1. In the data sheet it is mentioned that there are 7 and 8 UARTs respectively however, in the data sheet while looking at the Pin out description, it can be seen that there are only 2 UARTS (UART0 and UART1) with multiplexed pins on different ports. Can you please let us know if we can use more than 2 UARTS (in our case we wish to use 3) in the design which should work indepnedently simulataneously?
  2. Regarding evaluation board STK600 for ATxmega128A1U-AU, it does not contain the USB functionality in it. Can you please let us know the evaluation board which contain USB functionality as well.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi !

 

Each port has its own UART(s). When the datasheet says for example PORTC:USART0-USART1 it means that there are 2 independant UARTs on the PORTC. Depending on the device, it can be 0, 1 or 2 UARTs on PORTx. You'll have to look at the datasheet.

Since it is really a module each time, i.e. USARTC0, USARTC1, USARTD0, ... I would say that they are independant. But I recommend to test first !!

Regarding a dev board, the A3BU xplained comes to my mind.

Have a nice day,
Kraal

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

1. You can do this by using interrupts. Each of the the up to 7 UART/USART has its own I/O pins. See application note AVR1307 for sample code.

 

2. eg "XMEGA A1U Xplained Pro Evaluation Kit" has USB support. (http://www.atmel.com/tools/atxmegaa1u-xpro.aspx)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The  two USARTs on a port are independent.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Welcome to the Forum.

 

Just to be clear, all of the USARTs are independent.

 

JC

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Whereas an old AVR would have UART0, UART1, USART2, ... UART7, the xmegas add the port designator as well.  Quoting the A1 datasheet:

 

PORTC, PORTD, PORTE, and PORTF each has two USARTs.

Notation of these peripherals are USARTC0, USARTC1, USARTD0, USARTD1, USARTE0, USARTE1, USARTF0, USARTF1, respectively.