View previous topic :: View next topic |
Author |
Message |
Eduardo__
Joined: 23 Nov 2011 Posts: 197 Location: Brazil
|
|
Posted: Wed Aug 01, 2012 10:21 am |
|
|
Just a note:
RTC usually STOPS during a debug STOP or breakpoint. _________________ Eduardo Guilherme Brandt |
|
|
hemasc_
Joined: 01 Aug 2012 Posts: 15 Location: Brazil
|
|
Posted: Wed Aug 01, 2012 11:27 am |
|
|
Eduardo__, thanks!!!
The crystal was in short-circuit.
I pulled the short and worked... |
|
|
hemasc_
Joined: 01 Aug 2012 Posts: 15 Location: Brazil
|
|
Posted: Wed Aug 01, 2012 2:46 pm |
|
|
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
|
|
Posted: Wed Aug 01, 2012 3:05 pm |
|
|
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 |
|
|
|