Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Reading from flash in Assembly

2004-12-03 by Paul Maddox

Larry,

> Which chip are you using?  lpm Rx, Z is only supported on newer mega
chips.

Soprry, should've said, its a Mega16.

> If the right address is in Z and the chip supports the instruction, then
if
> you are only getting 0xFF is because there is no data at that location.

Looks like I should be shifting the address left once before using it for
some reason (thanks John/Richard/Beaver) I'll give that a go, though I don't
understand quite why.

Paul

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.