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

正文內(nèi)容

簡易直流電子負載設計大學生電子設計競賽論文(編輯修改稿)

2025-07-24 21:59 本頁面
 

【文章內(nèi)容簡介】 WDT _endasm define RSFX define RS define RWFX define RW define EFX define E define ADDFX //S1define ADD define SHIFTFX //S2define SHIFT define MENFX //S3define MEN define UPFX //S4define UP define DOWNFX //S5define DOWN define SDDLFX //S6define SDDL /******************************************************/define FirstLineStart 0x80define SecondLineStart 0x90define ThirdLineStart 0x88define FourthLineStart 0x98define COM 0define DAT 1define TIMERCOUNT 1400/****************顯示設置*************************/ROM SD[]={設定}。ROM DY[]={電壓}。ROM DL[]={電流}。ROM TZ[]={占空比}。ROM TZL[]={調(diào)整率}。ROM HY[]={電子設計}。ROM GZ[]={過載}。ROM FS[]={%}。ROM MA[]={mA}。ROM V[] ={mV}。ROM YI[]={1}。ROM ER[]={2}。ROM SA[]={3}。ROM SI[]={4}。ROM WU[]={5}。ROM LI[]={6}。ROM QI[]={7}。ROM BA[]={8}。ROM JI[]={9}。ROM SH[]={0}。ROM KO[]={.}。 uchar count。unsigned int sd=10。unsigned int dl=0。unsigned int dy=0。unsigned int tz=0。//floatchar wq=4。uchar asd[4]。uchar adl[4]。uchar ady[5]。uchar atz[4]。/*****************************************函數(shù)定義********************************************/ void PIC18_HIGHT_ISR(void)。void PIC18_LOW_ISR(void)。void PWM_TJ(void)。/*******************************中斷********************************************************/pragma code hight_vector_section = 0x08void hight_vector(void){ _asm goto PIC18_HIGHT_ISR _endasm }pragma code low_vector_section = 0x18void low_vector(void){ _asm goto PIC18_LOW_ISR _endasm }pragma codepragma interrupt PIC18_HIGHT_ISRvoid PIC18_HIGHT_ISR(){ if(==1) { =0。 if(count60) { count=0。 } else count++。 TMR0H=(65536TIMERCOUNT)/256。 TMR0L=(65536TIMERCOUNT)%256。 }}pragma interrupt PIC18_LOW_ISRvoid PIC18_LOW_ISR(){ if( ==1) { =0。 if(t_data2) { sp=1。 t_data=0。 } else t_data++。 TMR1H = 0x00。 TMR1L = 0x06。 } }/**************************************延時函數(shù)*********************************************************//***********************************************************************************************/void Delayus(uchar x){ uchar i。 while(x){ for(i=5。i0。i) { 。 } }}void Delayms(uchar x){ uchar i。 while(x){ //delay 1ms for(i=10。i0。i){ char j。 j=count。 while(1){ //delay 100us if(countj) break。 } } }}void Delay10ms(uchar x){ while(x){ Delayms(10)。 }}void Delays(uchar x){ uchar i。 while(x){ Delay10ms(100)。 }}/*********************************************************************************************/void WrLCD(uchar datam,uchar content){ uchar discontent,i,j。 Delayus(200)。 discontent=content。 RS=1。 //前5個同步碼 E=0。 RW=1。 for(i=5。i0。i){ E=1。 E=0。 } //寫指令位 RW RW=0。 E=1。 E=0。 // RSData or Instruction code if(datam) RW=1。 //data else RW=0。 //mand E=1。 E=0。 RW=0。 E=1。 E=0。 for(j=2。j0。j){ for(i=4。i0。i){ discontent=discontent1。 RW=。 //Status 寄存器中的進位標志 E=1。 E=0。 } RW=0。 for(i=4。i0。i) { E=1。 E=0。 } }}void Clrram(void){ WrLCD (COM,0x30)。 WrLCD (COM,0x01)。 Delayms(5)。}void LCDInit(void){ WrLCD (COM,0x30)。 //30基本指令動作 // Delayms(2)。 WrLCD (COM,0x0c)。 // Delayms(2)。 WrLCD (COM,0x01)。 ///*清屏,地址指針指向00H*/ Delayms(4)。 // WrLCD (COM,0x02)。 // Delayms(2)。 WrLCD (COM,0x06)。 ///*光標的移動方向,光標右移,AC自動加一*/// WrLCD (COM,0x0e)。 ///*開顯示,開光標,光標位置不反白且閃爍*/// WrLCD (COM,0x0c)。 ///*開顯示,關光標*/// WrLCD (COM,0x0f)。 ///*開顯示,開光標,光標位置反白且閃爍*/// WrLCD (COM,0x10)。 //光標左移一位// WrLCD (COM,0x14)。 //光標右移一位 Delayms(2)。 Clrram()。}void ChnDisp( ROM *chn,uchar linepos,uchar dispos){ uchar i=0,startpos。 WrLCD (COM,0x30)。 switch(linepos) { case 1: startpos=FirstLineStart。 break。 case 2: startpos=SecondLineStart。 break。 case 3: startpos=ThirdLineStart。 break。 case 4: startpos=FourthLineStart。 break。 } WrLCD(COM,(startpos+dispos))。 while(chn[i]!=39。\039。) { WrLCD(DAT,chn[i])。 i++。 }}/**************************************************************
點擊復制文檔內(nèi)容
環(huán)評公示相關推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1