View previous topic :: View next topic |
Author |
Message |
vinay
Joined: 30 Sep 2012 Posts: 7
|
Assembly code not generated !!!!! |
Posted: Thu Jul 25, 2013 2:36 am |
|
|
Hi all,
I am programming a PIC16F876A to read/write time/date to a DS1307, using the DS1307.C driver file.
But when I call the functions
ds1307_get_date(DD, MM, YYYY, DofW); //Get date
ds1307_get_time(Hours, Minutes, Seconds); //Get time in main() there is no corresponding assembly code generated in .lst file for that call
Pls help !!!!
Compiler version 4.114[/b] |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9221 Location: Greensville,Ontario
|
|
Posted: Thu Jul 25, 2013 5:22 am |
|
|
We'd have to see your 'main' source code to properly debug.
Have you called ds1307_init ?
I do know the driver works fine,so the problem must be in 'main'.
hth
jay |
|
|
vinay
Joined: 30 Sep 2012 Posts: 7
|
|
Posted: Fri Jul 26, 2013 5:12 am |
|
|
OOOPS !!!!!
Looks like I was wrong, code was generated.
Found out by noticing the addressess of each assembly code especially when
ds1307_get_date(DD, MM, YYYY, DofW); //Get date
ds1307_get_time(Hours, Minutes, Seconds); //Get time are called.
But these two functions were becoming inline.
(Simply called the functions two to three times in main() and noticed the code memory consumed was increasing substantially).
@temtronic
thanks for your reply !!!!
Much appreciated !!!! |
|
|
|