New tiny 828 data sheet error

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

Just been looking at this device and it seems Atmel are still using code examples with errors...(I think).
They are showing code examples for setting various control registers >31 and still using IN/OUT instead of LDS/STS.
Is it wrong or am I suffering old age meory loss ?

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

At least some of the Atmel datasheets include the disclaimer shown below. Search the pdf for the term "Code Examples" to find it.

For I/O Registers located in the extended I/O map, “IN”, “OUT”, “SBIS”, “SBIC”, “CBI”, and “SBI” instructions must be replaced with instructions that allow access to extended I/O. Typically, this means “LDS” and “STS” combined with “SBRS”, “SBRC”, “SBR”, and “CBR”. Note that not all AVR devices include an extended I/O map.

Don