ATtinyXX04 discrepancies between adtf and datasheets

Go To Last Post
8 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm busy generating controller definition files from the controller atdf's.  After some spot checks between the data in the atdf and datasheets I've noticed the following discrepancies. Any clarifications for these, or do I need to report these somewhere?

 

Attiny204 and attiny404

  • ADC.MUXPOS atdf lists DAC0=0x1C in values, but datasheet shows this as a reserved value.
  • ADC.MUXPOS atdf list AIN8=0x08 and AIN9=0x09 in values, but datasheet show these values as reserved.
  • Interrupt vectors declared in atdf do not skip gaps at 16, 18, 19, 22, 23 as mentioned in datasheet.
  • VPORTC declaration in atdf doesn't match with lack of PORTC in datasheet.
  • EVSYS.SYNCH values in both atdf and datasheets show  PORTCn values - no port C?

 

Attiny804 and attiny1604:

  • AC.MUXCTRLA atdf lists 3 values for MUXNEG (0,1,2) while datasheet lists value 1 as reserved. Similarly values for MUXPOS in atdf include (0,1,2,3) while datasheet only lists 0 as valid value.
  • ADC.CTRLC datasheet lists 2 possible values for REFSEL (0,1), but atdf lists 3 (0,1,2).
  • VPORTC & PORTC declaration in atdf doesn't match with lack of PORTC in datasheet.
  • EVSYS.SYNCH values in both atdf and datasheets show  PORTCn values - no port C?

 

 Microchip ATtiny Series Device Support (2.0.10), latest datasheets downloaded from Microchip's website this week.

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I would report this to support :)

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ccrause wrote:
VPORTC & PORTC declaration in atdf doesn't match with lack of PORTC in datasheet.

 

Actually port C is listed in the datasheet, check table 5-1. It's just that port C is not externally wired on tiny 804/1604, but most likely it's there. Probably the tiny xx04 and xx07 share the same die.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

El Tangas wrote:

ccrause wrote:
VPORTC & PORTC declaration in atdf doesn't match with lack of PORTC in datasheet.

 

Actually port C is listed in the datasheet, check table 5-1. It's just that port C is not externally wired on tiny 804/1604, but most likely it's there. Probably the tiny xx04 and xx07 share the same die.

I was implying that port C is not accessible on the pins.  However your point is valid (and supported by the note after table 14.4), if the port is present but not connected to pins then it is still valid to access its registers.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

meolsen wrote:

I would report this to support :)

Thanks meolsen!

 

Other discrepancies I've noticed:

Attiny406

  • Register EVSYS.SYNCCH1 is defined in atdf but not in datasheet.
  • Datasheet shows address for AC0 as 0x680 but atdf shows 0x670
  • Atdf have no gaps in interrupt signal vector, while datasheet shows gaps at 16, 18, 19, 22, 23
  • Atdf lists DAC0 (0x1C) as valid value for ADC.MUXPOS.MUXPOS while datasheet shows value 0x1C as reserved.
  • Atdf lists EVSYS.SYNCCH1 at offset 0xB but datasheet shows that offset as reserved.

 

 

Attiny806/1606

  • Atdf lists values of (0x13, 0x14) for EVSYS.ASYNCCH0 and (0x12, 0x13) for EVSYS.ASYNCCH1, but datasheet shows these values as reserved.
  • Atdf lists a value of TCB1 (0x15) for EVSYS.SYNCCH0, but datasheet shows this value as reserved.
  • Atdf lists EVSYS.ASYNCUSER11/12, the corresponding addresses in datasheet is marked reserved.
  • Atdf lists 4 values for AC.MUXCTRLA.MUXPOS while datasheet only list 2 values.  
  • Atdf lists 3 values (0, 1, 2) for ADC.CTRLC.REFSEL but datasheet only lists 2 (0, 1)  

 

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ccrause wrote:

Attiny806/1606

  • Atdf lists values of (0x13, 0x14) for EVSYS.ASYNCCH0 and (0x12, 0x13) for EVSYS.ASYNCCH1, but datasheet shows these values as reserved.
  • Atdf lists a value of TCB1 (0x15) for EVSYS.SYNCCH0, but datasheet shows this value as reserved.
  • Atdf lists EVSYS.ASYNCUSER11/12, the corresponding addresses in datasheet is marked reserved.
  • Atdf lists 4 values for AC.MUXCTRLA.MUXPOS while datasheet only list 2 values.  
  • Atdf lists 3 values (0, 1, 2) for ADC.CTRLC.REFSEL but datasheet only lists 2 (0, 1)  

Another discrepancy I've noticed for attiny806/1606:

Adtf lists TEMPSENSE (0x1E) value listed for ADC.MUXPOS.MUXPOS, this value not mentioned in the datasheet.

 

Note this list of discrepancies is also applicable to the attiny807/1607 controller.

Last Edited: Sat. Oct 5, 2019 - 05:22 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Summary of feedback from Microchip support:

So, in summary, datasheets are correct, similar atdfs are used for same families of devices and will have bits that can be written to but will not work if it is not stated in the datasheet. Use the table under I/O Multiplexing and Considerations to check which functionalities are available for the device.

 Discrepancies fixed or under investigation:

The issue regarding different addresses for AC0 in atdf and datasheet have been fixed. The gaps between interrupt signals is a bug that is being worked on to fix. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

This whole AVR-0 & AVR-1 datasheets are craps. specially if its in the side of the lower pins count.

 

Copy/paste everywhere, sometimes you wonder if the person who copied them is really an engineer....