
Rev. 1.40
64
March 29, 2019
Rev. 1.40
65
March 29, 2019
HT45F23A/HT45F24A
TinyPower
TM
Flash MCU with OPA & Comparators
HT45F23A/HT45F24A
TinyPower
TM
Flash MCU with OPA & Comparators
8-bit Timer/Event Counter 0 Structure
16-bit Timer/Event Counter 1 Structure
Note:1. The PFD clock source, PFD0 or PFD1, which is from Timer0 or Timer1, is selected by
PFDSEL bit in MISC register.
2. The output is controlled by PA5 data.
3. CMP1X is comparator 1 output.
4. CMP2X is comparator 2 output.
For the 16-bit Timer/Event Counter which has both low byte and high byte timer registers, accessing
these registers is carried out in a specific way. It must be noted when using instructions to preload
data into the low byte timer register, namely TMR1L, the data will only be placed in a low byte
buffer and not directly into the low byte timer register. The actual transfer of the data into the low
byte timer register is only carried out when a write to its associated high byte timer register, namely
TMR1H, is executed. On the other hand, using instructions to preload data into the high byte timer
register will result in the data being directly written to the high byte timer register. At the same time
the data in the low byte buffer will be transferred into its associated low byte timer register. For this
reason, the low byte timer register should be written first when preloading data into the 16-bit timer
registers. It must also be noted that to read the contents of the low byte timer register, a read to the
high byte timer register must be executed first to latch the contents of the low byte timer register
into its associated low byte buffer. After this has been done, the low byte timer register can be read
in the normal way. Note that reading the low byte timer register will result in reading the previously
latched contents of the low byte buffer and not the actual contents of the low byte timer register.