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

正文內(nèi)容

基于arm的電阻電容電感測(cè)試儀論文-資料下載頁

2024-11-07 03:21本頁面

【導(dǎo)讀】廣泛起來,在應(yīng)用中我們常常要測(cè)定電阻,電容,電感的大小。因此,設(shè)計(jì)可靠,安全,便捷的電阻,電容,電感測(cè)試儀具有極大的現(xiàn)實(shí)必要性。儀,將電阻,電容,電感,使用對(duì)應(yīng)的振蕩電路轉(zhuǎn)化為頻率實(shí)現(xiàn)各個(gè)參數(shù)的測(cè)量。出被測(cè)頻率,再通過該頻率計(jì)算出被測(cè)參數(shù)。能和指標(biāo)得到了設(shè)計(jì)要求。比例運(yùn)算器法測(cè)量誤差稍大,積分運(yùn)算器法適用于高電阻的測(cè)量。傳統(tǒng)的測(cè)量電容方法有諧振法和電橋法兩種。前者電路簡(jiǎn)單,速度快,但精。度低;后者測(cè)量精度高,但速度慢。的數(shù)字化測(cè)量常采用時(shí)間常數(shù)發(fā)和同步分離法。參考555振蕩器基礎(chǔ)上擬定的一套自己的設(shè)計(jì)方案。

  

【正文】 。 38 while((IO0PIN amp。 KEY3)==0)。 EXTINT = 0x07。 VICVectAddr = 0x00。 } /********************************************************************************************************* ** Function name: IRQ_init ** Descriptions: 向量中斷初始化 ** input parameters: 無 ** output parameters: 無 ** Returned value: 無 *********************************************************************************************************/ void IRQ_Init(void) { VICIntSelect = (0x00)。 39 VICVectCntl0 = 0x20 | 4 。 VICVectCntl1 = 0x20 | 5。 VICVectCntl2 = 0x20 | 14。 VICVectCntl3 = 0x20 | 15。 VICVectCntl4 = 0x20 | 16。 VICVectAddr0 = (uint32)IRQ_Timer0。 VICVectAddr1 = (uint32)IRQ_Timer1。 VICVectAddr2 = (uint32)IRQ_EXIT0。 VICVectAddr3 = (uint32)IRQ_EXIT1。 VICVectAddr4 = (uint32)IRQ_EXIT2。 40 VICIntEnable = (14) | (15) | (114) | (115) | (116)。 } /********************************************************************************************************* ** Function name: MSPI_Init ** Descriptions: SPI 初始化 ** input parameters: 無 ** output parameters: 無 ** Returned value: 無 *********************************************************************************************************/ void MSPI_Init(void) { PINSEL0 = (PINSEL0 amp。 0XFFFF00FF)|0X00001500。 //SPI 初始化 SPI_SPCCR = 0x08。 // 8 分頻 41 SPI_SPCR = (0 3) | //因?yàn)槭前存I 所以數(shù)據(jù)輸入要在 SSEL 無效時(shí)結(jié)束 (1 4) | (1 5) | (0 6) | (1 7)。 //數(shù)據(jù)高位輸入 } /********************************************************************************************************* ** Function name: MSPI_SendData ** Descriptions: 數(shù)碼管數(shù)據(jù)傳輸 ** input parameters: 無 ** output parameters: 無 ** Returned value: 無 *********************************************************************************************************/ uint8 MSPI_SendData(uint8 data) { IO0CLR = PIN_STR。 42 SPI_SPDR = data。 while( 0 == (SPI_SPSR amp。 0x80))。 // 等待 SPIF 置位,即等待數(shù)據(jù)發(fā)送完畢 IO0SET = PIN_STR。 return(SPI_SPDR)。 } /********************************************************************************************************* ** Function name: NumAscii ** Descriptions: 數(shù)據(jù)轉(zhuǎn)化 ** input parameters: 無 ** output parameters: 無 ** Returned value: 無 *********************************************************************************************************/ void NumAscii(uint32 data) { int n=0。 for(n=0。 n=7。 n++) { 43 DATA[n] = data%10。 data/=10。 } } /********************************************************************************************************* ** Function name: main ** Descriptions: 主函數(shù) ** input parameters: 無 ** output parameters: 無 ** Returned value: 無 *********************************************************************************************************/ int main (void) { PINSEL1 amp。= ~(0xFF2)。 //LED1, LED2, LED3,LED4 GPIO 44 PINSEL0 = (PINSEL0 amp。 0XFF3FFFFF)|(0X0222)。 // //PINSEL0 |= (0x0226)。 // IO0DIR |= PIN_STR。 IO0DIR |= LED1|LED2|LED3。 //設(shè)置 LED 為電平輸出 IO0SET = 0x0F17。 EXIT_Init()。 Timer0_Init()。 Timer1_Init()。 IRQ_Init()。 MSPI_Init()。 IRQEnable()。 while(1) { if(T0Flag) { T0Flag=0。 x=DATA[i]。 MSPI_SendData(digitable [x])。 // 發(fā) 送顯 45 示數(shù)據(jù) MSPI_SendData(selectable [i])。 // 發(fā)送顯示位碼 if(N==400) { if(C==1) { Cx = 1/(T1Flag*(508+62)*)。 Cx = Cx*1000000000。 CF = (int)Cx。 } if(R==1) { Rx = (*()*T1Flag)。 Rx = Rx5040。 Rx = Rx/2。 CF = (int)Rx。 } if(L==1) 46 { C1 = 。 C2 = 。 C3 = 。 Lx = 1/((1/C1)+(1/C2)+(1/C3))。 Lx = 1/(4***T1Flag*T1Flag*Lx)。 Lx = Lx*。 CF = (int)Lx。 } NumAscii(CF)。 T1Flag=0。 N=0。 } i=(i+1)%8。 } } return 0。 } /****************************************************** 47 *************************************************** ** End Of File ********************************************************************************************************/
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1