Browsing this Thread:
1 Anonymous Users
|
INT0=0時PWM未能停止!
|
|
新會員
Joined
: 2004/6/13 18:06 最後登入時間
: 2011/2/19 15:49
Group:
註冊會員
Level : 2 HP : 0 / 43 MP : 5 / 2542 EXP : 74
|
CCP1CON = 0b00001100; // Single PWM,P1A= Active hi ECCPAS = 0b01000000; // INT0 pin low causes shutdown,P1A=0, PWM1CON =0x0; // b7=0 → clear ECCPASE,b7=1 → autorestart TRISB = 0b11110001; // Set RB7,RB6,RB3,RB2,RB1 outputs RBPU = 0; // RB=0,Are pull up resister
INTCON = 0;
// PEIE = 1; // *** GIE = 1;
// 而"***" PEIE=1時胡亂中斷
發表於: 2005/5/17 14:25
|
|
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.