Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.asm.x86    |    Ahh, the lost art of x86 assembly    |    4,675 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 4,580 of 4,675    |
|    Paul Edwards to Paul Edwards    |
|    Re: serial port    |
|    15 Apr 23 02:29:14    |
      From: mutazilah@nospicedham.gmail.com              On Saturday, April 15, 2023 at 10:20:57 AM UTC+8, Paul Edwards wrote:              > uartEnableTBE(&uart);              I have found that I need this in order to get an       interrupt, as expected.              > uartTxCh(&uart, ch);               But I was surprised to find that I didn't need this.              Basically it appears that TBE wakes up once to let       me know that it is currently empty, but once I start       sending it data, and then halting, it doesn't feel the       need to let me know it is empty again.              But my whole design is centered around being       informed of that.              Maybe what is happening is that interrupts are disabled       so often/sometimes the character is transmitted       immediately and it isn't allowed to interrupt, so it doesn't.              I then enable interrupts and hlt but the show is already over.              So maybe what I need to do instead is send the character       after enabling interrupts.              I'll try that next. Not as neat as the previous generic solution.              BFN. Paul.              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca