From: Royston Vasey on 11 Mar 2010 23:53 I'm new to C and am trying to write a byte to the internal EEPROM in a 18F45k20. I've done this in the past using assembly but now I'm working in C I figure there should be a function for doing this. I've found reference to write_b_eep and read_b_eep on the net but cannot see any reference to these in the MPLAB C18 Compiler Libraries documentation. What is the way to approach this? thanks
From: Royston Vasey on 12 Mar 2010 00:31 "Royston Vasey" <royston(a)vasey.com> wrote in message news:a-udnb-tSKYqVQTWnZ2dnUVZ_hudnZ2d(a)westnet.com.au... > I'm new to C and am trying to write a byte to the internal EEPROM in a > 18F45k20. > > I've done this in the past using assembly but now I'm working in C I > figure there should be a function for doing this. > > I've found reference to write_b_eep and read_b_eep on the net but cannot > see any reference to these in the MPLAB C18 Compiler Libraries > documentation. > > What is the way to approach this? > > thanks > > > > ok - I tried the following: Write_b_eep(0,my_var); //code to save my_var to eeprom Looking at the EEPROM memory at location 0x00 is not changed. It compiles fine and during execution I can see the code jump into the Write_b_eep function located in write_b.c Is there some documentation somewhere that will help me with this function??
From: hamilton on 12 Mar 2010 09:32 Royston Vasey wrote: > "Royston Vasey" <royston(a)vasey.com> wrote in message > news:a-udnb-tSKYqVQTWnZ2dnUVZ_hudnZ2d(a)westnet.com.au... >> I'm new to C and am trying to write a byte to the internal EEPROM in a >> 18F45k20. >> >> I've done this in the past using assembly but now I'm working in C I >> figure there should be a function for doing this. >> >> I've found reference to write_b_eep and read_b_eep on the net but cannot >> see any reference to these in the MPLAB C18 Compiler Libraries >> documentation. >> >> What is the way to approach this? >> >> thanks >> >> >> >> > > ok - I tried the following: > > > Write_b_eep(0,my_var); //code to save my_var to eeprom > > Looking at the EEPROM memory at location 0x00 is not changed. > > > It compiles fine and during execution I can see the code jump into the > Write_b_eep function located in write_b.c > > Is there some documentation somewhere that will help me with this function?? > > > > > > > google is your friend http://my.opera.com/raphman/blog/show.dml/266030 hamilton
|
Pages: 1 Prev: 256-fold (or even more) increase in speed on copper wire possible IMHO Next: DeviceNet's EDS |