Hmm... I'd say you're drowning just by looking water ;-)
You are working with a Linux operative system, forget about the
microcontroller class. The OS handles all the registers and hardware
related details: to write the port you just need to write on the file
/dev/ttyAM1 and to read you just need to read it... in fact, you can
write to the port without even writing a C program, just:
echo "Whatever you want to write" > /dev/ttyAM1
and to read from it:
cat /dev/ttyAM1
But first: there is a terminal console running on ttyAM1 by default on
TSLinux so you have to disable it before using the port. To do so edit
/etc/inittab, and comment out the line:
lgn1:12345:respawn:/sbin/getty -L 115200 ttyAM1
I'd recommend you read some linux serial programming tutorial... just
google for it, you'll find plenty. You will also need some basic Linux
knowledge.
On Sun, Mar 22, 2009 at 11:11 PM,
<> wrote:
> Hello all
>
> I'm new to the whole embedded systems environment. I'm currently trying to
> set up a servo controller to be controlled by the TS-7260. I'm currently
> completely lost when it comes to enabling/using the COM2 port on the
> microcontroller. From my microntollers class that I took last semester, I
> have it in my mind that I need to enable the port by writing to a particular
> register. The only thing I have found so far is that I know where the UART
> register is located. I don't know exactly what register to write to so that
> I can start sending strings of data to my servo controller.
>
> Basically I'm stuck at square 1, and I have not been able to find any type
> of tutorial to even begin with. The only experience I have is a M68HC11.
>
> Any suggestions? I'm drowning here in the shallow end of the pool =)
>
>
------------------------------------
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/
|