Skip to main content

All Questions

Tagged with
0 votes
0 answers
99 views

Graphical LCD With Atmega64

I have ATMEGA64 and LCM240128, The wiring is as below: And my code is ( I'm using codevision): ...
Mojtaba Miraki's user avatar
0 votes
1 answer
101 views

AVR programming, push button not working

I was trying to study AVR programming using an Arduino. I just wanted to blink some LEDs. At first I succeeded then I tried using a push button for it. It didn't work out. I tried using a switch ...
Abhijith CB's user avatar
6 votes
7 answers
3k views

Why is a register initialised through bitwise operations instead of a binary string?

I'm learning microcontrollers, and have picked AVRs to start with. In many AVR tutorials I find the registers are initialised by performing some bitwise operations on the assignment, for example ...
Somanna's user avatar
  • 335
1 vote
1 answer
297 views

Is the UPDI pin on AVR DA/AVR Tiny0/... 5V tolerant when VCC@3V3?

I've a project incorporating an AVR128DA28 which is used with 3V3 peripherals and should be programmed in circuit. For this I built a jtag2updi (GitHub) adapter using an Arduino Nano. Since ...
mythbu's user avatar
  • 175
1 vote
3 answers
406 views

How does one program for first time and reprogram microcontrollers that are mounted to a PCB?

Arduino Unos and Microchip Curiosity Nanos are for prototyping and easy and ready to program, but now I am struggling to find the resource material that would detail taking the chip off the breakout ...
user avatar
0 votes
1 answer
1k views

Difficulty programming a custom Atmega32u4 board with a snap programmer using ISP

I've made a PCB which contains an Atmega32u4, and just finished soldering it up today. Now, I realised that I bought the wrong Atmega32u4 version - I bought the version which does not by default use ...
Jacob Garby's user avatar
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 ...
Kalcifer's user avatar
  • 245
0 votes
1 answer
647 views

How do I invoke pymcuprog?

I have successfully created an ATtiny406 binary using avr-gcc in Linux, and I can program it to the device via Atmel-ICE under Atmel Studio in Windows, and it ...
personal_cloud's user avatar
3 votes
2 answers
751 views

Moving Data, Bss and heap memory to external SRAM Atmega2560

This is my first question here, sorry if I miss something. I’m using an Atmega2560 as main processor for my project but I’m running out of ram so I have connected an external 64 KB (64 x 8) SRAM to it....
Oli's user avatar
  • 107
-3 votes
3 answers
673 views

How to write own ISR handler [closed]

I am learning about AVR programming and I know we have to use avr/interrupt.h library to use interrupts. However, my main reason to learn AVR programming is to program without any library so I want to ...
Syed M Erdum Adnan's user avatar
0 votes
1 answer
48 views

Attiny861 programming current

What current does it consume during serial programming? According to datasheet it’s about 6000uA at 3.3V. I have to power it from a 10mA ldo, but now I’m not sure that it will be enough. To keep ...
Denis Jelesniak's user avatar
1 vote
2 answers
227 views

Changing delay duration in _delay_us() changes code size

I was programming an ATtiny13A when I accidentally noticed that when I change the delay time in _delay_us() my code size changes. Here's the sample code: ...
Pouria P's user avatar
  • 320
0 votes
0 answers
181 views

AVR ATmega328 low fuse wrtiten and issue

I am using an Arduino Uno as the hardware programmer together with avrdude as the software programmer for flashing an Atmega328. I have noticed PB0 was set to ...
kellogs's user avatar
  • 1,061
0 votes
3 answers
159 views

Burning hex files into multiple micro-controllers at a time. [closed]

I am using attiny88 and the usbasp programmer. Right now I am burning 1 micro at a time. But it is a time-consuming process during the production. Is there any way to burn multiple microcontrollers ...
ABD's user avatar
  • 111
1 vote
2 answers
307 views

AVR bitwise operation: making a NOT with a microcontroller

I'm programming an ATtiny10, i have two spare pins, one of which is the external interrupt pin on PB2, and i want to write the inverse of that signal to PB1. I want to spare a component, since i have ...
valerio_new's user avatar
  • 1,642

15 30 50 per page