I'm trying to play sound using the dragonball's PWM and for some reason, the
PWMCounter never changes. This is the code I use to play a frequency.
unsigned short *PWMReg = (unsigned short *)0xFFFFF500;
unsigned short *Period = (unsigned short *)0xFFFFF502;
unsigned short *Width = (unsigned short *)0xFFFFF504;
unsigned short *PWMTimer= (unsigned short *)0xFFFFF506;
*Period = 100;
*Width = 50;
*PWMReg = 0x0413;
while ((*PWMReg & 0x08000) == 0); // This
section never quits because the PWMtimer never increments
And no, the PalmOs commands to play sound aren't sufficient for my
needs.
Chris
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/