參數資料
型號: USING
英文描述: Using the Expanded Memory Mode with the M16C/62
中文描述: 使用帶有擴展內存雙隨機PWM模式
文件頁數: 11/14頁
文件大小: 831K
代理商: USING
M16C/62
/*****************************************************************************
Name: INT0_ISR
Parameters:
Returns:
Description: INT0 interrupt routine, S2 is connected to INT0
S2 controls when A/D sampling starts and stops
*****************************************************************************/
void INT0_ISR(void)
{
if (ir_ta4ic == 0)
*/
return;
nothing */
int0ic = 0x00;
/* Start A/D sampling */
if(ad_on == 0){
ad_on = 1;
mem_ptr = (unsigned char *) mem_start; /* Reset memory to begining
*/
sample_cnt = 0;
clrLCD ();
LCD_write( msg_ad, 1 );
}
/* Stop A/D sampling */
else if (ad_on == 1){
ad_on = 0;
p7_7 = 1;
Get_Avg ();
}
ir_ta4ic = 0;
ta4os = 1;
int0ic = 0x05;
}
/*****************************************************************************
Name: Get_Avg
Parameters:
Returns:
Description: Read A/D data from external memory and calculate average
*****************************************************************************/
void Get_Avg (void)
{
unsigned long int total = 0; /* declare variables */
unsigned int avg = 0;
Using the Expanded Memory Mode with the M16C/62
/* Switch Debounce timer timeout
/* If not return, do
/* disable INT0 interrupt */
/* A/D sampling currently off*/
/* turn on */
/* Reset sample counter */
/* clear LCD */
/* change LCD display */
/* A/D sampling currently on */
/* turn off */
/* stop LED blinking */
/* calculate average A/D value */
/* reset debounce timer */
/* start debounce timer */
/* Enable INT0 interrupt */
AN-DECE-MCU-18-A
September 2001
10
相關PDF資料
PDF描述
USR931 9.3 VOLT ULTRA STABLE TEMPERATURE COMPENSATED ZENER REFERENCE DIODES
USR932 9.3 VOLT ULTRA STABLE TEMPERATURE COMPENSATED ZENER REFERENCE DIODES
USR933 9.3 VOLT ULTRA STABLE TEMPERATURE COMPENSATED ZENER REFERENCE DIODES
USV1A470MFH Aluminum Electrolytic Capacitor
USV0J101MFH Aluminum Electrolytic Capacitor
相關代理商/技術參數
參數描述
USJ015PR3DXC05 功能描述:集管和線殼 USJ015PR3DXC30 = Strip RoHS:否 產品種類:1.0MM Rectangular Connectors 產品類型:Headers - Pin Strip 系列:DF50 觸點類型:Pin (Male) 節(jié)距:1 mm 位置/觸點數量:16 排數:1 安裝風格:SMD/SMT 安裝角:Right 端接類型:Solder 外殼材料:Liquid Crystal Polymer (LCP) 觸點材料:Brass 觸點電鍍:Gold 制造商:Hirose Connector
USJ015PR3DXC15 功能描述:集管和線殼 USJ015PR3DXC15 = Strip RoHS:否 產品種類:1.0MM Rectangular Connectors 產品類型:Headers - Pin Strip 系列:DF50 觸點類型:Pin (Male) 節(jié)距:1 mm 位置/觸點數量:16 排數:1 安裝風格:SMD/SMT 安裝角:Right 端接類型:Solder 外殼材料:Liquid Crystal Polymer (LCP) 觸點材料:Brass 觸點電鍍:Gold 制造商:Hirose Connector
USJ015PR3DXC2.5 功能描述:集管和線殼 USJ015PR3DXC2.5 = Strip RoHS:否 產品種類:1.0MM Rectangular Connectors 產品類型:Headers - Pin Strip 系列:DF50 觸點類型:Pin (Male) 節(jié)距:1 mm 位置/觸點數量:16 排數:1 安裝風格:SMD/SMT 安裝角:Right 端接類型:Solder 外殼材料:Liquid Crystal Polymer (LCP) 觸點材料:Brass 觸點電鍍:Gold 制造商:Hirose Connector
USJ015PR3DXC30 功能描述:集管和線殼 USJ015PR3DXC60 = Strip RoHS:否 產品種類:1.0MM Rectangular Connectors 產品類型:Headers - Pin Strip 系列:DF50 觸點類型:Pin (Male) 節(jié)距:1 mm 位置/觸點數量:16 排數:1 安裝風格:SMD/SMT 安裝角:Right 端接類型:Solder 外殼材料:Liquid Crystal Polymer (LCP) 觸點材料:Brass 觸點電鍍:Gold 制造商:Hirose Connector
USJ015PR3DXC60 功能描述:集管和線殼 USS004B4T=STRIP CON RoHS:否 產品種類:1.0MM Rectangular Connectors 產品類型:Headers - Pin Strip 系列:DF50 觸點類型:Pin (Male) 節(jié)距:1 mm 位置/觸點數量:16 排數:1 安裝風格:SMD/SMT 安裝角:Right 端接類型:Solder 外殼材料:Liquid Crystal Polymer (LCP) 觸點材料:Brass 觸點電鍍:Gold 制造商:Hirose Connector