Author Topic: Pins not working under 0100 RC3 atmega128 v2.x  (Read 3110 times)

0 Members and 1 Guest are viewing this topic.

Zap

Pins not working under 0100 RC3 atmega128 v2.x
« on: October 17, 2011, 11:02:26 PM »

Some time ago I built up a number of atmega128 wireing boards of my own requirements and have been using a v2.x auto reset bootloader sucessfully under Wiring 0027. Firmware from here http://www.avride.com/article/wiring/ burnt using AVRstudio and a mkII isp.

I have now upgraded to Wiring 0100 IDE and have noticed that some pins do not operate as previously ( same shetch in both IDE's). Two pins in question are I/O 27 & 28 (PB3 & PB4) do not work however I/O 31 (PB7) is OK. (note not all pins tested as these boards do not use all of them)
In IDE 0100 I am useing Board / Wiring / Wiring V1.0/Wiring Mini @16mhz as this appears to be the closest choice for this hardware.

What do I need to do to use wiring IDE 0100 corectly with these boards?

Thanks Zap.

barragan

Re: Pins not working under 0100 RC3 atmega128 v2.x
« Reply #1 on: October 18, 2011, 07:23:45 PM »
hi Zap, can you upload anything to these boards using release 1.0? please try to download again and test: http://wiring.org.co/download, we updated this page today.

Zap

Re: Pins not working under 0100 RC3 atmega128 v2.x
« Reply #2 on: October 21, 2011, 02:00:02 AM »
Yes I did that, however I've been doing some more investigations and I've come to the conclusion that the difference between 0027 and 0100 may in the way unused pins are 'default' setup, it may be unused pins are default as input's or maybe the internal tie downs are different by default.
 I found with the same sketch that unused pins (say 29 & 30) would be low (0v) in IDE 0027 and using IDE 0100 the same unused pins would be high (+5V.
unused = not defined in sketch at all.

Now that I know that I won't do a stupid thing like use the unused pins as current sinks.

Thanks Zap.

worapoht

Re: Pins not working under 0100 RC3 atmega128 v2.x
« Reply #3 on: October 28, 2011, 04:52:16 AM »
Hi Zap,
the bootloader I'd used for long time and no problem.
I'd try simple I/O on these pins and work well, seem no problem too..

void setup()
{
  pinMode(27,OUTPUT);
  pinMode(28,OUTPUT);
  pinMode(31,OUTPUT);
}

void loop()
{
  digitalWrite(27,HIGH);
  digitalWrite(28,LOW);
  digitalWrite(31,LOW);
  delay(300);
  digitalWrite(27,LOW);
  digitalWrite(28,HIGH);
  digitalWrite(31,LOW);
  delay(300);
  digitalWrite(27,LOW);
  digitalWrite(28,LOW);
  digitalWrite(31,HIGH);
  delay(300);
}

barragan

Re: Pins not working under 0100 RC3 atmega128 v2.x
« Reply #4 on: October 28, 2011, 01:45:36 PM »
RC3 had a small problem with the PWM pins on the atmega128 boards (Wiring V1.0/ WiringMini 1.0) so please download Wiring again from http://wiring.org.co/download