Hallo,
I set
PORTF_DIRset:= %11110011;
and then
PORTF_OUT:=%10000000; // Status LED1
delay_ms(200);
PORTF_OUT:=%00000000;
delay_ms(200);
This works..but I USE UART
UARTF0_Init(4800);
then I can't toggel the LEDs anymore?!?
XMEGA PortF and Uart/Pin Problem
- marina.petrovic
- Posts: 2986
- Joined: 18 Apr 2013 08:11
Re: XMEGA PortF and Uart/Pin Problem
Hi,
Please, can you tell me which microcontroller you use?
Did you test UART communication separately to make sure whether it's work properly?
Best regards,
Marina
Please, can you tell me which microcontroller you use?
Did you test UART communication separately to make sure whether it's work properly?
Best regards,
Marina
Re: XMEGA PortF and Uart/Pin Problem
Hallo, Xemag128U3.
Uart works fine, pin in and aout too..but i I use UartF0 then Portf seems disables for toggeling
Uart works fine, pin in and aout too..but i I use UartF0 then Portf seems disables for toggeling
- marina.petrovic
- Posts: 2986
- Joined: 18 Apr 2013 08:11
Re: XMEGA PortF and Uart/Pin Problem
Hi,
I can't see any problem in the part of the code that you posted.
Did you try to toggle some other port LEDs, just to be sure that problem is in PORTF LEDs?
If I am not wrong, ATxmega128A3 USARTF0 is connected with PF1 (XCK0), PF2 (RXD0) and PF3 (TXD0) pins.
Best regards,
Marina
I can't see any problem in the part of the code that you posted.
Did you try to toggle some other port LEDs, just to be sure that problem is in PORTF LEDs?
If I am not wrong, ATxmega128A3 USARTF0 is connected with PF1 (XCK0), PF2 (RXD0) and PF3 (TXD0) pins.
Best regards,
Marina
Re: XMEGA PortF and Uart/Pin Problem
yes, all other ports toggeling, if UART is on or not no problem only port f has the problem
Re: XMEGA PortF and Uart/Pin Problem
I found it
If I initialize Uart first and then the IN/Outputs then it works
If I initialize Uart first and then the IN/Outputs then it works
- marina.petrovic
- Posts: 2986
- Joined: 18 Apr 2013 08:11
Re: XMEGA PortF and Uart/Pin Problem
Hi,
I am glad that you manage to solve your problem.
Best regards,
Marina
I am glad that you manage to solve your problem.
Best regards,
Marina