abstract: this article explains how to upgrade the adc conversion resolution of an 87c752 microcontroller from 8 bits to 12 bits. the analog-to-digital converter is replaced automatically by sensing the presence of the external max186 or max188 a to d.
the simple circuit of figure 1 (plus a software routine) lets you substitute a multichannel, 12-bit a/d converter for the 8-bit a/d converter internal to an 87c752 microcontroller. thus, a single assembly can implement both the low- and high-performance versions of a system. the software mentioned can be downloaded from edn's free electronic bulletin board service (bbs)*.
figure 1. the connections shown enable this µc to subsistute an external 12-bit a/d converter for its internal 8-bit converter. replacing the external converter with the resister network causes the µc to resume use of its converter.
a socket lets you plug in the external a/d converter when you need it; otherwise you plug in the network of ten 10ω resistors. at power-up, the µc executes a routine that looks for the external converter. if present, it is used; if not, the internal 8-bit converter is used. (internally, the chip handles all conversion results as 12-bit values.)
this idea relies on the fact that the 87c752's five a/d-input pins can also serve as the bidirectional pins of an 8051 port (port 1). the resistor network connects the internal a/d converter directly to the applied analog inputs. or, replacing the network with the external a/d converter connects those inputs to corresponding channels on that converter, and the µc's a/d-input pins (now acting as a bidirectional port) serve as a digital interface to the converter. by fortune and design, the change from external to internal converter is effected by simple pin-for-pin jumpers across the socket.
the assembly-language software routine looks for the external converter by triggering a conversion and noting whether or not the converter's busy flag (sstrb) goes low. if it does, the µc sets an internal global flag (ad12) that tells it to use its external-converter routines for each subsequent conversion. this action is transparent to the calling routine. the conversion result, returned as bytes adhi and adlo, has the same format in either case except the four lsbs are zero for 8-bit-converter data.
note that the µc's full scale is 5v, but the converter shown (max186) sets its full-scale input range with an internal reference of 4.096v. software resolves the incompatibility in this example. otherwise, you can replace the max186 with a max188 (a similar device with no internal reference) plus a separate 5v reference.
* set modem to 2400 baud, 8 data bits, no parity, and 1 stop bit. dial (617) 558-4241 and log on. (new users must set up an account; this is free.) type ss/di_sig to select the design ideas section, rk1554 to select this idea, and d for downloading the file. select protocol, download the file, log off, and then unzip the file.
a similar article appeared in the july 7, 1994 issue of edn magazine.
CISSOID、NAC和Advanced Conversion三强联手开发 高功率密度碳化硅(SiC)逆变器
超声波在医疗领域的应用,医用超声设备的市场规模
利用AV功放自测系统实现音响功能
6P14小型电子管功放的制作,6P14 vacuum tube amplifier
利用超声波传感器在ARM9与linux平台中实现移动机器人导航的设计
12位ADC升级移植内部8位ADC-12-Bit ADC U
dfrobot透明保护壳(兼容乐高积木)简介
新兴记忆体如何处理物联网所创造的机会
电机绕组的磁势讲解
你不一定要买苹果的设备才能听Apple Music
内“芯”更强大 三星智能锁R80让物联网安全触手可及
关于MEMS现状以及未来的发展分析
IBM与SAP强强联盟,加速企业数字化转型
直流超声波电机是一种特殊的微型电动机,它有哪些应用领域
二手频谱分析仪价格浮动?原来是这样
电阻器的检测方法和技巧
思科拟26亿美元收购Acacia 后者是其现有供应商
全球LCD产业朝国内转移已是大势所趋?
无人机撞上波音737客机 未造成人员伤亡
连续相位QAM调制原理