Questions tagged [xmega]

A range of 8/16-bit microcontrollers produced by Atmel Corporation.

58 questions
22
votes
4 answers

Crystals and load capacitance

If a crystal has a rated load capacitance of 6 pF, is the right thing to do to put a 6 pF capacitor to GND on either leg of the crystal? I'm using it as the clock source (TOSC) for an XMEGA and it's got a max ESR of 50 kOhm (which is within…
vicatcu
  • 22,499
  • 13
  • 79
  • 155
12
votes
7 answers

AVR Random Number Generator

I've read an appnote from TI (slaa338) that describes a technique for generating "for real" (as opposed to "pseudo") random numbers. It exploits the somewhat exotic clock subsystem of the MSP430 to achieve this goal. Does anyone know of a technique…
vicatcu
  • 22,499
  • 13
  • 79
  • 155
8
votes
2 answers

Is it really necessary to manually clear the XMEGA timer overflow interrupt flag?

As some of you may know, Atmel provides a software framework (mainly as part of Atmel Studio) that provides drivers and examples and is updated on a more or less regular basis. In a recent update they explicitly point out, that it is important to…
Rev
  • 10,017
  • 7
  • 40
  • 77
6
votes
3 answers

What is the state of XMEGA programming from Linux?

What are the hardware and software options for programming an XMEGA from Linux?
joeforker
  • 5,596
  • 10
  • 38
  • 59
6
votes
6 answers

What is the behavior of an unprogrammed MicroController?

Problem: I get Errors when trying to connect to the MicroController using the PDI interface. How does a MicroController behave when it hasn't been programmed? Is there a pin that will toggle to show me it's OK? Kind of a hardware "Hello World"? I…
James
  • 322
  • 3
  • 11
5
votes
1 answer

Atmel Xmega PWM problem

I am trying to get the pwm working on the Atmel Xmega256A3BU. I am not getting the desired PWM on the port pin. Here's my initialization for the PWM generation in the code. void pwm_init() { PORTC_DIR = 0x01; //Set PC.0 as the output…
Jimit
  • 423
  • 5
  • 14
4
votes
1 answer

Chosing XTAL Capacitors for Microcontroller

I am trying to chose the parallel capacitors for the crystal on my micro-controller. The crystal is a 9.6MHz quartz crystal (chosen because 9.6MHz is good for UART communication). Going through the equations I get a value of 32.29pF. This seems…
EasyOhm
  • 4,609
  • 26
  • 35
4
votes
2 answers

Capturing a 16.368MHz data stream with a MCU running at 32MHz

I have a 32MHz MCU (Atmel XMEGA A4) and I need to recover a digital signal coming from a GPS front end chip which is outputting SIGN and MAGNITUDE data at 16.368MHz. Clearly this is a hell of a task for the XMEGA running at only 32MHz. Is there…
MattCochrane
  • 356
  • 3
  • 10
4
votes
1 answer

Using AVR Dragon with Atmel Studio 6

I have an Xmega Xplained 128A1 kit along with an AVR Dragon. Can anyone help me with the steps to be followed for programming Xmega using Dragon using Atmel Studio 6? I have downloaded the material from the Atmel website and have the necessary codes…
Enthusiast
  • 477
  • 1
  • 5
  • 17
4
votes
2 answers

XMega Software Interrupt?

Does anyone know if there is a way to cause a interrupt via software? Right now I am setting up a timer at a very low timeout 1ns and then using that to cause the interrupt. Sorry if this is a dumb question... I think there has to be a better way…
ril3y
  • 571
  • 1
  • 6
  • 14
4
votes
1 answer

Reading a pin as an input on AVR XMEGAs

I have been messing with AVR's XMEGA line. They are pretty amazing microcontrollers. However, Atmel changed much with this new line. I am trying to detect a pin going low. I have tried to set the PINnCTRL register to every combination with no luck.…
ril3y
  • 571
  • 1
  • 6
  • 14
3
votes
2 answers

Shifting voltage level for reading sensor output on microprocessor

I realized a prototype-board with an old ATmega8 and a particle dust sensor. Both supplied with the 5V. The sensor output voltage is normally high (>4V), and falls below 0.7V if the sensor detect the presence of the dust. The percentage of dust…
Mark
  • 75
  • 7
3
votes
0 answers

Why accessing the SRAM is slower with AVR XMega load instructions?

The AVR XMega has 16 GPIO registers in I/O space in addition to its internal SRAM. Interestingly the timing of LD instructions differ to these locations: Accessing the (rather large) I/O space is faster than accessing the internal SRAM. This can be…
Jubatian
  • 241
  • 2
  • 10
3
votes
1 answer

Naming and grouping individual pins with the ATXMEGA

I am new to using atxmega chips (atxmega128a1 specifically) so sorry if my question is not worded in a "professional" way! So far in order to set or clear a pin I use the following programming in C: PORTA.OUTSET = PIN1_bm; PORTA.OUTCLR =…
Sam Bucca
  • 95
  • 7
3
votes
1 answer

Is there a tool to generate .svf file for XMEGA programming?

There is a tool called avrsvf that can be used to convert .hex file to .svf for JTAG programming of AVR devices. The tool, however, does not support XMEGA devices. Is there a similar tool for XMEGAs?
avakar
  • 3,014
  • 2
  • 17
  • 18
1
2 3 4