All Questions
91
questions
0
votes
0
answers
63
views
AT90USB1286 bricks after disabling clock divider
I have an AT90USB1286 which is connected to a 16MHz external crystal oscillator. It is my understanding that by default from the factory the CKDIV fuse is enabled which makes the chip run at an ...
1
vote
1
answer
1k
views
AVRDUDE verification error
I've been working with AVR microcontrollers (specifically with ATmega328p's) for a bit and I got an ATmega32u4 that I wanted to program it to be used as a USB peripheral. However there is one problem: ...
0
votes
1
answer
113
views
How does the ATMega32 know that the incoming SPI data signals are the program to be burnt?
From my understanding, in order to burn a C program to the ATMega32's flash memory, the program is first compiled and converted into a hex file which is then uploaded using a computer program such as ...
2
votes
2
answers
561
views
How to do a factory-reset on an AVR micro-controller?
I'm programming an ATmega32 chip, and have set some bits as 1 in some DDRs and PORTs. In case I forget what bits I had set to 1, is there a way to set all the register bits to a value(1 or 0) that was ...
1
vote
1
answer
145
views
Why does AVRDUDE require part ID as an input parameter when it detects the device signature by itself?
When I type the following in terminal
avrdude -p m32 -c usbasp
I get the following as output
...
2
votes
1
answer
225
views
Unusually long programming times with ATmega328p
I'm programming an ATmega328p using avrdude, and with a program size of 3074B, I am experiencing approximately 13 seconds of programming time. This is painfully slow when developing with the ...
1
vote
0
answers
199
views
ATmega328P presumably dead after probable SPI short circuit
I am trying to use an ATmega328P to interface an SPI device (RFM95W radio module). This worked pretty well (I could measure the correct signals on SCK, MISO, MOSI and CS), but after some programming ...
1
vote
1
answer
230
views
Attiny13 affects USBtiny programmer logic voltage levels
I wanted to port a simple program from an Attiny85 to the cheaper Attiny13. To make sure everything would work properly I started trying to upload a simple blink program to the MCU but could not get ...
0
votes
1
answer
534
views
Avrdude Does not Read What it Wrote Correctly
Question
I am getting back into Atmel AVR programming after nearly a decade off. To this end, I am trying to get the usual blinken lights demo working. Unfortunately this does not function, though ...
1
vote
1
answer
303
views
AVR ATtiny1634 - Programming Issue
I've have already used Arduino as ISP Programmer to load codes to Atmel chips like ATmega328p and ATmega8 quite a few times without any problem.
On my last project though, I decided to use an Atmel ...
1
vote
2
answers
869
views
ATMEL STUDIO: avrdude.exe: ser_open(): can't open device
I just followed all the instructions to set up Atmel Studio on a new computer for the ATmega2560. Bare in mind that I have already had Atmel Studio installed on another computer where it worked fine, ...
0
votes
1
answer
168
views
(Noob question) Placing parts of a byte in different (parts of) registers
Background: I'm trying to get a gLCD working with an Atmega328p. I got it to work quite easily, but there was one catch: the library that I found, used portB for the datapins. This was unacceptable, ...
0
votes
1
answer
234
views
What could cause a microcontroller on a board not to accept programming?
EDIT: To summarise - when I take the microcontroller off the board, it works. But when I leave it on the board and try to program it, I cannot.
I have designed a PCB and had it fabricated. This PCB ...
2
votes
2
answers
12k
views
How can I program an Atmega32u4 over USB with this schematic?
This is my first time trying to program an Atmega32u4. I made a PCB with the following schematic:
Now I've soldered all the parts onto the PCB, and I've plugged a micro usb cable from my computer ...
2
votes
1
answer
2k
views
Bricked ATMEGA328PB by setting low fuse to 0xF5 - How to recover?
While programming an ATMEGA328PB via ISP, I wanted to set the efuse to 0xF5.
By accident, I didn't write the efuse but the lfuse instead.
Since then, I cannot communicate with the chip via ISP ...