單片機(jī)定時(shí)/計(jì)數(shù)器工作于定時(shí)和計(jì)數(shù)方式時(shí)有何異同點(diǎn)
處于計(jì)數(shù)工作模式時(shí),加法計(jì)數(shù)器對(duì)芯片端子T0(P3.4)或T1(P3.5)上的輸入脈沖計(jì)數(shù);處于定時(shí)器工作模式時(shí),加法計(jì)數(shù)器對(duì)內(nèi)部機(jī)器周期脈沖計(jì)數(shù)。本質(zhì)都是一樣的,都是計(jì)數(shù).定時(shí)器,當(dāng)計(jì)數(shù)溢出后,會(huì)產(chǎn)生中斷.
評(píng)論