Introduction - If you have any usage issues, please Google them yourself
#include "../MB95200_IO/mb95200.h"
unsigned char C_Second
unsigned char C_Minute
unsigned char C_Hour
void Clock_minute_process(void)
void Clock_hour_process(void)
void Second_output(void)
void Minute_output(void)
void Hour_output(void)
/*-----------------------------------------------------------------------------
/*NAME : __interrupt void Watch_Prescaler (void)
/*FUNCTION : Processing the watch prescaler
/*INPUT : NO
/*OUTPUT : NO
-----------------------------------------------------------------------------*/
void System_SubC_init(void) // Clock Controller initial
{
SYSC_PGSEL = 0 // Enable sub-clock input
SYSC_PFSEL = 0 // Enable main-clock input
WATR = 0xC0
STBC = 0x00
SYCC2 = 0xFC // Enable sub-clock and main-clock
SYCC = 0x00
while(SYCC_SRDY)
}
void Watch_prescalar_initial(void)
{
WPCR = 0x46 // Enable interrupt, interval time = 1.s
WPCR_WCLR = 1 // Clears watch prescaler couter
}
__interrupt void Watch_P