View previous topic :: View next topic |
Author |
Message |
arunb
Joined: 08 Sep 2003 Posts: 492 Location: India
|
How to use the write_program_memory() ?? |
Posted: Thu May 22, 2008 12:10 am |
|
|
Hi,
I am unable to understand how the write_program_memory() works.
Kindly explain what the parameters for the function do....
thanks
arunb |
|
|
Blob
Joined: 02 Jan 2006 Posts: 75 Location: Neeroeteren, Limburg, Belgium
|
|
|
arunb
Joined: 08 Sep 2003 Posts: 492 Location: India
|
RE: |
Posted: Thu May 22, 2008 6:59 am |
|
|
Is a pointer necessary for the function to work ?? or can I just use a variable such as
Code: |
int16 i,value;
for(i=0x1000;i<=0x1fff;i++) {
write_program_memory(i, value, 2);
}
|
Please help..
thanks
arunb |
|
|
Blob
Joined: 02 Jan 2006 Posts: 75 Location: Neeroeteren, Limburg, Belgium
|
|
Posted: Thu May 22, 2008 7:18 am |
|
|
nope, you need the pointer to this value.
it is not that hard.
just add a &.
Code: | int16 value;
value = 100;
write_program_memory(i, &value, 2) |
best regards,
Blob |
|
|
|