針對目前使用的RS232接口數字化B超鍵盤存在PC主機啟動時不能設置BIOS,提出一種PS2鍵盤的設計方法?;赪78E052D單片機,采用8通道串行A/D轉換器設計了8個TGC電位器信息采集電路,電位器位置信息以鍵盤掃描碼序列形式發送,正交編碼器信號通過XC9536XL轉換為單片機可接收的中斷信號,軟件接收到中斷信息后等效處理成按鍵。結果表明,在滿足開機可設置BIOS同時,又可實現超聲特有功能,不需要專門設計驅動程序,接口簡單,成本低。
Abstract: Aiming at the problem of the digital ultrasonic diagnostic imaging system keyboard with RS232 interface currently used couldn?蒺t set the BIOS when the PC boot, this paper proposed a design method of PS2 keyboards. Based on W78E052D microcontroller,designed eight TGC potentiometers information acquisition circuit with 8-channel serial A/D converter, potentiometer position information sent out with keyboard scan code sequentially.The control circuit based on XC9536 CPLD is used for converting the mechanical actions of the encoders into the signals that can be identified by the MCU, software received interrupt information and equivalently treatmented as key. The results show that the BIOS can be set to meet the boot, ultrasound specific functionality can be achieved at the same time, it does not require specially designed driver,the interface is simple and low cost.
介紹了用單片機C 語言實現無功補償中電容組循環投切的基本原理和算法,并舉例說明。關鍵詞:循環投切;C51;無功補償中圖分類號: TM76 文獻標識碼: BAbstract: This paper introduces the aplication of C51 in the controlling of capacitorsuits cycle powered to be on and off in reactive compensation.it illustrate thefondamental principle and algorithm with example.Key words: cycle powered to be on and off; C51; reactive compensation
為提高功率因數,往往采用補償電容的方法來實現。而電容器的容量是由實時功率因數與標準值進行比較來決定的,實時功率因數小于標準值時,需投入電容組,實時功率因數大于標準值時,則需切除電容組。投切方式的不合理,會對電容器造成損壞,現有的控制器多采用“順序投切”方式,在這種投切方式下排序在前的電容器組,先投后切;而后面的卻后投先切。這不僅使處于前面的電容組經常處于運行狀態,積累熱量不易散失,影響其使用壽命,而且使后面的投切開關經常動作,同樣減少壽命。合理的投切方式應為“循環投切”。這種投切方式使先投入的運行的電容組先退出,后投的后切除,從而使各組電容及投切開關使用機率均等,降低了電容組的平均運行溫度,減少了投切開關的動作次數,延長了其使用壽命。