abstract: the ds3904 contains three digitally controlled nonvolatile (nv) variable resistors. it has the capability of placing each of the variable resistors into a high-impedance state. using this feature, it is possible to create a 2-wire controlled nv digital dip switch. this application note will explain the resistor settings necessary to create a digital dip switch using the ds3904, and how to create nv outputs that can be used to configure digital systems.
resistor register settingsto place one of the ds3904 in high-impedance mode, the msb of the selected resistor register must be written to a '1'. for example, writing 80h to one of the variable resistor registers enables the high-impedance mode for that resistor. this value can be used to generate a high when combined with a pullup resistor. to attain the smallest resistance available from the variable resistors (typically 400ω), the resistor register must be set to 00h (position 0). this will generate a low.
hardware requirementswhen using a mechanical dip switch to control a digital input, pullup resistors are used to create a high state (see figure 1). a low is generated by closing the dip switch.
figure 1. mechanical dip switch.
the ds3904 can be used to replace a mechanical dip switch by taking advantage of the high-impedance mode. by connecting a pullup resistor from each of the h terminal pins to a voltage potential, a high state will be created when the corresponding variable resistor is placed in high-impedance mode. a low state is created by writing 00h to the resistor register. the voltage limit on the h pins is 5.5v and the current limit is 3ma. to satisfy those limits and the voltage level requirements for a digital input, a 10kω pullup resistor is used (see figure 2). assuming a voltage of 5.0v, a position 0 variable resistor value of 400ω, and a pullup resistor value of 10kω, a low state will produce a voltage of approximately 0.19v.
figure 2. 2-wire controlled nonvolatile switch using 00h and rhiz (80h).
advantages of using a digital dip switchusing the ds3904 instead of a conventional mechanical dip switch offers the advantages of smaller size and better security. the 8-pin µsop footprint of the ds3904 is much smaller than mechanical dip switches. even with two ds3904s placed side-by-side, the combined footprint is much smaller than that of an 8-pin dip switch. the profile of the µsop package is also much lower than that of a mechanical dip switch.
with the ds3904, there is no temptation to accidentally toggle the switches. the resistor registers must be addressed before a change can be made, thus the resistor register values are protected from curious users or unintentional toggling. this is an advantage for production testing because human interaction is not required to toggle the switches. with the 2-wire controlled digital switch, the production program can toggle the instead of an operator. the switches are non-volatile and will remain set after power is cycled to the device.
while a mechanical dip switch typically provides at least 5000 operations, the ds3904 provides a minimum of 50,000 operations at 85°c. the 2-wire interface allows the ds3904 to toggle quickly, and its monolithic design is resistant to vibrations. the ds3904 is also less than half the cost of a mechanical dip switch.
conclusionif a system requires a status indicator or just a method of toggling a bit or two, then the ds3904 is an ideal solution. it has a small footprint, a low-profile, and is a surface-mount device. it is electronically and physically secure from accidental switching. finally, it offers fast switching, has a longer life than mechanical dip switches, and is half the cost of a conventional mechanical dip switch.
小松工厂更换氢化植物油致力整个工程建设、矿山行业实现碳中和
一文解读智能医疗公司普遍所面临的困境
实现低于高于75W应用的绿色适配器解决方案
浅谈电瓶修复技术,电池物质脱落故障的症状及原因
直流电机将什么能转换为什么能输出?直流电机能量转化详解
2-Wire Controlled Digital DIP
容栅旋转编码器原理及应用[图]
字谜技术和STREAMUNLIMITED BLUETIGER
十大高音质真无线蓝牙耳机排名,性能颜值均兼顾
Databeans发布2011年模拟芯片市场排名
泰凌微电子丨TLSR827x系列低功耗多协议物联网SoC
光电液位开关与液位传感器有什么区别
PWM原理与PWM逆变器的工作原理图
蚂蚁集团回应:收到约谈通知,做好相关工作的落实
思谋打造全工序标准检测方案满足产线CT要求
直流电源维护保养的方法
如何利用STC89C52单片机做一个多种信号发生器
PCB布局设计检视要素有哪些?
硅谷:设计师利用生成式 AI 辅助芯片设计
曙光在遥感市场打造多个百PB级超大规模存储系统