參數(shù)資料
型號: USING
英文描述: Using the Expanded Memory Mode with the M16C/62
中文描述: 使用帶有擴展內存雙隨機PWM模式
文件頁數(shù): 10/14頁
文件大?。?/td> 831K
代理商: USING
M16C/62
while (1){
Using the Expanded Memory Mode with the M16C/62
/* Initialize Timer A4 for S2 switch debounce */
ta4ic = 0x00;
/* make sure that the interrupt is not active */
ta4mr = 0x82;
/* set for one shot timer mode */
ta4 = 0xffff;
/* Debounce time delay */
ta4s = 1;
/* get ready */
ta4os = 1;
/* start timer once */
LCD_init();
/* Initialize LCD display */
int0ic = 0x05;
asm("FSET I");
/* Enable INT0 interrupt */
/* Enable all interrupts */
LCD_write( msg_text1, 1 ); /* Intial LCD message */
LCD_write( msg_text2, 2 );
/**************** PROGRAM LOOP **************************/
if (ad_on == 1){
p7_7 = ~p7_7;
L2homeLCD();
/* blink LED to indicate A/D sampling */
/* Home LCD on line 2 */
adst = 1;
while(adst == 1);
return to 0 */
/* Start A/D conversion */
/* wait for A/D conversion start bit to
}
}
/******************** END OF MAIN *******************************************/
ad_data = ad0;
*mem_ptr = ad_data;
mem_ptr++;
sample_cnt++;
/* read value from A/D register */
/* save A/D data to memory */
/* increment memory pointer */
/* increment sample counter */
LCD_DisplayHex(ad_data);
/* Output data to LCD */
}
if (sample_cnt >= 0x2000){ /* limit samples to 8k bytes */
ad_on = 0;
/* stop sampling */
p7_7 = 1;
/* stop LED blinking */
Get_Avg ();
/* calculate average A/D value */
}
for (delay=0x2aff; delay>0; delay--); /* sampling delay ~100ms */
AN-DECE-MCU-18-A
September 2001
9
相關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
相關代理商/技術參數(shù)
參數(shù)描述
USJ015PR3DXC05 功能描述:集管和線殼 USJ015PR3DXC30 = Strip RoHS:否 產品種類:1.0MM Rectangular Connectors 產品類型:Headers - Pin Strip 系列:DF50 觸點類型:Pin (Male) 節(jié)距:1 mm 位置/觸點數(shù)量:16 排數(shù):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 位置/觸點數(shù)量:16 排數(shù):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 位置/觸點數(shù)量:16 排數(shù):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 位置/觸點數(shù)量:16 排數(shù):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 位置/觸點數(shù)量:16 排數(shù):1 安裝風格:SMD/SMT 安裝角:Right 端接類型:Solder 外殼材料:Liquid Crystal Polymer (LCP) 觸點材料:Brass 觸點電鍍:Gold 制造商:Hirose Connector