












Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!













MPC555 PIT Programming
PIT Enable 0: enable decrement counter 1: disable decrement counter
PInterrupt Enable 0: disable interrupt 1: enable interrupt
PIT Freeze 0: no effect 1: disable decrement counter if internal signal FREEZE is asserted
PIT Status 0: no PIT int asserted 1: PIT int asserted
Interrupt level for PIT
PICSR: Periodic Interrupt Control & Select Register
PTE : PIT enable PIF : PIT freeze
PITC : PIT count value PS : PIT status
PIE : PIT interrupt enable PITR : current counter value (Read-Only)
PTE
Clock Disable
PIF
16-bit Modulus counter
PITC
PS
PIE
PIT Interrupt
; r4 base address of SIU regs lis r4, 0x2f
; set PISCR bits: PIRQ=08, PS=PS, PIE=1, PITF=0, PTE= ; so flag is cleared, interrupt is enabled, timer is ; enabled, and level is assigned (Level 0) li r0,0x sth r0,0xC240(r4)
;PITC = 33000 = 0x80e8 and store it in PITC (0x2fc244) li r5, 0x80e sth r5, 0xC244(r4)
;now enable PIT: PTE = 1 lhz r0, 0xC240(r4) ori r0, r0, 0x sth r0, 0xC240(r4)