选择嵌入式用户界面-Options for Embedded

abstract: this application note describes how the capabilities of the maxq2000 microcontroller are ideal for driving both simple and complex user interfaces.
introductionin today's increasingly complex embedded systems, a user interface is a necessity rather than a convenience. to facilitate this design requirement, engineers must first determine the complexity of the interface, which can range from a simple led to more complex character or graphic lcds.
the led—a basic interfacethe simplest applications may only require on/off-type leds for displaying status information. in that case, the leds can be controlled directly by a general-purpose i/o pin capable of sourcing or sinking the necessary current required for lighting the led, typically between 2ma and 10ma. to determine the source/sink current capabilities of the microcontroller, you should check its datasheet for voh or vol values. often these values are given for a specific condition, and it may be necessary to interpolate the values for a higher or lower current.
figure 1 shows a led circuit commonly used with a microcontroller, the maxq2000. in this case, the resistor, r, must be sized to limit the current through the led to 4ma. to calculate r's value, assume that the led drop is typically 2.0v (confirm this by checking the led data sheet) when turned on. the maxq2000's low output voltage is specified to be a maximum of 0.4v. therefore, the voltage at the base of the resistor is 0.4v + 2.0v, or 2.4v. using ohm's law:
r = (3.3v - 2.4v)/4ma = 225ω.
figure 1. led circuit that interfaces to the maxq2000 microcontroller.
more informative—and complicated—interfacesalthough an led provides simple status information, many new embedded system designs require a more complicated and informative user display. system status, user settings, measured values, and other types of data are not easily communicated with a simple led. the designer has several options available for this broader range of information, including graphic and alphanumeric lcds.
a first consideration is the lcd driver. a basic microcontroller allows you to connect an external lcd driver through a serial or parallel interface. the primary advantage to this approach is the ability to quickly add an lcd to an existing design with very little rework to the embedded software or system schematic. there is, however, a caveat with this approach. the external lcd driver can increase both the board size and cost, while also using valuable microcontroller resources.
newer microcontroller families, such as the maxq shown above, offer an integrated lcd driver. this design offers many advantages, including reduced resource consumption, smaller board space, fewer components, and lower power.
when choosing an lcd for an embedded system, there are several factors to consider. of primary importance is the total number of characters or symbols to display. this number directly determines the total number of segments required for the lcd. each character on an lcd is usually comprised of between 7 to 14 segments, and the microcontroller's lcd driver controls each segment. if the application needs to display time, for example, the lcd will require four numeric characters and a colon between the hour and minute characters. for the colon, a single segment can be used. moving beyond such a basic ldc display, many lcd manufacturers produce custom lcd versions in their devices to meet specific application requirements. a blood pressure monitor could use a heart symbol to indicate heartbeats. this special character can also be displayed using a single-segment driver. as one can see, it is easy to generate a complex user interface using a limited number of segments.
another important design consideration is the lcd duty cycle supported by the microcontroller. multiple duty cycles let the application support a wide variety of displays. the maxq2000 has integrated support for static, 1/2, 1/3, and 1/4 duty cycles, allowing display of between 36 and 132 lcd segments. in a static duty cycle, each lcd segment is driven directly from an lcd pin on the microcontroller. consequently, in static mode the total number of segments possible is equal to the number of available segment pins (36 on the maxq2000-rax). for multiplexed duty cycles, the lcd controller in the microcontroller drives multiple segments per clock cycle. as a result, multiplexed displays can suffer from a degraded video image versus a static display, because each segment is only lit for a portion of each display cycle. the viewing quality can, however, be adjusted using contrast control. in multiplexed duty-cycle operation, the denominator indicates the number of com pins driven in a single cycle. in 1/4 duty-cycle mode, for example, the number of com pins is 4 (denominator), leaving 33 total segment pins on the maxq2000. the total segments supported by the microcontroller increases to 33 x 4, or 132 segments. taking these factors into consideration, a complex user interface is actually simple to create.
as 8- and 16-bit microcontroller applications expand into more complicated control applications, there is often a need to display more sophisticated or user-friendly information in the user interface. this is especially true in today's automotive dashboard electronics, medical equipment, and safety devices. recognizing these application trends, microcontrollers that accommodate these interface needs and provide designers the flexibility to choose among a wide variety of devices will undoubtedly save design time and effort. the benefit is clearly shorter time to market with more application-specific products.
OPPOF3Plus新机意外现身印度官网,新机消息惨遭泄露
2021-2030年中国电动夹爪市场销量及预测
光伏发电系统用逆变器的基本知识
隆达小量出货Mini LED 营收将增双位数百分比
我们的脸正亟需保护
选择嵌入式用户界面-Options for Embedded
第十届中国功率变换器磁元件联合学术年会召开的通知
HTC Vive汪丛青:对“山寨VIVE”不评论 已投资33家初创
AMD明年Q1将推出Trinity处理器
台积电或解华为当前的危机_28nm芯片可供货
测报工具箱是什么,它的主要作用是什么
一氧化碳检测仪有哪些性能要求
从4G和5G的发展出发 看未来天线技术的发展路线
【学习】浅谈如何监管区块链+金融?
锤子科技坚果3新品发布会 没想到火的却是这款智能门锁
单片小信号处理TDA8362引脚功能及电压
划船不用桨靠的是什么?靠Coreyak啊!
小米推出新款行车记录仪 搭载华为海思处理器芯片
到底什么是6G?
焊接的电气安全技术_焊接作业的安全准备