AVR C Runtime Library - Bugs: bug #54615, file iox256d3.h -...
You are not allowed to post comments on this tracker with your current authentication level.
bug #54615: file iox256d3.h - ADC_CH_MUXNEG_PINx_gc wrong.
Submitter: | None | ||
Submitted: | Mon 03 Sep 2018 07:48:05 PM UTC | ||
Category: | Header | Severity: | 3 - Normal |
Priority: | 5 - Normal | Item Group: | Header files |
Status: | None | Percent Complete: | 0% |
Assigned to: | None | Originator Email: | -email is unavailable- |
Open/Closed: | Open | Release: | 2.0.0 |
Fixed Release: | None |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
No changes have been made to this item
This is from the iox256d3.h file
/* 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 */
ADC_CH_MUXNEG_PIN4_gc = (0x04<<0), /* Input pin 4 */
ADC_CH_MUXNEG_PIN5_gc = (0x05<<0), /* Input pin 5 */
ADC_CH_MUXNEG_PIN6_gc = (0x06<<0), /* Input pin 6 */
ADC_CH_MUXNEG_PIN7_gc = (0x07<<0), /* Input pin 7 */
} ADC_CH_MUXNEG_t;
pins 4 to 7 are incorrect with the datasheet for the device.
File iox256c3.h has the correct values. Shown below.
/* 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 */
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;