Questions tagged [atxmega]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
27 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: ...
0
votes
1answer
39 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
1answer
15 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
0answers
26 views

How to calculate Pulse width using TIMER in Capture Mode

i am trying to implement Atmel example about using TIMER0 Capture Mode to measure duty and frequency, you can find the full example at Github At (CCA ISR) we have the following code: ...
0
votes
1answer
42 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
1answer
47 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 ...
0
votes
1answer
104 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
85 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
78 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
2answers
51 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 ...
1
vote
1answer
160 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
1answer
580 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
1answer
69 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
3answers
974 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
1answer
235 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
2answers
463 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
229 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 ...
1
vote
3answers
10k views

SD card Sector size

I am working with an SD card using AVR microcontroller. Questions: Is it possible to change the sector size of SD cards or is it fixed 512 bytes in SD card's case? What things should be considered ...
0
votes
3answers
299 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
1answer
139 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
1answer
187 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
387 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
2answers
157 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
1answer
400 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
1answer
321 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
1answer
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
1answer
348 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
2answers
241 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
1answer
550 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
2answers
594 views

getting the right frequency on XMEGA

I've wrote a small program that runs on an XMEGA : ...
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 ...
0
votes
1answer
970 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
1answer
3k 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
1answer
348 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
236 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
3answers
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
1answer
162 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
1answer
732 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
1answer
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) ...