Host Engineering Forum

General Category => Do-more CPUs and Do-more Designer Software => Topic started by: sgsims on August 29, 2016, 10:39:24 PM

Title: Streamout - Error Bit
Post by: sgsims on August 29, 2016, 10:39:24 PM
I am using a STREAMOUT instruction in a program and during testing I can't get the Error bit to set.  I guess that's good but it makes me wonder what consdition will trigger the Error bit being set.  I unplugged the cable from the serial port,  shut down the program receiving the data,  emptied the SS location of any strings and still can't get the erro bit to go high.

Also,  what would add to the $serio_000_B.OutQueue count?  Can't get that to show any byte counts in the outqueue either.

Title: Re: Streamout - Error Bit
Post by: BobO on August 30, 2016, 12:11:49 AM
I am using a STREAMOUT instruction in a program and during testing I can't get the Error bit to set.  I guess that's good but it makes me wonder what consdition will trigger the Error bit being set.  I unplugged the cable from the serial port,  shut down the program receiving the data,  emptied the SS location of any strings and still can't get the erro bit to go high.

Also,  what would add to the $serio_000_B.OutQueue count?  Can't get that to show any byte counts in the outqueue either.



For STREAMOUT there really aren't many possible failures if the underlying device is working correctly. For a SERIO failure would be more like the module went missing. For something like a TCP device there are different possibilities, but something like the connection being closed is most likely.

Outqueue won't show if the underlying device is cached. SERIO modules have 256 byte FIFOs, so the queued content gets dumped into the module almost immediately. TCPs are cached in the network stack, so it's similar.
Title: Re: Streamout - Error Bit
Post by: sgsims on August 30, 2016, 10:47:28 AM
Thanks Bob..that helps