In the rapidly developing electronic and telecommunication technology systems, the quality of the power supply determines the performance and life of telecommunication equipment to a certain extent. Although the digital control constant voltage technology on the market is relatively mature, digital control voltage source products have also developed towards the trend of intelligence and miniaturization, and the price is getting cheaper and cheaper.
Keywords:C8051FF330D
Reference address:How to design a constant current source controller using the C8051FF330D microcontroller
With C8051FF330D single-chip microcomputer as the control core, and using the I2C serial bus of C8051FF330D to expand peripheral devices, a program-controlled constant current source is designed with modular design method. Moreover, the whole power supply also has the characteristics of low power consumption, small size, small current ripple, high control accuracy and stable operation.
Tools/Raw Materials
- C8051FF330D microcontroller, JTAG interface, LED digital tube, circuit diagram, keyboard
Steps/Methods
- The overall structure of the system: The 10-bit current-type digital-to-analog converter and current/voltage conversion circuit inside the C8051FF330D microcontroller are used to output an analog value of 0 to 4 V, and then this voltage signal is used to control the output current of the constant current source so that it changes according to a given value.
- Output interface circuit: The 0-1 mA current signal output by the digital-to-analog converter in the internal circuit of C8051F330D is converted into a 0-2 V voltage signal through a reference resistor, and then converted into a 0-4 V standard signal output through an amplifier circuit. The analog output signal conversion circuit is shown in the figure.
- Power-off protection circuit: To prevent the system from powering off, this design uses FM24CL04 as a non-volatile memory to protect system parameters and other intermediate data. Unlike EEPROM, FM24CL04 can be written at bus speed. It uses an industrial standard two-wire I2C interface. Figure 3 shows the power-off data protection circuit included with this power system.
- Keyboard and display circuit; Using ZLG7290B dedicated chip can also simplify circuits and programs, and reduce the debugging burden of circuits. Moreover, as an industrial-grade display driver chip, ZLG7290B also has strong anti-interference ability. Figure 4 shows the schematic diagram of the keyboard and display driver circuit composed of C8051F330D microcontroller and ZLG7290B dedicated display driver chip.
- Main program design: C language is used for software design to realize various functions of the system. The system application adopts modular structure design, mainly including main program, parameter call modification subroutine, DAC0 initialization program, etc. Figure 5 shows the main program flow chart.
- Module function programming:
Void DAC_Init (void)
{
REF0CN =0X30; /*Internal bias generator and voltage reference buffer work, reference is output from VREF pin*,
ID0CB =0XF2;
}
The memory write function is as follows:
Viod EEPROM_ByteWrite ( uchar i2caddr,uchar addr, uchar dat )
{
While (smb_busy)
Smb_busy = 1;
Target = i2caddr;
Smb_w =write;
Smb_sendwordaddr = 1;
Smb_randomread = 0;
Smb_ackpoll =1;
Word_addr = addr;
Smb_singlebyte_out = dat;
Psmb_data_out=&smb_singlebyte_out;
Smb_data_len=1;
Sta = 1;
}
……
Precautions
- Be sure to follow the above steps during the production and configuration process
- After the final success, some debugging is still required
Previous article:51 single chip microcomputer to make infrared remote control
Next article:315M MCU Wireless Decoding--HS2262
- Popular Resources
- Popular amplifiers
Recommended Content
Latest Microcontroller Articles
- Naxin Micro and Xinxian jointly launched the NS800RT series of real-time control MCUs
- How to learn embedded systems based on ARM platform
- Summary of jffs2_scan_eraseblock issues
- Application of SPCOMM Control in Serial Communication of Delphi7.0
- Using TComm component to realize serial communication in Delphi environment
- Bar chart code for embedded development practices
- Embedded Development Learning (10)
- Embedded Development Learning (8)
- Embedded Development Learning (6)
He Limin Column
Microcontroller and Embedded Systems Bible
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
MoreSelected Circuit Diagrams
MorePopular Articles
- Intel promotes AI with multi-dimensional efforts in technology, application, and ecology
- ChinaJoy Qualcomm Snapdragon Theme Pavilion takes you to experience the new changes in digital entertainment in the 5G era
- Infineon's latest generation IGBT technology platform enables precise control of speed and position
- Two test methods for LED lighting life
- Don't Let Lightning Induced Surges Scare You
- Application of brushless motor controller ML4425/4426
- Easy identification of LED power supply quality
- World's first integrated photovoltaic solar system completed in Israel
- Sliding window mean filter for avr microcontroller AD conversion
- What does call mean in the detailed explanation of ABB robot programming instructions?
MoreDaily News
- Vicor high-performance power modules enable the development of low-altitude avionics and EVTOL
- Chuangshi Technology's first appearance at electronica 2024: accelerating the overseas expansion of domestic distributors
- Chuangshi Technology's first appearance at electronica 2024: accelerating the overseas expansion of domestic distributors
- "Cross-chip" quantum entanglement helps build more powerful quantum computing capabilities
- Ultrasound patch can continuously and noninvasively monitor blood pressure
- Ultrasound patch can continuously and noninvasively monitor blood pressure
- Europe's three largest chip giants re-examine their supply chains
- Europe's three largest chip giants re-examine their supply chains
- Breaking through the intelligent competition, Changan Automobile opens the "God's perspective"
- The world's first fully digital chassis, looking forward to the debut of the U7 PHEV and EV versions
Guess you like
- C language capture error mechanism
- Updated positions in May Location: BJ/SH/SZ/HZ/WX IC Various positions are available
- How to distinguish the four pin definitions of the C8051F58X emulator?
- Do you know about floating isolated oscilloscopes?
- Evaluation of the domestic FPGA Gaoyun GW1N-4 series development board - Hardware Part 1
- What is the network port of the WiFi module?
- Frequency Synchronization Analysis of Spaceborne Parasitic SAR System
- Learn, watch, learn, imitate, absorb the essence and transform
- Serial port wifi moduleSerial port wireless module
- Has anyone used RTL8309N to make an optical switch? Can anyone familiar with Realtek chips help me?