Hi Harold,
You are spot on.. thanks for that advice, flipping those bits works nicely.
Here is a quick and dirty shell script that toggles RTS and DTR
on COM1.
#!/bin/sh
#
# Toggle RTS and DTR on TS7800 Com1
#
#disable /dev/ttts0 and ttts1
poke16 0xe80000c0 0x10e1
poke16 0xe80000c4 0x10e1
# now we loop toggling bits 13:14 in 0xe800000c
#
while true
do
peek32 0xe800000c
poke32 0xe800000c 0x1bdc
sleep 1
peek32 0xe800000c
poke32 0xe800000c 0x7bdc
sleep 1;
done
Much appreciated.
Regards
Ray
--- In "Harold" <> wrote:
>
> If you look in Appendix B of the TS-7800 Manual, you will see that RTS on the
> COM1 header is controlled by bit 13 of the register at 0xE800000C. I think
> that you need to flip this bit, rather than use ioctl().
>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|