MB2146-450-E Setup Guide
Chapter 4 Sample Code Manual
MCU-AN-500072-E-10 – Page
32
4.2.2 Beep .c
When AD key is pressed, it will sound beep and then it will be off. All the occasions are
driven by setting different values for PIN PPG1.
Following table describes the Beep library:
Function Name
Description
void Beep_On(void)
Make beep to sound out
void Beep_Off(void)
Off beep sound
4.2.3 EEPROM .c
In this function, all values of EEPROM are initialled to 0x80 and global parameters are
initialled to 0.
Following table describes the EEPROM library:
Function Name
Description
void Init_EEProm(void)
Initializes all global variable and EEPROM to
its’ value to sub-address number
4.2.4 Ext-interrupt .c
In this function external interrupt register are initialled.
Following table describes the external interrupt library:
Function Name
Description
void EXT_Init(void)
Initializes external interrupt
__interrupt void INTER_EXT (void)
Captures falling edge and generates interrupt