Main Page | Report this Page
Computers Forum Index  »  Computer Architecture - Embedded  »  ALP for Real Time Clock using timer unit of HC12...
Page 1 of 1    

ALP for Real Time Clock using timer unit of HC12...

Author Message
alex99...
Posted: Mon Oct 26, 2009 1:19 am
Guest
HI,

I am implementing an ALP program to implement a real time clock to display
hour,minute,second using features available in a timer unit. Digits have to
displayed on one of the GPIO ports of HC12 micro-controller.

I do know how to proceed on this in C language but am a newbie in
micro-controllers and assembly programming - was hoping that someone could
point me in the right direction -- perhaps even coded examples that could
serve as a way to better understand it.

Thank you in advance!



---------------------------------------
This message was sent using the comp.arch.embedded web interface on
http://www.EmbeddedRelated.com
 
Nobody...
Posted: Tue Nov 10, 2009 3:04 am
Guest
On Sat, 07 Nov 2009 04:26:00 -0600, alex99 wrote:

Quote:
Tank you. The C solution I have in mind is what I found on another thread
here:

if (RTC_tick>= XX ){
seconds++;
RTC_tick = 0;

Try:
RTC_tick -= XX;
 
 
Page 1 of 1    
All times are GMT
The time now is Fri Dec 11, 2009 11:11 pm