URL:
  <http://savannah.nongnu.org/bugs/?26811>

                 Summary: MUXNEG defines wrong for ADC_CH.MUXCTRL
                 Project: AVR C Runtime Library
            Submitted by: hoxel
            Submitted on: Mo 15 Jun 2009 20:39:43 GMT
                Category: Header
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Header files
                  Status: None
        Percent Complete: 0%
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.7.*
           Fixed Release: None

    _______________________________________________________

Details:

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





    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?26811>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/



_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to