Design of dimming system for cold cathode fluorescent film viewer using C8051F350

Publisher:TechGuru123Latest update time:2012-01-20 Keywords:C8051F350 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

introduction

Since the beginning of the 21st century, the world of information has changed rapidly. Maybe a high-tech product will be released today and a better similar product will be released tomorrow. The update cycle of electronic computer science and technology is about 2 to 3 years. With the development of science and technology such as electronic computers, the modernization and intelligentization of medical equipment has attracted more and more attention. A large number of scientists and engineers have actively participated in this revolution of medical equipment. Among them, the research on various types of X-ray film viewing equipment is also the focus of medical equipment development. Due to the shortcomings of low brightness, poor uniformity, and easy visual fatigue of traditional viewing equipment, it can no longer meet the requirements of modern medical diagnosis. The film viewer developed using CCFL (Cold Cathode Fluorescent Lamp) has the advantages of simple structure, small temperature rise on the surface of the lamp tube, high brightness on the surface of the lamp tube, long service life, good color rendering, and uniform light emission. Medical equipment is crucial. With good medical equipment, some operations that cannot be performed can be performed, and the success rate of the operations that can be performed will be greatly improved.

This article introduces a fully automatic CCFL film viewer brightness adjustment system with C8051F350 microcontroller as the main control chip. When the ambient light intensity changes, the system can keep the ratio of the background illumination intensity of the film viewer to the ambient light intensity at the best, so that the content of the X-ray film seen by the observer is the clearest and less prone to visual fatigue. The ratio of the brightness of the film viewer to the ambient light intensity can be initially set by the observer according to his or her specific situation. The system can also realize the automatic switch of the film viewer. After the X-ray film is inserted, the film viewer will automatically light up. When the system is idle, the film viewer will automatically turn off and enter power saving mode, extending the service life of the cold cathode lamp (which means that there is no need to heat the cathode, but to use the effect of the electric field to control the potential energy change of the interface, so that the electrons in the cathode convert the potential energy into kinetic energy and emit it outward.) It has great advantages compared with the traditional one. It not only ensures the accuracy of the doctor's film viewing, but also ensures the visual fatigue problem of the doctor himself. After all, medical matters cannot be ignored. The doctor's diagnosis results are related to the lives of many people. A little mistake will bring tragedy to one or even several families.

1 CCFL film viewer dimming principle

The film viewer developed using CCFL is an environmentally friendly and energy-saving device that uses a cold cathode high-frequency light source through liquid crystal backlight technology (LCD) to produce a large area of ​​high brightness, good uniformity, and low noise. CCFL backlighting technology is used to transform the line light source into a surface light source with uniform brightness. The CCFL luminous intensity is controlled by a DC/AC inverter, and the CCFL luminous intensity is changed by changing the inverter control voltage. In order to achieve the automatic adjustment of the film viewer to the optimal observation brightness after the ambient light intensity changes, the photoelectric sensor is used to dynamically collect the ambient light intensity, and the C8051F350 performs A/D conversion on the signal. After processing according to a certain algorithm, the CCFL-controlled voltage is output to achieve the purpose of automatic dimming. The medical equipment can provide the light that is most suitable for the environment at the time and the light intensity is stable when working.

2 C8051F35 Introduction

The C8051F350 is a microcontroller that fully integrates a single-chip complex signal system. The C8051F350 integrates a 24-bit 8-channel ADC and an 8-bit 2-channel DAC. The C8051F350 combines highly precise analog data converters with a high-throughput 8051 CPU, making it ideal for analog and computationally intensive applications.

C8051F350 MCU main features:

(1) 8051-compatible CIP-51 core with high-speed pipeline structure, with a maximum execution speed of 50MIPS;

(2) Full-speed non-intrusive system debug interface (on-chip, C2 interface);

(3) 24-bit 1ksps 8-channel single-ended/differential ADC with analog multiplexer;

(4) 2-channel 8-bit current DAC;

(5) High-precision programmable 24.5MHz internal oscillator;

(6) 8KB of in-system programmable FLASH memory;

(7) 768 (512 + 256) bytes of on-chip RAM;

(8) Hardware-implemented SPI, SMBus/IIC and UART serial interfaces;

(9) 4 general-purpose 16-bit timers;

(10) Programmable counter/timer array with 3 capture/compare modules;

(11) On-chip power-on reset, watchdog timer, 2 voltage comparators, VDD monitor and temperature sensor;

(12) 17 I/O ports;

(13) -40~85 degrees industrial temperature range;

(14) 2.7V~3.6V operating voltage, LQFP32 package; [page]

3 Hardware Design

The film viewer control system is mainly composed of three parts: automatic switch, dimming control, and communication interface. The system block diagram is shown in Figure 1. The system uses C8051F350 as the main control chip, and the infrared emitting tube realizes the automatic switch of the film viewer. The single-chip microcomputer realizes the dynamic adjustment of the brightness of the film viewer by real-time acquisition of ambient light intensity and background lighting intensity. The communication part adopts RS 232 interface mode, which mainly completes the setting of system parameters and the in-system upgrade (ISP) of the firmware program.

3.1 Infrared radiator

The automatic switch of the film viewer is realized by the infrared radiating tube sensor. When the X-ray film is inserted between the infrared radiating tubes, the infrared receiving tube outputs a signal, and the program detects the signal and turns on the CCFL; when the system is idle, the film viewer automatically turns off. This can better save electricity and achieve the purpose of low consumption. I believe it will be a great improvement compared with traditional film viewers.

