[求助]gz60 time base module 中断不工作,我的寄存器设置有问题吗?
 
- UID
- 105671
- 性别
- 男
|
我想请问下,这里interrupt 16 void TBM_ISR (void){
TBCR_TACK=1; /* TimeBase Interrupt Acknowledge */
if( !(--cCounter) ){ /* If Counter is ZERO then */
PTF = ~PTF; /* Toggle LED */
cCounter = COUNT; /* Reinitialize the Counter */
}
}/* END TBM_ISR() */
为什么是--cCounter取非而不是cCounter逻辑非? |
|
|
|
|
|