bugAVR C Runtime Library - Bugs: bug #26811, MUXNEG defines wrong for...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #26811: MUXNEG defines wrong for ADC_CH.MUXCTRL

Submitter:  axel grabitz <hoxel>
Submitted:  Mon 15 Jun 2009 08:39:43 PM UTC
   
 
Category:  Header Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Header files
Status:  Invalid Assigned to:  arcanum
Percent Complete:  0% Open/Closed:  Closed
Release:  1.7.* Fixed Release:  None

Mon 29 Mar 2010 05:27:54 PM UTC, comment #3: 

The header file is generated from the XML device file that is shipped with AVR Studio. The current iox128a1.h header file matches the ATxmega128A1.xml file. There is a new "revD" version of the XML file. I'll look into what it takes to support these two revisions properly. Meanwhile, this bug will be marked as invalid as it matches the original XML file.

Eric Weddington <arcanum>
Group administrator
Tue 16 Jun 2009 04:54:52 PM UTC, comment #2: 

Edit.

Yes I was missing, that you mean the ADC and not the AC :-)
In that case you are right with what you are saying.

Greetings

Simon Kueppers <simonk>
Tue 16 Jun 2009 04:52:28 PM UTC, comment #1: 

Hello Axel
What version is your AVR-GCC installation?

iox128a1.h with ID String
/* $Id: iox128a1.h,v 1.1.2.11 2008/11/03 04:13:14 arcanum Exp $ */

states:

typedef enum AC_MUXNEG_enum
{
    AC_MUXNEG_PIN0_gc = (0x00<<0),  /* Pin 0 */
    AC_MUXNEG_PIN1_gc = (0x01<<0),  /* Pin 1 */
    AC_MUXNEG_PIN3_gc = (0x02<<0),  /* Pin 3 */
    AC_MUXNEG_PIN5_gc = (0x03<<0),  /* Pin 5 */
    AC_MUXNEG_PIN7_gc = (0x04<<0),  /* Pin 7 */
    AC_MUXNEG_DAC_gc = (0x05<<0),  /* DAC output */
    AC_MUXNEG_BANDGAP_gc = (0x06<<0),  /* Bandgap Reference */
    AC_MUXNEG_SCALER_gc = (0x07<<0),  /* Internal voltage scaler */
} AC_MUXNEG_t;

Which is absolutely correct. According to datasheet february/08 page 322.

Or am I missing something?

Simon Kueppers <simonk>
Mon 15 Jun 2009 08:39:43 PM UTC, original submission:  

file: include/avr/iox128a1.h
MUXNEG is only [1:0] two bits size

/* Negative input multiplexer selection */
typedef enum ADC_CH_MUXNEG_enum
{
    ADC_CH_MUXNEG_PIN0_gc = (0x00<<0),  /* Input pin 0 */
    ADC_CH_MUXNEG_PIN1_gc = (0x01<<0),  /* Input pin 1 */
    ADC_CH_MUXNEG_PIN2_gc = (0x02<<0),  /* Input pin 2 */
    ADC_CH_MUXNEG_PIN3_gc = (0x03<<0),  /* Input pin 3 */
old    ADC_CH_MUXNEG_PIN4_gc = (0x04<<0),  /* Input pin 4 */
old    ADC_CH_MUXNEG_PIN5_gc = (0x05<<0),  /* Input pin 5 */
old    ADC_CH_MUXNEG_PIN6_gc = (0x06<<0),  /* Input pin 6 */
old    ADC_CH_MUXNEG_PIN7_gc = (0x07<<0),  /* Input pin 7 */
    ADC_CH_MUXNEG_PIN4_gc = (0x00<<0),  /* Input pin 4 */
    ADC_CH_MUXNEG_PIN5_gc = (0x01<<0),  /* Input pin 5 */
    ADC_CH_MUXNEG_PIN6_gc = (0x02<<0),  /* Input pin 6 */
    ADC_CH_MUXNEG_PIN7_gc = (0x03<<0),  /* Input pin 7 */
} ADC_CH_MUXNEG_t;

may be nobody found this bug cause bit2 in MUXCTRL is reserved and not used up to now.
see xmega_a.pdf page 309 for more information

axel grabitz <hoxel>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by arcanum (Posted a comment)
  • -email is unavailable- added by simonk (Posted a comment)
  • -email is unavailable- added by hoxel (Submitted the item)
  •  

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-03-29 arcanum StatusNone Invalid
        Assigned toNone arcanum
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code