/*======================================================================*/
interrupt [TIM0_OVF] void Timer0_OVF_ISR( void
) // 计时器 0 中断服务程序
{
TCNT0 = 256 - (
SYSTEM_CLOCK * TIMER0_COUNT / CK_DIV_VALUE );
//
声音产生器
Sound_Gerater();
}
/*======================================================*/
interrupt [TIM1_OVF] void Timer1_OVF_ISR( void
) // 计时器 1 中断服务程序
{
TCNT1 = 65536 - (
SYSTEM_CLOCK * TIMER1_COUNT / CK_DIV_VALUE );
//
扫描数码管
Scan_Led();
//
扫描按键
Key_01_Debounce();
Key_02_Debounce();
Key_03_Debounce();
Key_04_Debounce();
/*----------------------------------------------------*/
// 计时
800us * 100 = 80ms
Timer_Basic_Count_Rg
++;
if( Timer_Basic_Count_Rg
== 100 )
{
// 计时时间 = 100 * 中断一次之时间
Timer_Basic_Count_Rg = 0;


