Motherboard Forums


Reply
 
 





















Steve Wenner
Guest
Posts: n/a

 
      06-29-2003, 10:42 PM


I am having a problem using the UART function on the Z8encore development
board. Let me first preface by saying I am a new C coder. The problem I am
seeing are these: I cannot seem to clear the IRQ0 status bit (irq0 &= 0xF7)
successfully. This clearing is taking place within the IRQ handler.
Secondly I cannot see any of my UxTXD registers update with the correct
data, however I have successfully seen this data on the scope and I do see
some of the data showing up on hyperterminal. Does anyone have any
comments?

Thanks

--
Steve Wenner


 
Reply With Quote
 
Gary Kato
Guest
Posts: n/a

 
      06-29-2003, 11:56 PM
If you mean you don't see the UxTXD register update in the SFR Watch Window,
there was a bug in that where some registers weren't being updated properly
(right value but showing in the wrong SFR). Zilog said it was fixed in 4.2.1,
but I have;t verified it myself.

As for the IRQ0 bit, are you trying to clear the bit before you take care of
the reason for the interrupt? It kind of sounds like that it what is happening.
The UART produces a continuous interrupt. If you don't take care of the reason,
the UART will reassert the IRQ0 flag about a cycle after you cleared it. This
is documented in the Interrupt Controller section of the eZ8 Product
Specification.


 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT. The time now is 03:25 PM.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43