Way to switch serial port pins on Xmega32E5

bgoolsby
 
Avatar
 
Subject:

Way to switch serial port pins on Xmega32E5

 · 
Posted: 21.10.2016 - 01:41  ·  #1
On the Xmega32E5, serial port SerPortD0 defaults to pins PD3 and PD2. The chip supports alternate pins PD7 and PD6. Is there a way in the compiler to switch to the alternate pins?
Harald_K
 
Avatar
 
Subject:

Re: Way to switch serial port pins on Xmega32E5

 · 
Posted: 21.10.2016 - 11:07  ·  #2
Hello, bgoolsby

Just take a look in the datasheet of the processor and change the reisters according to the desired pinning.

normally, the registers can be accessed like any other variable by their name.

the correct typing ofthe name you wil lfind in the .dsc-file of the processor or in the generated .asm-file of your project
bgoolsby
 
Avatar
 
Subject:

Re: Way to switch serial port pins on Xmega32E5

 · 
Posted: 21.10.2016 - 19:09  ·  #3
Thanks, Harald. I set bit 4 of the REMAPD register and it works! Nifty.
Selected quotes for multi-quoting:   0

Registered users in this topic

Currently no registered users in this section

The statistic shows who was online during the last 5 minutes. Updated every 90 seconds.
MySQL Queries: 15 · Cache Hits: 13   64   77 · Page-Gen-Time: 0.042654s · Memory Usage: 2 MB · GZIP: on · Viewport: SMXL-HiDPI