USART3 on UC3A Xplained board

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

Dear All, I´m new with ATMEL MCUs.

I´m trying to have USART1 and USART3 working at the same time on the UC3A Xplained board.

I´ve used the USART_Example1 supplied with ASF in Studio6 and USART1 is working, but when I use similar code to setup USART3 the port remains dead.

Anybody has an example of both USARTs working on this board (as RS232)?
Anybody has a good and detailed tutorial/manual on how to enable and config ports using the ASF driver?
The documentation available via the API is very limited.

By the way, USART_Example21 in ASF doesn´t work with the UC3A Xplained board.

Thanks in advance!

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

OK, now it works, I was not assigning the right pins to USART3 :oops:
I finally realised how the gpio_enable__module works and which definition to pick in the uc3_a3_xplained.h file based on the pin you want to assign to the peripheral. The light appeared at the end of the tunnel when I examined more carefully the "GPIO Controller Function Multipexing" Table 3-1 in the datasheet. Here you can clearly see the relationship between the GPIO number and the physical pin :wink:
Now it´s simple, but unless I missed something, I wish it was better explained in the API :cry: