AnsweredAssumed Answered

PIT in MC9S12XEP100

Question asked by Harshitha C B on Jul 11, 2018
Latest reply on Jul 13, 2018 by Diana Batrlova



I am implementing a timer module for scheduler.

I found below code in the MC9S12XEP100 user manual.


CLR PITCFLMT                     ; disable PIT
MOVB #$01,PITCE                ; enable timer channel 0
CLR PITMUX                          ; ch0 connected to micro timer 0
MOVB #$63,PITMTLD0          ; micro time base 0 equals 100 clock cycles
MOVW #$0004,PITLD0          ; time base 0 eq. 5 micro time bases 0 =5*100 = 500
MOVB #$01,PITINTE              ; enable interupt channel 0
MOVB #$80,PITCFLMT          ; enable PIT


My doubt is what is the function of "PITMTLD0" and "PITLD0" these registers?

Do they act as counters?

Can u explain me in-detail..

Thanks in advance..



Harshitha C B