Browsing this Thread:
1 Anonymous Users
|
Re: 請問我可以在程式執行中開關rs232的interrupt嗎?
|
|
版主
Joined
: 2004/4/30 10:53 最後登入時間
: 2021/11/30 18:11
From CAE, Microchip
Group:
站務管理者 註冊會員
Level : 75 HP : 744 / 1861 MP : 5367 / 109030 EXP : 45
|
CCS 我沒用過也沒安裝過,不過UART的接收要能產生中斷有三個位元需被設為 1 , GIE, PEIE at INCON Register & RCIE at PIR1 Register.
請檢查是否哪個位元被清掉了。
發表於: 2005/9/15 17:32
|
|
|
請問我可以在程式執行中開關rs232的interrupt嗎?
|
|
新會員
Joined
: 2005/3/8 12:46 最後登入時間
: 2005/12/6 10:06
Group:
註冊會員
Level : 1 HP : 0 / 11 MP : 2 / 660 EXP : 47
|
我是用16F877A的chip,用CCS的C寫的 要讓rs232的interrupt enable 我是用enable_interrupts(int_rda);// enable USART interrupt enable_interrupts(global);// enable ALL interrupt
在程式中我可以用disable_interrupts(int_rda)讓它disable, 但我再次用enable_interrupts(int_rda)時卻無法再讓它enable,請問這是什麼原因呢?
另外我想問一下enable_interrupts(global);// enable ALL interrupt 這個指令有什麼作用呢? 謝謝
發表於: 2005/9/13 11:00
|
|
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.