DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

MC9S08SH8CSC View Datasheet(PDF) - Freescale Semiconductor

Part Name
Description
Manufacturer
MC9S08SH8CSC
Freescale
Freescale Semiconductor 
MC9S08SH8CSC Datasheet PDF : 341 Pages
First Prev 201 202 203 204 205 206 207 208 209 210 Next Last
#pragma TRAP_PROC
void RTC_ISR(void)
{
/* Clear the interrupt flag */
RTCSC.byte = RTCSC.byte | 0x80;
/* RTC interrupts every 1 Second */
Seconds++;
/* 60 seconds in a minute */
if (Seconds > 59){
Minutes++;
Seconds = 0;
}
/* 60 minutes in an hour */
if (Minutes > 59){
Hours++;
Minutes = 0;
}
/* 24 hours in a day */
if (Hours > 23){
Days ++;
Hours = 0;
}
}
Chapter 13 Real-Time Counter (S08RTCV1)
MC9S08SH8 MCU Series Data Sheet, Rev. 3
Freescale Semiconductor
201

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]