Sign in

username:

password:



Not a member?

Search rabbit-semi



Search tips

Subscribe to rabbit-semi



Ads

Discussion Groups

Discussion Groups | Rabbit-Semi | I don't know how to obtain the RTC values inside a PK2200

This is a group for folks designing and programming embedded systems using the Rabbit Semiconductor C-programmable microcontroller. Rabbit Semi is a spin-off from Z-World who makes a variety of embedded modules and tools. This group is not affiliated with either Rabbit or Z-World, but is a user forum for sharing ideas, asking questions, flaunting knowledge, and other typical user group stuff. The Rabbit is a powerful uC, supported by a full-featured C-compiler.

I don't know how to obtain the RTC values inside a PK2200 - "Fernand Francis T. Robles" - Apr 30 9:19:21 2008

I'm currently employed as an OJT and my task was to implement date
stamping on a PK2200 the problem is I don't know how to obtain values
from the BIOS and also how to determine if the RTC values can really be
obtained from a PK2200

I tried this lines of codes based from masterem.c I found on the net

sTM.tm_year = 00;
sTM.tm_mon = 01;
sTM.tm_mday = 24;
sTM.tm_hour = 15;
sTM.tm_min = 45;
sTM.tm_sec = 00;
while (tm_wr ( &sTM ));
while (tm_rd ( &sTM ));
lcd_printf(0x00000000,"%02d:%02d:%02d",sTM.tm_hour, sTM.tm_min,
sTM.tm_sec);

the program only displayed "08:08:08" even when I tried to loop this 2:
while (tm_rd ( &sTM ));
lcd_printf(0x00000000,"%02d:%02d:%02d",sTM.tm_hour, sTM.tm_min,
on a costate function on srtk_lowtask

------------------------------------



(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )