Tom, Robert - thank you.
Jim, the TS-7800 has an option for on-board RS-485 functionality
(OP-485-FD-14). The board I am working on has this option. That on-board
RS-485 capability is enabled by clearing bit 15 in what I called the PC104/UART
configuration register. Specifically that is address 0xE800000C. I called it
the "PC104/UART control register" because bits 0-12 apply to the PC/104 bus
configuration (ISA behavior), bits 13 & 14 affect the COM1 header RTS/DTR
signals respectively, bit 15 controls RS-485/RS-422 behavior of TSUARTS 2 & 3,
bit 16 affects UART 4 RTS on the COM3 header.
My apologies for any confusion.
All the best, Joe
--- In Jim Jackson <> wrote:
>
>
>
> On Thu, 28 Oct 2010, tom campbell wrote:
>
> > Joe:
> >
> > can't say for the TS-7800.
> > I do it for TS-7260. I'm running a full debian Sarge (not busybox
> > ts-linux as supplied by embeddedArm... so your mileage may vary)
>
> I get the impression the guy is using an add on card? He mentions
> "PC104/UART configuration"
>
> So to the o.p. : What hardware are you trying to get 485 going on?
> It always helps to gives FULL details - 'cos in general we are not mind
> readers.
>
> > I forget the details and I don't have time at the moment to dig out my
> > all my documentation and post it, but....
> >
> > basically I think I had to (a) make sure some jumpers were set for
> > half/full duplex and setting drive levels to RS-485 instead of RS-232.
> >
> > (b) seem to remember having to add something to for one of the serial
> > ports on the TS-7260. Probably not the case if running embeddedarm
> > supplied os on your 7800
> >
> > (c)there's some memory map bits that you have to poke at to set
> > half-duplex/full duplex
> >
> > > # Say hello
> > > echo -n "$PROGRAM_NAME: Changing com2(/dev/ttyAM1) to "
> > >
> > > declare poke=/usr/local/sbin/poke8
> > > declare memloc=0x22c00000
> > > if (( $INITIALIZING )) ; then
> > > # Switch com2 to RS-485 half-duplex 115Kbaud
> > > echo "RS-485, half-duplex, 115200 baud."
> > > memval=0x07
> > > else
> > > # Switch com2 to back to RS-232
> > > memval=0x00
> > > echo "RS-232."
> > > fi
> > >
> > > # Do it
> > > set +e # poke behaves badly, returns 7
> > > $poke $memloc $memval
> > >
> > > # Life is good
> > > exit 0
> > >
> > Once that's done... I use picocom /dev/ttyAM? (My terminal emulator of
> > choice) to talk half-duplex just fine. The supplied technologic
> > documentation is complete on all this stuff... you sometimes just have
> > to dig for it.
> >
> > tc
> >
> >
> >
> >
> > On Thu, 2010-10-28 at 17:01 +0000, jtheath4u wrote:
> > >
> > > Hi All,
> > >
> > > First post to the group. Also just getting started with Technologic
> > > Systems' TS-7800. We're planning to use the board for motor controls.
> > >
> > > One of the first tasks is to get RS-485 up and running. Documentation
> > > is pretty sparse. Need to clear bit 15 in the PC104/UART configuration
> > > register. Baud rate is set by 3 bits in uart-associated status
> > > register.
> > >
> > > Do "normal" serial configuration operations work on the RS-485 port?
> > > Does one open the device (say /dev/ttts2) and read/write as any other
> > > TTY?
> > >
> > > Any guidance/instruction on 7800 RS-485 port use would be appreciated.
> > >
> > > Thank you, Joe
> > >
> > >
> > >
> > >
> > >
> >
> >
>
------------------------------------
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/
|