Write byte to eeprom beyond 255 ?

View: New views
2 Messages — Rating Filter:   Alert me  

Write byte to eeprom beyond 255 ?

by Wally-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

How to write a single byte to the eeprom area beyond 255 ?

in avr/eeprom.h i just found

void eeprom_write_byte (uint8_t *addr, uint8_t value)

cheers wally


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

Re: Write byte to eeprom beyond 255 ?

by Dave Hylands :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Wally,

On Mon, Jul 27, 2009 at 9:10 AM, wally<wally@...> wrote:
> Hello,
>
> How to write a single byte to the eeprom area beyond 255 ?

Umm - provide a pointer with a value larger than 255.

> in avr/eeprom.h i just found
>
> void eeprom_write_byte (uint8_t *addr, uint8_t value)

Notice that addr is a uint8_t pointer, (which means that it's 16 bits).

--
Dave Hylands
Shuswap, BC, Canada
http://www.DaveHylands.com/


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