參數(shù)資料
型號: W78C378P
廠商: WINBOND ELECTRONICS CORP
元件分類: 微控制器/微處理器
英文描述: MONITOR MICROCONTROLLER
中文描述: 8-BIT, MROM, 10 MHz, MICROCONTROLLER, PQCC44
封裝: PLASTIC, LCC-44
文件頁數(shù): 35/38頁
文件大小: 396K
代理商: W78C378P
Preliminary W78E378/W78C378/W78C374
Publication Release Date: December 1999
- 35 - Revision A1
Appendix A. Application Note for Usage of ADC
To use the ADC, users should pay attention to the following points:
(1) According to the absolute maximum ratings, the input voltage should not exceed V
DD
+0.3V,
especially for the ADC channel pins (P2.4
P2.7 & P3.5
P3.7). If a voltage over V
DD
+0.3V exists
on any of these ADC channel pins, the AD conversion will fail.
(2) Owing to the CMOS process, the ADC curve of some chip might differ from those of the others.
So, before using the ADC, the S/W should do the ADC calibration described below.
Step 1. Set (ADCS2, ADCS1, ADCS0, ADCcal) = (1, 1, 1, 0) and then do AD coversion to get
the ADC value for the on-chip
0.948V
input. Suppose it is
A
.
Step 2. Set (ADCS2, ADCS1, ADCS0, ADCcal) = (1, 1, 1, 1) and then do AD coversion to get
the ADC value for the on-chip
2.924V
input. Suppose it is
B
.
Step 3. Because the ADC curve in the usable range is linear, any
V
and
X
should
meet the
formula:
(X-A)/(V-0.948) = (B-A)/(2.924-0.948)
,
where
V
is the key voltage (designed by users and thus known) and
X
is its predicted
ADC value. Then, we can get
X = A + (V-0.948)(B-A)/(2.924-0.948)
, regardless of V >
0.948V or < 0.948V. (
Of course, some effort should be paid in S/W to find
X
.)
Step 4. Suppose there are N keys used, the N predicted ADC values for these keys can be
found.
1.0
2.0
3.0
4.0
5.0
ADC input voltage
ADC value
X
A
B
V
Usable range
(is linear)
After finding these N predicted ADC values, the S/W can recognize which key is pressed by
comparing the ADC value of this key with the set of predicted values (found previously).
** Note: To get the exact on-chip calibration voltages (0.948V and 2.924V), the V
DD
should be 5.0V as close as possible.
相關(guān)PDF資料
PDF描述
W78E378 MONITOR MICROCONTROLLER
W78E378P MONITOR MICROCONTROLLER
W78C438B 8-BIT Microcontroller(8位的微控制器)
W78C438C40FL 8-BIT MICROCONTROLLER
W78C438C40PL 8-BIT MICROCONTROLLER
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
W78C438 制造商:WINBOND 制造商全稱:Winbond 功能描述:8-BIT EMULATION MICROCONTROLLER
W78C438BF-16 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-Bit Microcontroller
W78C438BF-24 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-Bit Microcontroller
W78C438BF-33 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-Bit Microcontroller
W78C438BF-40 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-Bit Microcontroller