![SONIX SN8P26L00 Series Скачать руководство пользователя страница 92](http://html1.mh-extra.com/html/sonix/sn8p26l00-series/sn8p26l00-series_user-manual_1321519092.webp)
SN8P26L00 Series
8-Bit Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 92
Preliminary Version 0.2
9
IR OUTPUT
9.1
OVERVIEW
IR signal is generated by TC0 timer. The IR output pin is IROUT pin. When IROUT bit of TC0M is logic “1”, IROUT pin
outputs IR signal. If IROUT = 0 or system is in power down mode, IRPUT pin is tied to low status. The TC0 is an 8-bit
binary up counting timer for IR signal generator. The IR signal is duty/cycle changeable type controlled by TC0R and
TC0D. TC0R decides IR cycle and TC0D decides IR duty. TC0 clock source is only from Fhosc (external high clock
source), eg. 4MHz crystal. If external oscillator is 4MHz, the TC0 clock rate is 4MHz. TC0 only generate IR output and
no interrupt function. When enable IR output function (IROUT=1), IR output status is high level. TC0C initial value is
TC0R and starts to count. When TC0C=TC0D, IR output status change to low level and finishes high duty operation.
When TC0C overflow occurs (TC0C changes from 0xFF to 0x00), IR output low duty operation stops. System loads
TC0R into TC0C automatically and next cycle starts.
Fhosc
IROUT
CPUM0
TC0C
8-Bit Binary Up
Counting Counter
TC0R Reload
Data Buffer
Up Counting
Reload Value
Compare
R
S
Output Low
IROUT pin
IR Signal
IROUT
Load
TC0D
Data Buffer
TC0C Overflow