• slider image 442
  • slider image 483
  • slider image 484
  • slider image 485
  • slider image 486
  • slider image 487
:::


Browsing this Thread:   1 Anonymous Users






Re: 請教版主及各位高手!
#4
初級會員
初級會員


查看用戶資訊
請教sun0_liang所謂得“民國法”是什么啊,這跟我得問題又有什么聯繫啊,請告之!

發表於: 2004/12/16 15:02
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請教版主及各位高手!
#3
新會員
新會員


查看用戶資訊
大陆的,因为回答你,还要遵守民国法,好吃亏啊...:)

發表於: 2004/12/16 11:50
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請教版主及各位高手!
#2
新會員
新會員


查看用戶資訊
while (RA0==1);/當PORTA.0=1,則執行/
问题:
while (RA0==1);/當PORTA.0=1,則不往下執行/

發表於: 2004/12/16 11:48
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


請教版主及各位高手!
#1
初級會員
初級會員


查看用戶資訊
我現在是第一次使用HI—TECH的C來寫程式,剛剛寫暸一個程序想來測試一下,可是燒寫到芯片裏麵髮現沒有任何反映,下麵是我的程式,請問問題齣在哪裏!我的想法是讓Timer0每隔一段時間髮生一次中斷,使PORTB的狀態也髮生改變,PORTB與LED相連。
void In_sys (void);
void ISR (void);
void main (void)
{ In_sys ();
while (RA0==1);/當PORTA.0=1,則執行/
{ GIEH=1;
GIEL=1;
TMR0ON=1; }
while (1);
{
};
}
void In_sys (void)
{ ADCON0=0X00;
ADCON1=0X07;
TRISA=0XFF;
TRISB=0X00;
TRISC=0X00;
PORTA=0X00;
PORTB=0X00;
PORTC=0X00;
IPEN=1;
TMR0IP=0;
TMR0IE=1;
T0CON=0X07;
TMR0H=0XF0;
TMR0L=0XF0;
}

void ISR (void)
{ while ((TMR0IF==1)&&(GIE==1));
{ TMR0H=0XF0;
TMR0L=0XBD;
TMR0IF=0;
PORTB=~PORTB; }
}

發表於: 2004/12/16 11:22
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部







You can view topic.
不可以 發起新主題
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.

[進階搜尋]


:::

Microchip連結

https://www.facebook.com/microchiptechnologytaiwan/
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=13
https://mu.microchip.com/page/tmu
http://elearning.microchip.com.tw/modules/tad_link/index.php?cate_sn=1
https://page.microchip.com/APAC-PrefCenters-TW.html
http://www.microchip.com/
http://www.microchip.com/treelink
http://www.microchipdirect.com/
http://www.microchip.com.cn/newcommunity/index.php?m=Video&a=index&id=103
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=2
http://www.microchip.com.tw/Data_CD/eLearning/index.html
http://www.microchip.com.tw/RTC/RTC_DVD/
https://www.microchip.com/development-tools/
https://www.youtube.com/user/MicrochipTechnology
[ more... ]

教育訓練中心

!開發工具購買
辦法說明 [業界客戶] [教育單位]
----------------------------------
!校園樣品申請
辦法說明 [教師資格] [學生資格]
----------------------------------