>Page 7-18 of the MC68328 manual shows the Port M bits (GPIO is bit 7).  Page
>7-12 of the MC68EZ328 manual shows the Port F bits (CSA1 is bit 7).

[CODE SNIP]

Thanks very much Chris. I was in the middle of preparing a post saying that 
I'd figured most of it out when your mail came in and happily confirmed 
what I'd come up with. Your code is basically what I had scrambled 
together. Really appreciate it.

One question about the code for the regular Dragonball: you reference Port 
M bit 7 to get the status of the UART GPIO. This is fine, and I see it in 
the docs. Now also in the docs (pg 11-11 and 11-12) there is the "UART Baud 
Control Register" at 0xFFFFF902 in which bit 13 controls direction of GPIO 
and bit 14 gives the state of the pin (or lets you set the pin if made an 
output). Is there any difference between reading from the Port M data 
register vs. the UART register? I assume not, but...just curious.

Now I have to actually test this out on one of my Palms. If you listen 
carefully you'll soon be able to hear the sound of all my fingers and toes 
crossing for good luck.

Any other suggestions or warnings welcome, and thanks again,

Kris

P.S. Chris: just saw your last post regarding KeyCurrentState(). I will 
look into this. Thx.


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to