Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [xmega]

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

2
votes
4answers
107 views

Are the AVR GPIO registers used by AVRGCC?

Most (all?) of the AVR family controllers provide some special GPIO registers. 4.8.1 General Purpose I/O Registers The lowest 16 I/O Memory addresses is reserved for General Purpose I/O Registers....
0
votes
1answer
42 views

How can you read out the serial number of an XMEGA chip in a batch file during programming?

Each time I download the firmware into an XMEGA I would also like to save the chip's serial number to a batch file so I can keep track of which chips got which version of the firmware. Is there an ...
0
votes
1answer
42 views

How do you reprogram an XMEGA after you have disabled the `RESET` pin using the `RSTDISBL` fuse?

With chips like the ATMEGA and ATTINY you can use high voltage programming even after the RESET pin has been disabled using the ...
0
votes
2answers
70 views

Bluetooth programmer

Someone know if there is a way to program uC via bluetooth? I'm referring to a device that receives an hex/elf file from another BT device (smartphone or PC) and sends it to a uC (xmega in this case) ...
3
votes
0answers
148 views

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 ...
2
votes
0answers
420 views

Atmel XMEGA PDI Issue

I have an Xmega chip I've been using for a year and had no problems with the PDI interface programming it with the Atmel-ICE debugger/programmer. The problem is I accidentally connected the cable to ...
1
vote
3answers
104 views

AVR Xmega - Can I simplify this port / peripheral init code?

Let's assume a function that gets a port as a parameter, it sets up the SPI module on that port and also sets the required pins to an output state. The declaration looks something like this: ...
0
votes
1answer
637 views

Atmel AVR XMEGA-A USART MPCM (Multiprocessor communication mode) configuration with ASF 3.33

I'm using two XMEGA256-A3BU's on XMEGA-A3BU Xplained boards. My goal is to make MPCM (Multiprocessor communication mode) possible between the two using their USART in synchronous mode. They are ...
1
vote
3answers
259 views

xmega external crystal won't stabilize

I'm using an ATxmega64A3U, I've connected a 4MHz external crystal and two 18pF load caps. I'm using the ASF module for clock configuration, however when starting up I can see that the code hangs in ...
1
vote
0answers
482 views

Atmel AVR XMEGA I2C/TWI max speed

I'm planning a communication bus between one ATxmega256A3U and multiple ATxmega64A3s. The challenge is that I need to use as few wires as possible, so I would like to address the slaves without a ...
0
votes
2answers
460 views

preventing Rx/Tx data clashing on a xmega USART

I am using the USART module on an atxmega128a1 to communicate with a PC, and I've noticed that receiving and transmitting a byte uses the same data register address: My question is then, if I am in ...
0
votes
3answers
778 views

How to disable & enable the JTAG fuse in code on AtXmega MCU?

An application sheet suggested that by disabling the JTAG interface fuse (JTAGEN) the current consumption of the MCU will drop a bit. Can this be done from within the code itself?
1
vote
0answers
896 views

DRV8711 SPI mode

I'm facing some problems with SPI bus of DRV8711 (http://www.ti.com/lit/ds/symlink/drv8711.pdf). Repetitive reads of the same register give the same values but the communication doesn't seem reliable. ...
7
votes
2answers
698 views

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 ...
0
votes
2answers
398 views

Configuring events on Xmega

Is it necessary to enable the interrupt for a given event source in order for the event to fire, or is it only necessary to select the source from the event system? To clarify, I am asking about the ...
1
vote
1answer
208 views

Event triggered one shot on XmegaA4U

I am trying to implement a phase control circuit for driving a TRIAC/SCR. I plan to use an xmegaA4U series microcontroller. I already know that I can route the AC signal through a voltage divider and ...
2
votes
3answers
508 views

Updating Multiple Ports on 8bit AVR in Single Cycle

On the 8bit Atmel AVR MCUS (specifically mega and xmega series), is it possible to simultaneously modify multiple ports in a single instruction cycle? For example, I have a 512kB RAM chip which ...
0
votes
1answer
460 views

xmega serial communication using MAX3232

Hi I am trying to talk to send a character to the PC using the xmega128a1 and the MAX3232 USART to Serial converter chip. Here is my setup and "send char" function below: ...
3
votes
1answer
158 views

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: ...
0
votes
2answers
343 views

Interfacing atxmega128a with SD Card

So I was trying to write a code to connect an SD card to my atxmega128 . Code is nearly ready but when I want to compile it in Atmel Studio, I get errors about not declaring some codes. Some of the ...
2
votes
2answers
556 views

How do I enable the internal 32MHz clock on an XMEGA avr in assembly?

This is the C code that I currently use to enable the 32MHz clock: ...
-1
votes
1answer
390 views

Xmega128C3 TWI read error

