Re: 請問timer1的設定問題?
|
||||
---|---|---|---|---|
資深會員
|
12.4 Timer1 Operation in Synchronized Counter Mode
Counter mode is selected by setting the TMR1CS bit. In this mode the timer increments on every rising edge of clock input on the T1OSI pin when the oscillator enable bit (T1OSCEN) is set, or the T1OSO/T1CKI pin when the T1OSCEN bit is cleared. If the #T1SYNC bit is cleared, then the external clock input is synchronized with internal phase clocks. The synchronization is done after the prescaler stage. The prescaler is an asynchronous ripple-counter. In this configuration, during SLEEP mode, Timer1 will not increment even if the external clock is present, since the synchronization circuit is shut off. The prescaler however will continue to increment.
發表於: 2006/7/12 22:07
|
|||
|
請問timer1的設定問題?
|
||||
---|---|---|---|---|
新會員
|
T1CON: TIMER1 CONTROL REGISTER
TMR1CS = 1; 設定為外部震盪器輸入 T1SYNC: Timer1 External Clock Input Synchronization Select bit 1 = Do not synchronize external clock input 0 = Synchronize external clock input 請問,,與外部震盪器,,同步與非同步,有何不同? 謝謝指教 attira 草
發表於: 2006/7/12 18:04
|
|||
|