Questions tagged [atxmega]

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

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

42 questions
4
votes
3 answers

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 if I want to change the sector size of SD card…
Sidk
  • 161
  • 1
  • 4
  • 11
4
votes
1 answer

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 on a port to the next pin. The timer works. I can…
RubberDuck
  • 260
  • 1
  • 10
3
votes
1 answer

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) Can someone confirm that I can use the USART pins…
EasyOhm
  • 4,609
  • 26
  • 35
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
2
votes
1 answer

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 the Phase Difference Measurement Unit (PMU) for…
Jan
  • 121
  • 2
2
votes
1 answer

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, 2 frame errors, then 512 valid bytes. Regarding…
2
votes
3 answers

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 ADC in the xmega series are somewhat limited by the…
Connor Wolf
  • 31,938
  • 6
  • 77
  • 137
1
vote
1 answer

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 easy way to do this?
bigjosh
  • 9,888
  • 29
  • 48
1
vote
1 answer

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 RSTDISBL fuse, but the XMEGA family does not seem to have a high voltage programming mode, so how do you program one of…
bigjosh
  • 9,888
  • 29
  • 48
1
vote
2 answers

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 single entry in the data sheet... ...with the same defined bits... but they are, in fact, two separate registers each…
bigjosh
  • 9,888
  • 29
  • 48
1
vote
1 answer

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 into the analog comparator, and route the output…
Brendan Simpson
  • 2,154
  • 12
  • 20
1
vote
2 answers

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 without having the jumper attached next to the USB…
RubberDuck
  • 260
  • 1
  • 10
1
vote
2 answers

getting the right frequency on XMEGA

I've wrote a small program that runs on an XMEGA : #include #include #ifndef F_CPU #define F_CPU 32000000UL #endif void system_clock_init(void){ CCP = CCP_IOREG_gc; /* allow changing CLK.CTRL…
Engine
  • 669
  • 2
  • 13
  • 29
1
vote
1 answer

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 migrated to ATXMega32D4, and I can cope up with…
gzix
  • 403
  • 9
  • 22
1
vote
1 answer

Choosing between internal oscillator and external crystal- ATXMega32E5

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 baud rate. We tested the controller with the…
gzix
  • 403
  • 9
  • 22
1
2 3