Go Down

Topic: DIY Arduino clone Pins 20+21, A6/A7 not working - what am I missing? (Read 961 times) previous topic - next topic

Udo Klein

I have created a freeduino based Arduino variant by replacing the standard chip with an Atmega 328p AU in with a 32 MLF package. According to the datasheet this should give me two additional pins. Everything (including power, the FTDI chip, the crystal, the bootloader and all other pins) works fine except for these two pins. I already located an issue with one of the Arduino library files. Thus I changed my test code to

Code: [Select]

void setup() {
    DDRC = 0xff;
    PORTC = 0xff;
}

void loop() { }


As expected this code will set pins C0-C5 high. Since it does not rely on the Arduino pin mappings it should work no matter even if the Arduino files are not OK.

However it fails to set pins C6 and C7 to high as well. Since the datasheet advertises these two additional pins (and the Nano seems to use them) I would have expected that I can use them easily.
The issue is not due to solder joints I already checked both visually and with a multimeter that the solder joints are OK. I also measured the pins levels straight at the processor.

So my current thoughts for the possible source of this issue:

1) Maybe I am missing something? But what?
2) Maybe the specific processor is flawed?
3) Maybe there are some specific fuses that I am not aware of? Which ones?

Right now I am completely in the dark. Has anyone any hint for me? What am I missing?
Check out my experiments http://blog.blinkenlight.net

Udo Klein

I found it out by myself. I should have read the datasheet more closely. These two pins give two more analog inputs but no additional outputs. My board works 100% correct, I just expected something that does not exist.
Check out my experiments http://blog.blinkenlight.net

Go Up