| ??? 01/04/04 07:25 Read: times |
#61871 - RE: Sbuf value Responding to: ???'s previous message |
org 0023h
jmp serial
...
...
serial: mov 20h,sbuf
jnb 20h.0,there
retiBut I have CLR RI immediately after serial interrupt. Very odd indeed! I don't see CLR RI anywhere in your original post. Well, we'll pretend it's really there. The issue still remains, which is that SBUF will not contain any new data from which to "refresh" until RI becomes set again. It's all very apparent when you read how the serial ports work and look at their block diagrams. I guess there's nothing to prevent you from sitting there looping in your ISR polling SBUF waiting for some data change and ignoring RI -- I've just certainly never seen anybody do anything like it before. But once you get your "refreshed" data after polling for it, RI will have become set again and you must clear it again to allow any further serial reception. |
| Topic | Author | Date |
| Sbuf value "refresh"? | 01/01/70 00:00 | |
| RE: Sbuf value "refresh"? | 01/01/70 00:00 | |
| RE: Sbuf value \\ | 01/01/70 00:00 | |
| RE: Sbuf value | 01/01/70 00:00 | |
| RE: Sbuf value | 01/01/70 00:00 | |
| RE: Sbuf value \\\\\\\\ | 01/01/70 00:00 | |
| ***Details*** | 01/01/70 00:00 | |
| RE: ***Details*** | 01/01/70 00:00 | |
| RE: Sbuf value "refresh"? | 01/01/70 00:00 | |
| RE: Sbuf value \ | 01/01/70 00:00 | |
| RE: Sbuf value \ | 01/01/70 00:00 | |
Silly problem solved... | 01/01/70 00:00 |



