Questions tagged [atxmega]
A range of 8/16-bit microcontrollers produced by Atmel Corporation.
43
questions
2
votes
1
answer
301
views
Memory view is showing multiple bytes change after a single byte is assigned to a register. Why?
I am debugging an issue I have on a legacy codebase that is running on an atxmega32c4u chip. I am writing single bytes to registers in PORTC, but the memory view is showing multiple bytes change. The ...
0
votes
1
answer
194
views
Does a firmware (flash memory) in atmel mcus change on runtime (to store variables for example)?
EDIT: I am purposely trying to corrupt my ATxmega32E5 flash memory.
I am disabling my BOD level on my ATxmega32E5 and checking how it affects my MCU by switching the power on the mcu on and off with a ...
0
votes
1
answer
303
views
ATXMega ADC - What is bandgap reference and temperature?
On my ATXMega128A1U, I am using ADCA to measure an input voltage (roughly ~1.70V) and I plan to use a VREF of 2.5V. I was reading the XMEGA manual, specifically for the REFCTRL register where I would ...
0
votes
0
answers
304
views
Implementing UART driver with Interrupts and DMA - UART_RXC ISR is executed only first time a character is received
I am using ATxMega 32E5 and my current task is to rewrite existing RS485 driver and use DMA to save in my case
valuable cycles (the speed is going to be multiplied by 8x going from 230k to 2M baudrate)...
0
votes
1
answer
25
views
What is the minimum amplitude level of the input signal to trig the capture interrupt in xmega timer
Dears
I have a collection of wires connected to xmega256, 8 for porta, 8 for port b where portb used to trig 8 ultrasonic sonsors and porta used to echo that sensors, I have implemented the measurment ...
0
votes
1
answer
118
views
How to interface HCSR04 ultrasonic sensor with ATxmega256A3?
I have to interface HCSR04 with ATXMega256. I am using the TCC0 Timer in Capture mode with setting it to capture pulse width, using Event System Channel 0 source: ...
1
vote
1
answer
192
views
Atmel Studio Does not fire accurate timer interrupt
i have atxmega256A3u with external 16Mhz crystal, i set the system clock to use that oscillator source as
...
0
votes
1
answer
176
views
Triggering event from timer compare channel on ATXmega when timer is set to single-slope PWM mode
I am writing firmware for an ATXmega. I have a timer configured in single-slope mode to output a PWM signal. I need one of the xmega's event channels to trigger in the middle of that signal. I thought ...
0
votes
1
answer
99
views
how to implement Atxmega256 Port external interrupt
i have Xmega25, i have to use port interrupt for eight ultrasonic echo signals, i am using ISR to start and stop the timer0 and read the timer value to determine the echo pulse width, i have to do ...
0
votes
1
answer
116
views
XMega External Real Time Oscillator Capacitor Values
In application note AVR1012 (XMEGA A Schematic Checklist) Atmel states the following:
The Low-frequency Crystal Oscillator provides an internal load
capacitance of typical
8.0 pF. Crystals with ...
2
votes
1
answer
762
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 ...
1
vote
1
answer
526
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
2
answers
88
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) ...
1
vote
2
answers
105
views
Meaning of the different ports in the XMEGA PR.PRPA and PR.PRPB power reduction registers?
What is the difference between the two power reduction registers PR.PRPA and PR.PRPB on the XMEGA B family chips?
They share a ...
2
votes
1
answer
227
views
Do I have to use a MAX485 chip in front of an ATXMega microcontroller?
I'm doing a project which involves receiving DMX 512 information on an ATXmegaA3u microcontroller. I've successfully implemented the protocol using the onboard USART of the microcontroller. Basically, ...
0
votes
1
answer
1k
views
ATxmega: reading a register with TWI/I²C
I am trying to read a register value from the Bosch BMA280 with the ATxmega. But I cannot make it work. The code I tried looks like this:
...
0
votes
1
answer
84
views
ATXmega128A1 USARTD0 RX not working, but F0 does with the same code
I have a problem with my atxmega128a1. I wrote a code using 3 usart interfaces. The init code is the same, but only two of the ports works fine.
The problem is with USARTD0 (and I tried USARTD1, but ...
0
votes
4
answers
2k
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?
0
votes
1
answer
349
views
Atmel ATxmega128A identical boards - one fails to enter programming mode
I have two identical boards both equipped with ATxmega128A. I am using Atmel-ICE for programming using PDI Interface.
The first board, I can read the device signature without any issues.
On the ...
0
votes
2
answers
675
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
1
answer
359
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 ...
4
votes
3
answers
25k
views
SD card sector size
I am working with an SD card using an AVR microcontroller.
Questions:
Is it possible to change the sector size of SD cards or is it fixed at 512 bytes in SD card's case?
What things should be ...
0
votes
3
answers
447
views
AVR studio 6.2 flash atxmega32e5 signature issue
I am trying to flash my AVR ATXMega32E5 with Atmel-ICE thanks to SPI.
The problem is that from AVR Studio Device Programming it can read the Target Voltage but not the Device Signature.
What it ...
0
votes
1
answer
211
views
LDO issue for atxmega32e5 powering
Hello everyone!
I am trying to test this circuit, but actually I have some issues with LDO power supply!
Actually the problem is that, the two LDO: LDO_circuit and DLDO are working fine. I mean that ...
3
votes
1
answer
382
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 ...
0
votes
2
answers
444
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 ...
0
votes
2
answers
161
views
How does the force given by bi-polar stepper motor relate to the delay between the steps?
We are using the following Bi-polar motor.(Haydon Kerk 25343-05).
https://prototypes.haydonkerk.com/ecatalog/can-stack-linear-actuator/en/linear-actuator-25343-05
You will find the specs of the ...
0
votes
1
answer
583
views
Trouble with communicating with an AD5292
I have an AD5292 connected to an ATXMEGA's D port SPI and am supposed to communicate with it. Alas, it doesn't react to my commands.
(Instead of a "real" pullup resistor, I have activated the ATXmega'...
0
votes
1
answer
428
views
Bipolar stepper motor driving by Micro-controller Xmega
I am using Bipolar stepper motor Haydon Kerk 25343-05. My driver IC is DRV8833.
The micro controller I am using is ATXMEGA16A4U.
The bipolar stepper motor has 4 wires. 4 PWM output pins of ...
0
votes
1
answer
2k
views
speed control loop for line following Robot
I am working to control the speed in my line following Robot (using arduino uno),by using proportional constant Kp in a closed loop, in my code I calculate the RPM from The Right Motor and the Left ...
4
votes
1
answer
488
views
Interrupt never fires
I'm new to embedded and I've been struggling with this for days. I just don't understand why this doesn't work.
I'm using an ATxMega128A1. I want to use a timer overflow interrupt to left shift a bit ...
1
vote
2
answers
315
views
How to safely power on evaluation board?
I just got an Atmel XMEGA-A1 Xplained evaluation board and I'm trying to get started, but the documentation is a bit confusing to me.
Page 6 Section 4 has this warning.
Do not power the board ...
0
votes
1
answer
637
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 ...
1
vote
2
answers
786
views
getting the right frequency on XMEGA
I've wrote a small program that runs on an XMEGA :
...
1
vote
1
answer
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 ...
0
votes
1
answer
1k
views
XMega bootloader - How to make use of the functions in assembly source file
Its been two days I'm trying to write a Bootloader for ATXMega32E5. The Atmel studio doesn't have boot.h header file supporting XMega.
As a result of searching and ...
1
vote
1
answer
4k
views
Choosing between internal oscillator and external crystal- ATXMega32E5 [duplicate]
We are working with a modern microcontroller ATXMega32E5, from the ATMEL XMega family.
Our aim is to use the UART of the controller for effective communication, with the speed of about 9600 or 4800 ...
1
vote
1
answer
380
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
1
answer
260
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 ...
2
votes
3
answers
2k
views
Atmel Xmega ADC input voltage range - Can the ADC be damaged by exceeding it's reference voltage, if the input is still less then VCC?
I've been working with Atmels ATxmega parts a lot recently, and there is one question I still have that I have not been able to find a answer to, even after scouring the datasheets.
Basically, The ...
0
votes
1
answer
205
views
Powering the MCU (basic), is this circuit suitable?
Shown is a basic circuit diagram to power a MCU. I am using the recommended caps for the test circuit for the regulator.
Should I put a diode between the +ve terminal of the power source and the ...
2
votes
1
answer
803
views
Atmel AT86RF233 read phase measurement
I've started working with the AT86RF233 a few weeks ago and found the Ranging Toolbox (RTB) package quite impressive. It's the first time I'm using wireless modules, so I wanted to see if I could use ...
3
votes
1
answer
2k
views
UART/USART on XMEGA
I am making a design and using the ATXMEGA128A4U (datasheet) for the first time. I need to connect this MCU to two UART Modules (FTDI chip and Bluetooth module). I have two questions about this:
1) ...