Questions tagged [atmega1284p]

The tag has no usage guidance.

1
vote
1answer
111 views

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 ...
1
vote
0answers
41 views

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 ...
31
votes
5answers
12k views

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 ...
-2
votes
2answers
101 views

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 ...
-1
votes
1answer
565 views

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?
0
votes
1answer
93 views

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?
1
vote
1answer
104 views

How to set NACK on bad PEC in TWI used for SMBUS (ATMega8) [duplicate]

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 (...
1
vote
1answer
158 views

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 ...