CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

RTC does not run when debugging?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Eduardo__



Joined: 23 Nov 2011
Posts: 197
Location: Brazil

View user's profile Send private message

PostPosted: Wed Aug 01, 2012 10:21 am     Reply with quote

Just a note:

RTC usually STOPS during a debug STOP or breakpoint.
_________________
Eduardo Guilherme Brandt
hemasc_



Joined: 01 Aug 2012
Posts: 15
Location: Brazil

View user's profile Send private message Visit poster's website

PostPosted: Wed Aug 01, 2012 11:27 am     Reply with quote

Eduardo__, thanks!!!

The crystal was in short-circuit.

I pulled the short and worked...
hemasc_



Joined: 01 Aug 2012
Posts: 15
Location: Brazil

View user's profile Send private message Visit poster's website

PostPosted: Wed Aug 01, 2012 2:46 pm     Reply with quote

Eduardo__, I tried to use:

hora = read_clock.tm_hour;
hora = configura_ext(hora,0,24);
rtc_write(&write_clock);

in MAIN function, ok, but in others functions, I have problem

Error 12: Undefined identifier read_clock
Eduardo__



Joined: 23 Nov 2011
Posts: 197
Location: Brazil

View user's profile Send private message

PostPosted: Wed Aug 01, 2012 3:05 pm     Reply with quote

Because read_clock was created inside main(variables inside functions are not global).

create read_clock struct variable before main() routine.
Good luck
_________________
Eduardo Guilherme Brandt
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group