Implementing a MAX1385-Based C

abstract: maxim's max1385 evaluation kit (ev kit) software includes a windows® graphical user interface (gui) program; however, the time cost of updating this display interferes with the control loop. this application note shows a more optimal control-loop program, using a console menu system instead of a gui.
when used with the max1385evkit+ demo board, the control loop achieves a regulation accuracy of ±2%. this accuracy is limited by the gate driver output step size and the fet transconductance. drain-current regulation step size is determined by the max1385's gate-voltage increment multiplied by the fet's effective transconductance. because the max1385evkit uses an irfz44n mosfet to close the loop for demonstration purposes, the regulation may not be the same as it would be when used with an ldmos fet.
required hardware maxim max1385evkit+ maxim cmaxqusb+ (includes usb a-b cable) windows 2000/xp pc with usb port 5vdc at 100ma power supply 10vdc at 1000ma power supply dmm for measuring drain current dmm for measuring drain voltage dmm for measuring pgaout amplified current-sense voltage optional: oscilloscope for monitoring gate1 voltage and pgaout1 drain current setupdownload and unzip the necessary executable and source code files (zip, 736kb).
assemble the hardware according to figure 1. plug the cmaxqusb header p3 into the max1385evkit connector j1. connect the max1385evkit's drain1 and drain2 pins to the current meter (-). connect the current meter (+) to the power supply (+). connect the max1385evkit's source1 and source2 pins to the power supply (-). connect the voltage meter (+) to the max1385evkit's drain1 pin. connect the voltage meter (-) to the max1385evkit's source1 pin. connect the max1385evkit's avdd pin to the dvdd pin (or, optionally, connect to an external 5v dc supply).
more detailed image (pdf, 387kb)
figure 1. max1385evkit hardware configuration.
procedureset the cmaxqusb's vdd select jumper to the 5v position.
connect the cmaxqusb to the pc's usb port. if this is the first time a cmaxqusb has been attached to the pc, the plug-and-play wizard will appear. guide the gui to the installed location of the device driver, in max1385_appnote_src.zip\src\usb_driver.
start the demo1385.exe program. a console will appear on the screen. enter the following series of commands at the console:
command action
c connects to the cmaxqusb module. verify that the software reports: board connected.
got board banner: maxim cmaxqusb v01.04.32 > searching for max1385... found max1385 at 0x4e note: when using max1385evkit with cmaxqusb, connect 5v dvdd supply to avdd.
t v p test menu/verify power-up values
t s o fct1 0300 test menu/servo mode/output register/finecalthru1 register, initial value 0x0300
t s i ff test menu/servo mode/input register/fifo register
t s a 2 test menu/servo mode/adc command/trigger channel 2 (current cs1)
t s t 0020 test menu/servo mode/target value 0x0020
t s c 1 test menu/servo mode/convergence step positive 1
t s h 1 test menu/servo mode/hysteresis one step
t s m 60000 test menu/servo mode/maximum loop duration set to 60 seconds
t s r test menu/servo mode/run
t w fct1 0300 test menu/write register/finecalthru1 register, value 0x0300
monitor the regulation by watching the dmm.
the voltage on pgaout1 regulates between 20.8mv and 21.7mv, which is a variation of 0.45mv (2%) around an average of 21.25mv.
source code walk-throughthe source code was developed with the free dev-cpp ide, which uses the gnu gcc-3.4.2 c++ compiler.
listing 1 shows a simplified version of the c++ code performed inside the regulation loop. output statements and error handling have been removed for clarity.
listing 1. simplified c++ code.
menu systemthe complete source code implements the console menu system seen in listing 2, which connects to the cmaxqusb module.
listing 2. console menu system. ============================================================ cmodcomm test program main menu when not connected a) adjust timing parameters l) cmodlog... functions c) connect d) debug messages x) exit --------------------------------------------- c board connected. got board banner: maxim cmaxqusb v01.04.32 > searching for max1385... found max1385 at 0x4e note: when using max1385evkit with cmaxqusb, connect 5v dvdd supply to avdd. ============================================================ cmodcomm test program main menu after successful connect t) test the device 8) cmodp8bus... functions a) adjust timing parameters l) cmodlog... functions p) cmodpin... functions s) cmodspi... functions m) cmodsmbus... functions $) cmodcommstringwrite list of hex codes r) cmodboardreset d) disconnect ============================================================ t test menu t ? hunt for active devices t r read register t w write register t s servo loop t vp verify power-on register values t vm reg mask verify register memory persistence, all combinations ... t vw reg mask verify register memory persistence, walking-one's test ... ============================================================ write register: t w ad write adccon t w ah write almhcfg t w as write almscfg t w fi1 write fine1 t w fi2 write fine2 t w fc1 write finecal1 t w fc2 write finecal2 t w fct1 write finecalthru1 t w fct2 write finecalthru2 t w ft1 write finethru1 t w ft2 write finethru2 t w hc write hcfg t w ht1 write thruhi1 t w ht2 write thruhi2 t w hw1 write hiwipe1 t w hw2 write hiwipe2 t w ih1 write ih1 t w ih2 write ih2 t w il1 write il1 t w il2 write il2 t w ld write ldac t w lt1 write thrulo1 t w lt2 write thrulo2 t w lw1 write lowipe1 t w lw2 write lowipe2 t w p write pgacal t w sc write sclr t w ss write sshut t w th1 write th1 t w th2 write th2 t w tl1 write tl1 t w tl2 write tl2 t w x /hexregaddr/ write any register by its hexadecimal address ============================================================ read register: t r ah read almhcfg t r as read almscfg t r ff read fifo t r fi1 read fine1 t r fi2 read fine2 t r fl read flag t r hc read hcfg t r hw1 read hiwipe1 t r hw2 read hiwipe2 t r ih1 read ih1 t r ih2 read ih2 t r il1 read il1 t r il2 read il2 t r lw1 read lowipe1 t r lw2 read lowipe2 t r th1 read th1 t r th2 read th2 t r tl1 read tl1 t r tl2 read tl2 t r x /hexregaddr/ read any register by its hexadecimal address ============================================================ t s test servo menu t s o fct1 0300 output register [wr_finecalthru1, initial value 0x0300] t s i ff input register [rd_fifo] t s a 2 adc input channel [ bit 2 = 0x0004 = adccon_current_cs1 ] t s t 0020 target value [0x0020] t s c 1 convergestep [1] t s h 1 hysteresis [1] t s m 60000 max_loop_duration_msec [60000] t s r servo loop run ============================================================ windows is a registered trademark of microsoft corp.

微电子封装技术探讨
运动耳机哪个牌子好性价比高,2022运动耳机推荐
itunes是什么意思_itunes怎么用(itunes使用步骤教程)
电子管、晶体管的发明与应用
新机大混战!老罗的匠心之作:锤子T3很值得期待,秒杀小米6!
Implementing a MAX1385-Based C
5G升级需要巨额支出,电信运营商该如何确保5G的投资回报
以C8051F020单片机为系统控制器件的实时检测和记录车辆散热系统动态参数电路设计
UCC28910 控制器简化 AC/DC 转换器设计
新型储能市场盈利分析及储能技术展望
区块链技术在智慧城市如何应用
俄发力无人机行业,潜心研究察打一体化属性的轻型无人机
南大光电首款国产ArF光刻胶通过认证 可用于45nm工艺光刻需求
教你自制电动小摩托
DSP与ARM存储器架构和指令集有哪些差异
Windows CE下基于TSC2101的音频系统设计
LG发布新机—X300 只是为了让大家体验安卓7?
医学摄影技术突破定位患者慢性疼痛的特定位置
小米空调性价比优势不强,难破空调市场格局
人民的名义火了!但里面手机关机了为什么还能定位呢?详细剖析sim以及手机定位的原理