Jacques _________________ "THE ONLY EASY DAY WAS YESTERDAY"
mskala
Joined: 06 Mar 2007 Posts: 100 Location: Massachusetts, USA
Posted: Wed Jun 09, 2010 8:55 am
Create a subroutine for the write, you only even need 2 parameters.
rnielsen
Joined: 23 Sep 2003 Posts: 852 Location: Utah
Posted: Wed Jun 09, 2010 10:08 am
One thing that causes Out of Rom errors is if you have too much code in one function, including main(). The PIC's memory space is like a book. You have several pages in the book but your code(function) has to fit on each page and cannot carry over to the next page. I would imagine this is your problem. Try chopping your I2C commands into separate functions and then just call those functions in order to create the same effect.
Ronald
jacqueskleynhans
Joined: 10 Apr 2008 Posts: 109 Location: Cape Town, South Africa
Posted: Wed Jun 09, 2010 2:44 pm
thx i will give that a try _________________ "THE ONLY EASY DAY WAS YESTERDAY"
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