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