freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

畢業(yè)設(shè)計(jì)論文-基于單片機(jī)控制的直流穩(wěn)壓電源(完整版)

  

【正文】 )。 } void lcd_gotoxy(u08 x, u08 y) /* goto position (x,y) */ { if LCD_LINES==1 lcd_mand((1 LCD_DDRAM) + LCD_START_LINE1 + x)。 else if (y == 2) lcd_mand((1 LCD_DDRAM) + LCD_START_LINE3 + x)。 while ((c = pgm_read_byte(progme。 endif } /* lcd_gotoxy */ void lcd_putc(char c) /* print character at current cursor position */ { lcd_waitcmd(0)。 else lcd_mand((1 LCD_DDRAM) + LCD_START_LINE2 + x)。//???8 _delay_us(20)。 if (rs) lcd_data_mode()。0x10) sbi(LCD_DATA_PORT_D4,LCD_DATA_PIN_D4)。 else cbi(LCD_DATA_PORT_D7,LCD_DATA_PIN_D7)。 if (damp。//oringen ? //_delay_ms()。= ~_BV(bit)) endif ifndef sbi define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit)) endif /* ** constants/macros */ define lcd_e_high() sbi(LCD_E_PORT, LCD_E_PIN) define lcd_e_low() cbi(LCD_E_PORT, LCD_E_PIN) define lcd_cmd_mode() cbi(LCD_RS_PORT, LCD_RS_PIN) /* RS=0 mand mode */ define lcd_data_mode() sbi(LCD_RS_PORT, LCD_RS_PIN) /* RS=1 data mode */ 南京林業(yè)大學(xué)本科畢業(yè)論文 42 define lcd_data_port_out() { /* defines all data pins as output */ \ sbi(LCD_DATA_DDR_D7,LCD_DATA_PIN_D7)。//原值為 10 check_i2c_interface()。 //lcd_puts(out_buf)。 南京林業(yè)大學(xué)本科畢業(yè)論文 39 lcd_putc(39。)。 lcd_putc(39。 if (is_current_limit()){ // put a marker to show which value is currenlty limiting lcd_puts()。 南京林業(yè)大學(xué)本科畢業(yè)論文 37 int_to_ascii(set_val[0],out_buf,2,0)。]39。 lcd_puts(out_buf)。 while (1) { if (stort==2) //運(yùn)行狀態(tài) { // current measured_val[0]=adc_i_to_disp(getanalogresult(0))。 lcd_puts(njfu_0682210)。 U_DIVIDER=set_conf[1]。 set_conf[1]=DEF_U_DIVIDER*100。 lcd_init(LCD_DISP_ON)。 }else{ int_to_ascii(measured_val[1],i2c_buf,1,0)。amp。s39。i2c_buf[2])。i39。 if (check_i_button(amp。 } static unsigned char check_buttons(int istort){ if (istort==2) 南京林業(yè)大學(xué)本科畢業(yè)論文 30 { if (check_u_button(amp。 南京林業(yè)大學(xué)本科畢業(yè)論文 29 eeprom_write_word((uint16_t *)0x08,set_conf[0])。 } tmp=eeprom_read_word((uint16_t *)0x10)。 } else { if (stort==1) stort=0。 } adcunits=adcunitsadcdrop。 i++。 chbuf[j]=39。039。 j++。 ms。 static int set_val_adcUnits[2]。 南京林業(yè)大學(xué)本科畢業(yè)論文 20 多交談或請(qǐng)教容易更直接更正確的理解并掌握知識(shí)。這些在將來(lái)的工作和學(xué)習(xí)當(dāng)中都會(huì)有很大的幫助。 三個(gè)月時(shí) 間的畢業(yè)設(shè)計(jì)鍛煉,對(duì)單片機(jī)知識(shí)的掌握又進(jìn)了一層。 圖 Protues仿真 南京林業(yè)大學(xué)本科畢業(yè)論文 15 第六章 硬件調(diào)試 程序燒寫(xiě) 把 hex 文件寫(xiě)入 ATmega8 內(nèi),用普通的筆記本電源 (19V左右 )作為前級(jí)輸入,開(kāi)始顯示設(shè)定電壓、當(dāng)前電壓、設(shè)定電流、當(dāng)前電流。 圖 電路原理圖 南京林業(yè)大學(xué)本科畢業(yè)論文 13 第四章 軟件系統(tǒng)的設(shè)計(jì) 主程序邏輯流程 1) 從中斷任務(wù)中拷貝最后的 ADC 結(jié)果 2) 將想要的相應(yīng) ADC 值拷貝到比如一個(gè)中斷任務(wù)能使用的變量 3) 清 LCD 顯示 4) 將電壓值寫(xiě)入顯示部分 5) 檢查中斷任務(wù)是否可以調(diào)節(jié)電壓或電流(電壓限定起控) 6) 把安培 值寫(xiě)入顯示 7) 檢查中斷任務(wù)是否可以調(diào)節(jié)電壓或電流(電流限定起控) 8) 檢查是否有按鈕被按下,如果沒(méi)有則等待 100 毫秒再檢查。非常適合本設(shè)計(jì)使用。我們采用如上圖所示的一個(gè) PNP 和一個(gè) NPN 三極管組合。也就是說(shuō)我們需要 10 個(gè)沒(méi)被其它功能占用的輸出引腳。一般來(lái)講輸出電壓 = Z *(Vcc/(Zmax+1), Z 是數(shù)字編號(hào)( digital 圖 南京林業(yè)大學(xué)本科畢業(yè)論文 8 number)。使用脈寬調(diào)制和模 擬低通濾波器是可以得到一個(gè) D/A 轉(zhuǎn)換器的,但是這樣速度太慢了,無(wú)法通過(guò)軟件立即實(shí)現(xiàn)短路保護(hù)。而且更 妙的是電壓表和電流表成了免費(fèi)的副產(chǎn)品。三極管需要控制更高的電流(比較二極管和電阻單獨(dú)提供的而言)。 南京林業(yè)大學(xué)本科畢業(yè)論文 6 AREF A/D 的模擬基準(zhǔn)輸入引腳。 端口 D 的其他功能見(jiàn)后。持續(xù)時(shí)間超過(guò)最小門(mén)限時(shí)間的低電平將引起系統(tǒng)復(fù)位。 端口 B 的其他功能見(jiàn) P 55“ 端口 B 的第二功能 ” 及 P 22“ 系統(tǒng)時(shí)鐘及時(shí)鐘選項(xiàng) ” 。 GND 地。設(shè)計(jì)的思路為:在達(dá)到性能指標(biāo)的前提之下,體現(xiàn)出人性化的思想,同時(shí)選擇低價(jià)位的通用元器件來(lái)設(shè)計(jì)制作電路。 關(guān)鍵詞: Atmega8 AVR LCD 電源 南京林業(yè)大學(xué)本科畢業(yè)論文 Abstract The system uses Atmega 8 microcontroller for the control of the core, R2R ladder to do D / A conversion, coupled with the power transistor to adjust the position of output with realtime digital controlled power supply. The A / D converter in ATmega8 has been fast enough, but apparently it does not have D / A pulse width modulation and analog lowpass filter can be a D / A converter, but this is too slow, and can not be an immediate shortcircuit protection through to implement a highspeed D / A converter then?There are many ways to achieve D / A converters, but we need a highspeed, lowcost, easy connection with the D / A is the famous R2R ladder.It is only by the resistance (two specifications, one value is twice the other) and the switch. This design has a high value product can be widely used in teaching, scientific research, with input voltage range, output stable Key words: Atmega8 AVR LCD Power Supply 南京林業(yè)大學(xué)本科畢業(yè)論文 目 錄 第一章 前言 ................................................................................................................ 1 第二章 總體方案 ........................................................................................................ 2 系統(tǒng)設(shè)計(jì)方案論證及工作原理 ....................................................................... 2 系統(tǒng)總體框圖 ................................................................................................... 2 第三章 硬件系統(tǒng)的設(shè)計(jì) .............................................................................................. 3 主控芯片 Atmega8 介紹 .................................................................................. 3 綜述 ...................................................................................................... 3 ATmega8 的引腳圖: ......................................................................... 3 ATmega8 引腳說(shuō)明 ............................................................................ 4 電源電路原理 ................................................................................................ 6 基本設(shè)計(jì)方案 ...................................................................................... 6 R2R 階梯 D/A .................................................................................. 7 更詳細(xì)的穩(wěn)壓電路設(shè)計(jì) ...................................................................... 8 最終的電壓調(diào)整電路 ........................................................
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1