Questions tagged [atmega1284p]
9 questions
33
votes
5 answers
How do devices like the Game Boy Advance achieve their frame rate?
I've been designing my own handheld gaming device based around an AVR microcontroller and a small OLED display.
I started off with a monochrome display 128x64 pixels and can comfortably draw to it at over 60 frames per second.
I recently reworked it…

MalphasWats
- 596
- 1
- 4
- 15
3
votes
1 answer
Why don't certain pins on PORTC on the ATmega164A/324Pa/644PA/1284P work?
I want to use the PC2 pin on my ATmega164-1284PA series of microcontrollers and it's not working no matter what I do. I even wrote a minimal test case that only sets it as an output and toggles the pin with a one second delay. Not even that works.…

The Movie Man
- 201
- 1
- 4
1
vote
1 answer
Regulate an RGB LED via PWM, both in brightness and in hue
I am looking to regulate programmatically an RGB LED both in terms of brightness and in terms of hue. So far I have learned that I can use PWM to do this, but I am unsure as to what the details are. I am trying to integrate this into an AVR project…

CCD
- 111
- 3
1
vote
0 answers
Not All I/O Pins Work for Nixie Driver on Arduino MEGA and ATMEGA1284PU
I am tearing my hair out, and help would be immensely appreciated.
I am developing a nixie RPN calculator. I am using nixies being driven by K155ID1 nixie drivers, connected to an ATMEGA1284PU. I have succesfully developed a nixie RPN calculator…

csapidus
- 11
- 4
1
vote
1 answer
How to set NACK on bad PEC in TWI used for SMBUS (ATMega8)
I want to implement the SMBUS protocol in my AVR device (ATMega1284P), which will have the role of slave. I need to support the PEC (Packet Error Code) feature, which means that the master device (which is not mine) will send a "checksum" byte after…

Guillermo Prandi
- 897
- 1
- 10
- 24
1
vote
1 answer
How to set NACK right after current byte in TWI (ATMega8)
I have some experience with I²C (TWI) as I used it before, but it seems I can't solve this particular problem. I intend to communicate two CPUs via I²C. One is always the master and the other is the slave. I'm defining the communication protocol…

Guillermo Prandi
- 897
- 1
- 10
- 24
0
votes
1 answer
Atmega1284P-PU - how to connect more than one device through SPI?
I need connect 3 modules via SPI with ATMEGA1284P-PU. I looked on datasheet, but I found only one SPI.
On which pins are other SPI?

charlie12
- 3
- 1
-1
votes
1 answer
Fuse Bits for ATmega1284P
I need to use an external crystal oscillator for PWM generation on the ATmega1284P. I have set the wrong fuse bits and I can't program it now. Can this be rectified?

user170667
- 13
- 4
-2
votes
2 answers
What is the best communication mechanism with collision detection/avoidance for my topology?
Here is my sensor topology..
Here, the atmega128 is the main controller and all other atmega8 are connected to the main controller using rs485 cable.
What is the best communication protocol for this to detect and avoid collision.?
I have 20 atmega8…

T Obulesu
- 1
- 1