Skip to main content

Questions tagged [avr]

AVR is a 8- and 32-bit microcontroller core developed by Atmel. AVR was chosen as microcontroller for the first generations of the popular Arduino SBCs.

157 questions with no upvoted or accepted answers
5 votes
1 answer
1k views

AVR: Usage of Force Output Compare bits

Currently I'm dealing with Tiny2313 for my project. Timer runs in CTC (WGM12) mode so OCR1A is used to set TOP of the timer. I want to use OCR1B to generate output signal. In documentation is ...
kolibri's user avatar
  • 171
4 votes
0 answers
5k views

How to get an ENC28J60 to work?

For starters: Yes I know I'm about to reinvent the wheel with the following task ahead. I want to create my own library for the ENC28J60 for an AVR (ATMEGA1284P). So I've been browsing the net for ...
Balázs Bagi's user avatar
3 votes
0 answers
52 views

PID H-bridge random current spikes

My H-bridge consists of 4 n-channel MOSFETs. The high side is driven by a basic bootstrap circuit, and the low side is directly driven from the MCU. Using a PID function to control the motor by its ...
Ralfs Volis's user avatar
3 votes
0 answers
69 views

Minimum circuitry for robust operation of the "new" ATtinys (1614) with Optiboot

I have spent hours now trying to catch up on the replacements for the old ATtiny's, there does not seem to be a robust (meaning, with protections that we could find in an UNO or Mega for example) ...
user325962's user avatar
3 votes
0 answers
418 views

ISR won't modify a global variable (IAR)?

First, some background on what I'm working on. I have a custom board with ATmega324A that I designed as part of a project I'm working on. Originally, software for the uC was written for GCC in Atmel ...
0xd4v3's user avatar
  • 109
3 votes
0 answers
277 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 ...
Jubatian's user avatar
  • 241
2 votes
0 answers
3k views

What Is the Best Way to Debug an AVR Microcontroller Using the Command Line?

My AVR programming method is usually as follows: compile the source code with avr-gcc: ...
Kalcifer's user avatar
  • 245
2 votes
1 answer
155 views

Configuring the Ports of an AVR Microcontroller for SPI Use

I am trying to configure the an ATtiny84A for use with SPI, but I have some confusion with what Is being said in the datasheet for configuring the ports. The ATtiny84A has, what the datasheet calls, &...
Kalcifer's user avatar
  • 245
2 votes
0 answers
390 views

MAX7221 not always powering on

I have a MAX7221 SPI 7-seg. LED driver linked to an AVR168P microcontroller. Sometimes when powering on, everything works as expected. Other times the display blanks and remains blank. Other times ...
Andy Preston's user avatar
2 votes
0 answers
244 views

Deployoing compiled program from Atmel Studio or Avr dude to Atmel "XMEGA-A3BU Xplained"

Im attempting for the last 3-4 days to connect the Atmel dev board to the computer in order to either load the .elf or hex file to the bootloader in order to turn on a LED. Im following instructions ...
cyber101's user avatar
2 votes
0 answers
2k 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 ...
user8351154's user avatar
2 votes
0 answers
2k 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. ...
Mark's user avatar
  • 1,235
2 votes
0 answers
982 views

AVR interrupt setup seems to stop program execution

On ATMEGA168PA I have problems with interrupt-driven character reception over UART. When I include the line setup_interrupt() it seems that program execution stops ...
Reidar Gjerstad's user avatar
2 votes
0 answers
310 views

ATtiny85, timer 1B does not work if COM1A1|COM1A0==0

I read the datasheet, and checked http://www.avrfreaks.net forum, but I cannot understand why on an ATtiny85: ...
Fabio Dalla Libera's user avatar
2 votes
1 answer
604 views

Pullup Rise Time On AVR External Interrupt

Background I am designing a simple lamp dimmer using the Atmel ATTiny441 microcontroller. To this end, I have designed a very basic zero-cross detector which feeds the external interrupt pin (INT0) ...
MysteryMoose's user avatar

15 30 50 per page
1
2 3 4 5
11