Upgrade panel-meter range and

the technique shown lets you easily double the input-voltage range of a typical voltmeter ic (to ±400mv), and extend its precision to 4¾ digits (±40000 counts).
a similar version of this article appeared in the july 14, 2010 issue of ee times magazine.
the input-voltage range for a typical voltmeter ic is usually ±200mv, with precision of 3½ or 4½ digits. a sigma-delta panel-meter ic from maxim (max1499) is no exception, but you can easily double the range (to ±400mv), and extend the precision to 4¾ digits (±40000 counts).
adjacent to the internal 20-bit adc and 7-segment display driver, the max1499 includes an spi™ interface that allows access to the adc result, and also offers full control over the led display. a microcontroller can easily use this interface to read the adc result and control what is shown on the display.
circuitry for doubling the input range is as simple as a resistor divider that cuts the signal in half, allowing the ic's input-voltage range to remain ±200mv. instead of vin, the adc now measures vin/2. you can easily compensate this factor of two by shifting the result one bit to the left (digital multiplication by 2).
the adc resolution is 20 bits, which is more than enough to support 4¾-digit precision. (normally, the ic obtains 4½ digit precision using only 16 of the 20 available bits.) figure 1 shows how the data is rearranged. the 17th bit is used to fill the gap caused by the multiplication by 2.
the resistor divider adds gain error, so you should choose resistors whose accuracy meets the requirements of your application.
figure 1. the range of this panel-meter circuit is doubled by scaling the input signal, and its precision is doubled by using more of the available bits.
a 7-segment display driver internal to the panel-meter ic drives a common-cathode led display, using a multiplexing scheme to drive one digit at a time. unfortunately the driver is optimized for driving 4½-digit displays. that means that the first (most significant) position can only show a half digit of +1 or -1 (figure 2).
figure 2. seven-segment displays include half digits (left) and full 1 digits (right).
signals via the spi interface can switch all segments in the display on and off individually, except for those in the first digit. segments b and c (which form 1) can only be switched on or off together. the same is true for segments a, f, and d (which form +). segment g (which forms -) is on when segments a, f, and d are off, and vice versa. to upgrade this display to 4¾ digits, you must ensure that the first digit position can show 1, 2, 3, or a blank (figure 3). from the figure it is clear that segment f is never used, so you need only control six of the segments.
figure 3. in the four possible states of a ¾-digit display, segment f is always off.
if the ½-digit display is replaced by a full 1-digit display, and control lines for the f and g segments are swapped, all segments but f are lit when the 1 and + signs are activated (figure 4). the e segment is not used in the ½-digit display, and if left connected is on by default. adding switches in the form of low-cost npn transistors enables a microcontroller to turn each segment on and off via a few gpio pins, producing a display of blank, 1, 2, or 3. the complete circuit is shown in figure 5.
figure 4. to convert a ½-digit display to a full 1-digit display, swap the control lines to the f and g segments.
figure 5. complete 4¾-digit panel-meter circuit.
the end of conversion (eoc\) signal connects to an external interrupt on the microcontroller. when a new value appears, the microcontroller reads it through the spi port and multiplies it by 2. it then determines which segments to illuminate (switch on) by using the spi port to set correct values in the display registers. external transistor switches are then set via the gpio pins to create the desired character.
in front of the first digit you can use a rectangular led as a minus sign, controlled by the signal of an unused decimal point. any microcontroller with an external interrupt pin, an spi interface, and enough gpios is acceptable for this application. the test setup includes a max1499 panel-driver ic on the display board, controlled by a low-power risc microcontroller (maxq610) on its own evaluation board (figure 6). firmware is available for download.
在ISE中直接调用chipscope进行在线逻辑分析(1)
小米7什么时候上市?小米7大曝光,抢不到小米6怎么办,别急!小米7坐着骁龙845来了
直接变频接收机可实现多标准/多频段接收
二氧化碳传感器在汽车空调控制系统中的应用
怎样判断UVLED固化光源的好坏
Upgrade panel-meter range and
从按键到语音:家电设备交互的演进之旅
人工智能技术大显身手,助力抗击新冠肺炎疫情
如何实现NB-IoT的低功耗,最主要的原因是什么
汇芯通信曾学忠的全新5G项目正式浮出了水面
在英特尔Xeon Phi™协作处理器上为数学内核库做好准备编译4第1部分
UEFI中的中断处理流程
三星折叠屏手机正式发布_携手三星S10系列惊艳亮相
电机控制器的主要功能及组成
医用防护服阻燃测试仪技术特点
Verizon打算今年秋季在洛杉矶推出5G网络
CANFD总线异构通讯简单实例
iphone13和13pro哪个好 哪款更值得入手
端到端的自动驾驶研发系统介绍
智能工业需求急升 “工业云”平台国家试点获批