Connecting usb mini to atxmega256a3bu to program it using PDI

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

 I know that programming the atxmega256a3bu using PDI requires the use of PDI_DATA and PDI_Clk on the microcontroller but the USB mini uses five wires. Which pins of the microcontroller should be connected to the USB mini? and where should the rest of the wires go?

 How do I ensure that the usb mini when connected to a computer and the microcontroller will  power the microcontroller safely?

I am a beginner in atxmega256a3bu and I am designing a schematic for a project.

 

 

This topic has a solution.
Last Edited: Tue. Apr 6, 2021 - 07:59 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

What is a  USB mini ?

:: Morten

 

(yes, I work for Microchip, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

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

I am referring to the usb connector used on the xmega-a3bu xplained development board

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Akandison wrote:
Which pins of the microcontroller should be connected to the USB mini?
D+, D-

Akandison wrote:
and where should the rest of the wires go?
VBUS to the voltage regulator input, GND to GND

Akandison wrote:
How do I ensure that the usb mini when connected to a computer and the microcontroller will  power the microcontroller safely?
Typically USB VBUS will have a PPTC to current limit a short; PolyZen adds a zener diode to shunt when the USB hub's VBUS pass transistor shorts (defective wall wart)

 


Wayback Machine (MattAirTech, schematic, upper left)

 

Standard PolyZen Devices Overvoltage-Overcurrent Protection - Littelfuse

ZEN059V130A24LS

 

"Dare to be naïve." - Buckminster Fuller

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

The USB on the xplained board is unrelated to pdi

:: Morten

 

(yes, I work for Microchip, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

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

Thanks for your help.

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


Akandison wrote:
xmega-a3bu xplained development board

So this: 

 

 

https://www.microchip.com/DevelopmentTools/ProductDetails/PartNO/ATXMEGAA3BU-XPLD

 

The board documentation is all there.

 

It tells you that the USB connector give a Virtual COM Port (VCP), and there's a bootloader for programming via that port.

 

There are separate headers for JTAG and PDI:

 

https://www.avrfreaks.net/forum/xmega-a3bu-xplained-atmel-ice-jtag

 

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...