hey guys
i am using pic16F877A, i am gettting 2-16bits variables data via RS232 now my task is to store these variables data permanently in my PIC,
how i can do that does any one has a source code for it ??
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Mon Apr 04, 2011 1:11 pm
This CCS driver file has routines to read and write 'int16' values to
internal data eeprom inside the PIC.
Quote:
c:\program files\picc\drivers\internal_eeprom.c
bells_electronics
Joined: 05 Dec 2009 Posts: 40
Posted: Mon Apr 04, 2011 1:38 pm
sir
i am lil confuse here what address should i use ?? hex or decimal ??
address = 0;
address = 1
for 2 16-bit variables ??
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Mon Apr 04, 2011 1:43 pm
The address is a byte address. It starts at 0. There are two bytes per
word. So put your first int16 value at address 0, and put your next int16
value at address 2.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum