On Tue, 6 Jun 2000, Tom Zerucha wrote:
> On Tue, Jun 06, 2000 at 12:29:43PM -0700, Craig Comstock wrote:
> > Is there a way to directly access the Dragonball EZ
> > PWM registers? I am trying to use sample code from
> > Motorola in Quartus Forth and either get nothing or
> > Fatal Exceptions.
>
> Yes, but you need to do it in C or assembly.
>
> Use the right address and data type (byte, UInt16, or UInt32).
>
Aren't the PWM registers, as well as the serial port registers, etc locked
in protected memory? I think it may be necessary to trigger an interupt
to do any work with these registers. I know that a program executes in
user mode, and a user can't have direct access to many of the hardware
registers. To do that, you have to run in supervisory mode, and the only
way I know to switch back and forth is by calling an interupt. I don't
know howyou would set up the interupt handler, however, as I believe that
the interupt jump tables are in protected memory. Anyone?
Noah
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/