I've been experimenting with the PMS150c recently, and I have hit a snag: What's the correct way to initialize Timer16 to fire an interrupt in assembly?
Here's my attempt (full code attached):
;XXX: timer16 setup -- this is broken
mov a, #(( 1<<0 | 1<<3 | 4<<5 )) ; ovf@bit9, clk/4, ihrc
mov t16m, a
mov a, #2 ; enable timer16 int, disable all others
mov inten, a
; ...
engint
I want timer16 to cause an interrupt every 512 cycles. The IVR then changes the PWM duty cycle of timer2 (timer2 works).
Looking at the generated code (with dispdk, also attached), it seems like it should work :/
Thanks in advance for any help!