I'm interfaceing an Xmega128C3 with MMA8451Q acceleration sensor via i2c. I was able to initialize the accelerometer, I checked every transmission on oscilloscope, it was done properly. The problem ...
3
votes
1answer
2k views

Using XMEGA timer

I want to use the timer in XMEGA to know how long it takes for a function to be done: ...
1
vote
1answer
1k views

Interrupt on the XMEGA

I have 3 buttons connected to PIN1, PIN3, PIN5 of PORTA of an XMEGA. If pushed they deliver a falling edge. I'm try to generate interrupt using those buttons, I started with one, here is what I ...
0
votes
1answer
529 views

What is the real ADC Sample rate for Xmega256A3BU or similar xmega controllers

Based on the datasheet of XMEGA controllers, it has sample rate up to 2Msps (2MHz sampling speed). But it is also written that the conversion time for 12-bit need 3.5µs which gives ca. 300 KHz real ...
0
votes
1answer
530 views

Changing ADC clock speed does not change sampling speed [XMega]

I am trying to measure how fast my ADC samples arrive on an XMega128A4U. I have set up a timer and the ADC, and each time I have a result I let the DMA pull the CNT register from the timer and the ...
1
vote
2answers
564 views

XMega Get Clock Speed

I'm doing some debugging on my project and I need to check if I'm setting my external crystal correctly. I have the ability to print out to a serial monitor via usb, is it possible to retrieve the ...
0
votes
1answer
704 views

XMega not responding PDI/avrdude

I am trying to get started with xmega and have a ATxmega32A4U on a breakout board with 4 100nF caps for decoupling and a Zeptoprog programmer connected to the 2 PDI pins, ground and Vcc I'm not ...
2
votes
1answer
351 views

Learning AVR XMEGA

I am trying to learn how to program the AVR XMEGA by using the XMEGA-A1 Xplained kit with a JTAGICE3 programmer. I am going through the Xmega Basics pdf (link). In one of the instructions I am told ...
1
vote
1answer
2k views

ATXMega32D4 Two Wire Interface

Lately i have been using ATMega32A and ATMega324PA and learnt various coding techniques in AVR C programming. One such code i wrote is avr_twi.c for communicating with an I2C accelerometer Now i got ...
1
vote
1answer
341 views

Assembly XMEGA program creating a longer than expected pin toggle?

I'm trying to do the fastest pin toggle possible on an XMEGA32E5 running at 32MHz. My code is as follows: ...
0
votes
1answer
240 views

Microchip 23LC1024 driver for Atmel XMega

Is there driver or any example code available for 23LC1024 SRAM memory implemented with Atmel XMega or mega-series microcontroller?
0
votes
1answer
228 views

PF10 in atmel ATxmegaxxxA1U

Atmel AVR1916: USB DFU Boot Loader for XMEGA application note reports that for the ATxmegaxxxA1U the pin for starting the programming is PF10, but the devices has no such pin, as shown in the ...
1
vote
1answer
928 views

How to detect which timer interrut called callback when using ASF?

I have a general function, which gets passed among others a timer. It initializes the timer using common callback function: ...
1
vote
1answer
330 views

Xmega ADC ground as internal input

Someone knows if it's possible to set the internal ground as input in the ATXMega256A3BU? I need it to find the zero offset.
4
votes
1answer
462 views

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 ...
4
votes
2answers
198 views

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 ...
5
votes
1answer
3k views

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. ...
1
vote
0answers
2k views

XMega waveform generation with DMA and USART

I'm using an Atmel XMEGA128A4U. I need to generate a high speed digital waveform with minimal CPU overhead, and have set up a USART to output the waveform and DMA to transfer data from a table to the ...
4
votes
1answer
7k views

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 ...
3
votes
2answers
403 views

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 ...
2
votes
1answer
3k views

Xmega Port Read/Write

How to access the Pin directly to read or write data? If I want to write data on pin6 how can I do that? Or if I want to read data from a specific pin.
1
vote
1answer
2k views

Is RESET* on the XMEGA disabled when using the PDI interface?

When PDI CLK is connected on the XMEGA (also the RESET*) pin, can this pin still be used to trigger a reset on the chip? If so, how does the chip tell the difference between PDI being used as a clock ...
6
votes
6answers
2k views

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 ...
3
votes
1answer
554 views

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?
2
votes
2answers
829 views

How does Atmel's XMEGA numbering scheme work?

Atmel has several series of XMEGA chips. How does the numbering scheme work?
18
votes
4answers
4k views

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 ...
6
votes
3answers
2k views

What is the state of XMEGA programming from Linux?

What are the hardware and software options for programming an XMEGA from Linux?
2
votes
1answer
1k views

Can the STK500 program an XMEGA?

Can the STK500 program the XMEGA as it arrives from Atmel?
12
votes
7answers
7k views

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 ...