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

正文內(nèi)容

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

2025-01-18 22:30上一頁面

下一頁面
  

【正文】 )。 } 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è)大學本科畢業(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è)大學本科畢業(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è)大學本科畢業(yè)論文 37 int_to_ascii(set_val[0],out_buf,2,0)。]39。 lcd_puts(out_buf)。 while (1) { if (stort==2) //運行狀態(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è)大學本科畢業(yè)論文 30 { if (check_u_button(amp。 南京林業(yè)大學本科畢業(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è)大學本科畢業(yè)論文 20 多交談或請教容易更直接更正確的理解并掌握知識。這些在將來的工作和學習當中都會有很大的幫助。 三個月時 間的畢業(yè)設計鍛煉,對單片機知識的掌握又進了一層。 圖 Protues仿真 南京林業(yè)大學本科畢業(yè)論文 15 第六章 硬件調(diào)試 程序燒寫 把 hex 文件寫入 ATmega8 內(nèi),用普通的筆記本電源 (19V左右 )作為前級輸入,開始顯示設定電壓、當前電壓、設定電流、當前電流。 圖 電路原理圖 南京林業(yè)大學本科畢業(yè)論文 13 第四章 軟件系統(tǒng)的設計 主程序邏輯流程 1) 從中斷任務中拷貝最后的 ADC 結果 2) 將想要的相應 ADC 值拷貝到比如一個中斷任務能使用的變量 3) 清 LCD 顯示 4) 將電壓值寫入顯示部分 5) 檢查中斷任務是否可以調(diào)節(jié)電壓或電流(電壓限定起控) 6) 把安培 值寫入顯示 7) 檢查中斷任務是否可以調(diào)節(jié)電壓或電流(電流限定起控) 8) 檢查是否有按鈕被按下,如果沒有則等待 100 毫秒再檢查。非常適合本設計使用。我們采用如上圖所示的一個 PNP 和一個 NPN 三極管組合。也就是說我們需要 10 個沒被其它功能占用的輸出引腳。一般來講輸出電壓 = Z *(Vcc/(Zmax+1), Z 是數(shù)字編號( digital 圖 南京林業(yè)大學本科畢業(yè)論文 8 number)。使用脈寬調(diào)制和模 擬低通濾波器是可以得到一個 D/A 轉換器的,但是這樣速度太慢了,無法通過軟件立即實現(xiàn)短路保護。而且更 妙的是電壓表和電流表成了免費的副產(chǎn)品。三極管需要控制更高的電流(比較二極管和電阻單獨提供的而言)。 南京林業(yè)大學本科畢業(yè)論文 6 AREF A/D 的模擬基準輸入引腳。 端口 D 的其他功能見后。持續(xù)時間超過最小門限時間的低電平將引起系統(tǒng)復位。 端口 B 的其他功能見 P 55“ 端口 B 的第二功能 ” 及 P 22“ 系統(tǒng)時鐘及時鐘選項 ” 。 GND 地。設計的思路為:在達到性能指標的前提之下,體現(xiàn)出人性化的思想,同時選擇低價位的通用元器件來設計制作電路。 關鍵詞: Atmega8 AVR LCD 電源 南京林業(yè)大學本科畢業(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è)大學本科畢業(yè)論文 目 錄 第一章 前言 ................................................................................................................ 1 第二章 總體方案 ........................................................................................................ 2 系統(tǒng)設計方案論證及工作原理 ....................................................................... 2 系統(tǒng)總體框圖 ................................................................................................... 2 第三章 硬件系統(tǒng)的設計 .............................................................................................. 3 主控芯片 Atmega8 介紹 .................................................................................. 3 綜述 ...................................................................................................... 3 ATmega8 的引腳圖: ......................................................................... 3 ATmega8 引腳說明 ............................................................................ 4 電源電路原理 ................................................................................................ 6 基本設計方案 ...................................................................................... 6 R2R 階梯 D/A .................................................................................. 7 更詳細的穩(wěn)壓電路設計 ...................................................................... 8 最終的電壓調(diào)整電路 ........................................................
點擊復制文檔內(nèi)容
公司管理相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1