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

正文內(nèi)容

電子裝置與系統(tǒng)設(shè)計課程設(shè)計報告-資料下載頁

2025-08-03 06:22本頁面
  

【正文】 0。 count = 0。 while(1) { /* if(flag == 1 amp。amp。 pulse == 1) { fre+=2。 flag = 0。 } else if(pulse == 0 amp。amp。 flag == 0) { flag = 1。 } */ if(result != 1) display(second)。 else { while(1) { tempchange()。 temp = get_temp()。 //采集溫度 count++。 if(count == 201) count = 0。 if(count = 100) { display(fre)。 } else if(count = 200) { display1(temp)。 } } } }}void display(int time){ PORTC = table[time % 10]。 PORTD = bit_set[3]。 delay_ms(10)。 PORTC = table[(time / 10) % 10]。 PORTD = bit_set[2]。 delay_ms(10)。 PORTC = table[time / 100]。 PORTD = bit_set[1]。 delay_ms(10)。}void display1(int time){ PORTC = table[time % 10]。 PORTD = bit_set[3]。 delay_ms(10)。 PORTC = table1[(time / 10 )% 10]。 PORTD = bit_set[2]。 delay_ms(10)。 PORTC = table[(time)/ 100]。 PORTD = bit_set[1]。 delay_ms(10)。}void time1_rtc_init(void){ INTCON = 0x20。 //disable global and enable TMR0 interrupt INTCON2 = 0x84。 //TMR0 high priority = 1。 //enable priority levels TMR0H = 100。 //clear timer TMR0L = 0。 //clear timer T0CON = 0x85。 //set up timer0 prescaler 1:8 = 1。 //enable interrupts = 0。 = 1。 = 0。 = 0。}pragma code InterruptVectorHigh = 0x08voidInterruptVectorHigh (void){ _asm goto InterruptHandlerHigh //jump to interrupt routine _endasm}//// High priority interrupt routinepragma codepragma interrupt InterruptHandlerHighvoid InterruptHandlerHigh (){ if() { //check for TMR0 overflow = 0。 //clear interrupt flag second++。 //indicate timeout if(second == 30) { //second = 0。 result = 1。 } // pulse = ~pulse。 } if( == 1) { = 0。 delay_ms(100)。 fre++。 }}void delay_ms(unsigned int time){ int n。 for(。time0。time) { for(n = 0。 n 50。 n++)。 }}20 /
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1