2

关于投票
CH452 真是不怎么好用

实在是想支持国内的IC产业,在设计中不是很要紧的地方尽量的使用国产的芯片.

LED数码管一般都需要找一个合适的驱动器. 象七段八位的数码管驱动器国内的有周立功的ZLG7289 南就沁恒的CH452A

ZLG7289实际上是一个掩模的单片机,需要外接一套晶体,然后使用. 因为SPI是模拟的所以速度不行, 显示和键盘扫描靠软件实现, 难免就会有冲突.频繁使用键盘时,会使显示闪烁. 因为外围需要的东西比较多, 所以只用了一段时间,就不再使用了.

有人推荐了CH452, 看了看手册,感觉不错.设计了个东西.刚开始用了几百片,感觉还行.可有一段时间却出了问题了.

最先出现的问题是老是读到错误的键值.其原因是, CH452的键盘与显示驱动是复用的.在显示驱动的间隔中,CH452依次将行列线反向,检测键值.这是一个相当好的办法,显示与键盘不容易冲突, 显示稳定性很好. 但存在一个严重的问题,如果使用的数码管反向漏电流大,就会有错误的键值产生.反向漏电流大到一定程度,相当于对应行列上的按键被按下.解决这个问题的办法有二:其一是选用反向漏电流小的数码管.一般数码管的手册都不会提供反向漏电流的数值,所以需要仔细挑选数码管.其二是在每个COM端加一个二极管.因为普通的二极管反向漏电流是很小的.加二极管会影响数码管的亮度.而且还可能会出现一个不明原因.如果在CH452上电前按下按键,CH452上电后,不能给出正确的键值,但过一会键值会正常.

CH452还有一个严重的问题,某些批次上电后一直保持在复位状态,无法进入正常使用状态. CH452内置了一个上电复位电路,当上电后,CH452内部复位电路需要近30mS才能复位完成. 在某些情形下,如使用了开关式的DCDC,系统供电上升时间比较长,比如一个5V的系统,DCDC需要近100mS才能由0V升高到5V.而在这个过程中,CPU也许已经都已经开始工作了, 并且对CH452进行了初始化,当然此时CH452仍然处于复位态,初始化是无效的.系统引导起来后,显示系统就有可能不能正常工作.

使用过程中有什么问题可以直接打电话问南京沁恒的支持工程师,工程师态度很好,也很耐心.

总之,CH452的设计思路还是不错的,只是这些细节问题没有处理好,还需要再加把劲.

 

 

 

 

 

系统分类: 单片机
用户分类: 电路设计
标签: LED显示驱动
来源: 原创
发表评论 阅读全文(1267) | 回复(3)

0

关于投票
AD Key board circuit design

Key board circuit design

As I just mentioned, we must make a choice to select each of keyboard circuit. The keyboard must stable in any conditions. There will be 2 ways to implement the keyboard. One of it is the analog to digital keyboard , the other one is the build in keyboard scanner.

A/D keyboard

       The output of A/D keyboard is analog one, so it must suffer from noise in circuit, so the largest output interval among keys get the best noise immunity. So if n keys used and power by VCC, the max interval will be VCC/n. we can have 4 configurations of keyboard like figure 1. The direct way is use n same resistors to divide the VCC like figure 1(a), when the nth key is pressed the output is n/VCC, to give a no key pressed status, a pull-up resistor should used to pull the output. This pull-up resistor should much great than the voltage-divide resistors. This circuit is suffered from key parasitic resistor in humidity condition, because of the high input impedance of A/D converter. Figure 1(a) can be changed to figure 1(b), just remove R3, and change pull-up resistors to a right one. Though this circuit is not sensitive to parasitic resistor, but it is sensitive to noise, because the output interval is smaller. We can change the resistors of R0 R1 R2 to appropriate one to enlarge the output interval. Circuit like figure 1(c) has a problem of accumulating resistor value deviation. Use circuit like figure 1(d) seem better.

 点击看大图

系统分类: 模拟技术
用户分类: 电路设计
标签: AD 键盘
来源: 原创
发表评论 阅读全文(975) | 回复(0)
总共 , 当前 /