參數(shù)資料
型號: USING
英文描述: Using the Expanded Memory Mode with the M16C/62
中文描述: 使用帶有擴展內(nèi)存雙隨機PWM模式
文件頁數(shù): 12/14頁
文件大?。?/td> 831K
代理商: USING
M16C/62
Using the Expanded Memory Mode with the M16C/62
int count;
clrLCD ();
LCD_write( msg_avg, 1 );
L2homeLCD();
/* clear LCD */
/* change LCD display */
/* Home LCD on line 2 */
count = sample_cnt;
word_ptr = (unsigned int *) mem_start; /* Reset memory to begining */
/* get number of samples */
for
}
(total = 0; count > 1; count -= 2){
memory.word = *word_ptr;
total += memory.byte.low;
total += memory.byte.high;
word_ptr ++;
/* read word from memory */
/* add lower byte to total */
/* add upper byte to total */
/* increment word memory pointer */
if(count == 1){
memory.word = *word_ptr;
total += memory.byte.low;
count --;
}
avg = total / sample_cnt;
/*if odd number of data,get last one*/
/* read word from memory */
/* add lower byte to total */
}
/*****************************************************************************
Name: LCD_write
Parameters:
Returns:
Description: This routine outputs some text to the LCD display
*****************************************************************************/
void LCD_write ( _far char * data_string, int line )
{
int p;
if(line == 1)
L1homeLCD();
else
L2homeLCD();
for (p=0; data_string[p]; p++){ /* This loop reads in the text string */
SendChar(data_string[p]);
}
}
/* calculate average value */
LCD_DisplayHex(avg);
/* Output average to LCD */
/* home display on line 1*/
/* home display on line 2*/
AN-DECE-MCU-18-A
September 2001
11
相關(guān)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
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
USJ015PR3DXC05 功能描述:集管和線殼 USJ015PR3DXC30 = Strip RoHS:否 產(chǎn)品種類:1.0MM Rectangular Connectors 產(chǎn)品類型: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:否 產(chǎn)品種類:1.0MM Rectangular Connectors 產(chǎn)品類型: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:否 產(chǎn)品種類:1.0MM Rectangular Connectors 產(chǎn)品類型: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:否 產(chǎn)品種類:1.0MM Rectangular Connectors 產(chǎn)品類型: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:否 產(chǎn)品種類:1.0MM Rectangular Connectors 產(chǎn)品類型: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