Tiddlemouse / arduino

Automatically exported from code.google.com/p/arduino
Other
0 stars 0 forks source link

digital_pin_to_port_PGM array too short for many arduinos #92

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
DigitalOut() on analog pins 6,7 on the many arduinos that provide those pins 
will fail

What is the expected output? What do you see instead?

What version of the Arduino software are you using? On what operating
system?  Which Arduino board are you using?
Arduino 17, Seeeduino, Lilypad (with hand soldered wires to A6 and A7)

Please provide any additional information below.
Add two new entries to bottom of this table in pins_arduino.c (also look at
digital_pin_to_bit_mask_PGM[]).
Also, please review whether analogOut works on these pins.
const uint8_t PROGMEM digital_pin_to_port_PGM[] = {
        PD, /* 0 */
        PD,
        PD,
        PD,
        PD,
        PD,
        PD,
        PD,
        PB, /* 8 */
        PB,
        PB,
        PB,
        PB,
        PB,
        PC, /* 14 */
        PC,
        PC,
        PC,
        PC,
        PC,
};

Original issue reported on code.google.com by newsfr...@gmail.com on 26 Aug 2009 at 4:08

GoogleCodeExporter commented 9 years ago
Every datasheet I've seen says ADC6 and ADC7 on the 32 pin chips are analog 
only.

Port C pin 6 can be enabled on the RESET pin (not ADC6), if a particular fuse 
is set
while programming.  However, after setting that fuse, "low voltage" ISP 
programming
is disabled because you can't assert RESET.  Do any boards actually set that 
fuse?

Original comment by paul.sto...@gmail.com on 23 Nov 2009 at 2:24

GoogleCodeExporter commented 9 years ago
Thanks Paul. Yes I checked on the datasheet. ADC6 and ADC7 pins are odd 
exception, This issue can
be closed as far as the code is concerned but it would be good to document this 
in
the pages that talk about digital I/O on analog pins. 
This is another reminder of why I work with the teensy and other later chips 
from the Atmel stables..

Original comment by newsfr...@gmail.com on 22 Jan 2010 at 12:19

GoogleCodeExporter commented 9 years ago

Original comment by dmel...@gmail.com on 16 Dec 2011 at 10:10