The infrared emitting tube is Honeywell's SEP8505-002, which has an operating wavelength of 935nm, a material of GaAs (gallium arsenide), a luminous power of 7.8mW/cm (lumens), a spectrum width of 80nm, a forward voltage drop of 1.5V, and an output current of 20mA. The infrared receiving tube paired with it is SDP8405-002, with a power of 70mW and a working mode of triode emitter follower output. The output saturation current of the photoelectric receiving tube is 0.4mA, and the saturation voltage of the CE pole is 0.4V. The infrared detection circuit is shown in Figure 2.

3.2 Light intensity signal acquisition and conditioning

光电传感器在0~50 000 lux范围的照度下产生O~412 mV的电压,而单片机的A/D输入电压范围为O~3.3V,因此系统采用LM324对信号进行放大调理,其放大电路见图3。为实现将0~412 mV的电压放大到O~3.3V的范围,设计放大倍数为8,放大倍数由式(1)确定:

Av=1+R24/R23 (1)[page]

确定R23选择10 kΩ电阻,R24选择80 kΩ电阻。LM324由四个独立的运放组成,为了提高采集光强的准确度,分别用两个光电传感采集CCFL光强,两个采集环境光强,对这四路分别放大后直接输入到C8051F350的高精度AD转换通道0~3进行A/D化处理。

3.3 主控部分

主控芯片采用了美国Silicon Laboratories公司的混合信号ISP FLAsH微控制器C8051F350,其内部有一个全差分24位高精度Sigma-Delta模/数转换器(ADC),该ADC具有片内校准功能,保证了观片仪亮度的高精度动态调节。为实现其系统的稳定性和可靠性,采用模拟和数字分开供电,减少了数字信号和模拟信号之间的干扰。C8051F350主要控制观片仪的自动开关、光信号的A/D转换与处理、控制信号的输出、RS 232串口通信

3.4 控制信号放大

C8051F350内部有两个8位电流方式数/模转换器(IDAC),本系统选用IDACO,能实现O~255范围的微调,保证了系统的精度要求。IDAC0的最大输出电流可以有四种设置:O.25 mA,O.5 mA,1 mA和2 mA。设置IDAC0的满量程输出为0.5 mA,通过2kΩ电阻将电流转化为电压,电压最大可达1V,再经过LM358将电压放大到0~6V后输出,从而实现CCFL的高精度调光设计,如图4所示。

[page]

4 实验数据及处理

本系统采用2.6×380型号的CCFL和L88亮度计,测量CCFL在O~6 V之间不同控制电压下的亮度,实验结果如表1所示,表中亮度为多次测量的平均值。为实现精确连续流畅的调光,避免传统查表方式存在的精确度差占用存储空间多的缺点,这里采用公式法计算输出控制电压。根据表1,利用最小二乘法求解方程ATAC=ATy,由Matlab数学软件拟合出CCFL控制电压与亮度的关系的表达式为:

U=-10.995 8+3.586 1B-0.233 6B2+O.004 3B3 (2)

式中:U为控制电压值,B为对应的亮度值

5 Software Design

The software design mainly includes the upper computer software and the lower computer program. The upper computer software mainly realizes the setting of necessary parameters such as the optimal contrast of the lower computer, and is written in Visual C++6.0. The lower computer curing program mainly includes the automatic switch module program of the film viewer, the CCFL light emitting voltage control module program, and the RS 232 communication module. The modular design method is adopted, and all modules are interrupt-driven, which improves the efficiency of the system.

The lower computer program mainly cooperates with the hardware to realize dynamic dimming control. The dimming control program realizes dynamic adjustment of CCFL light intensity. According to the traditional method, the voltage and corresponding brightness relationship comparison table is downloaded to the lower computer, and the closest value is found by looking up the table during dimming. The dimming of this system obtains the control voltage by calculation according to the functional relationship between the control voltage and brightness, which saves the storage space of the lower computer, improves the dimming speed and ensures the continuity of the CCFL luminous intensity change. The specific implementation of dimming control is that the A/D with C8051F350 performs analog-to-digital conversion on the currently collected background lighting intensity and ambient light intensity. The ratio of background lighting and ambient light intensity is compared with the set value. If it is greater than the set value, it means that the ambient light is dimming. At this time, the CCFL needs to be dimmed to a certain brightness. If it is less than the set value, it means that the ambient light is getting stronger, and the CCFL luminous intensity needs to be increased. The control voltage of CCFL can be calculated by formula (2), and C8051F350 outputs the control signal to adjust the background lighting intensity of the film viewer.

6 Conclusion

This paper proposes a fully automatic dimming system for cold cathode fluorescent lamp (CCFL) film viewer based on single-chip microcomputer C8051F350. When the ambient light intensity changes, the brightness of the background lighting source of the film viewer is automatically adjusted to achieve the best ratio between the brightness of the film viewer and the ambient light intensity. When the system is idle, it automatically enters the energy-saving state, which greatly improves the service life of the film viewer. The experiment verifies that the control system can realize the automatic switch of the film viewer, and at the same time can effectively ensure that the brightness of the film viewer is automatically adjusted when the ambient light intensity changes, and the ratio of the background lighting intensity to the ambient light intensity is optimal. The experiment shows that the system has well realized the dynamic adjustment of the brightness of the film viewer, and has the characteristics of low power consumption and good stability.

Keywords:C8051F350 Reference address:Design of dimming system for cold cathode fluorescent film viewer using C8051F350

Previous article:Design of infrared remote control electric fan based on C8051F020
Next article:Software Design of Micro Thermal Printer Based on 89S51 Single Chip Microcomputer

Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号