ts-7000
[Top] [All Lists]

Re: [ts-7000] com 3 in 7800

To:
Subject: Re: [ts-7000] com 3 in 7800
From: "Eric Robishaw" <>
Date: Wed, 13 Aug 2008 12:04:50 -0500
The driver does that... ttts5 utilizes 7/8, then wire your device to those pins, instead of the typical 2/3.

See the ts7800 preliminary manual, page 9 for the table.
http://www.embeddedarm.com/about/resource.php?item=303

Copied below for quick reference:
# RS- base adrs header Tx Rx TxEn RTS CTS
ttts0 232 0xE80000C0 COM1 7 8 N/A no no
ttts1 232 0xE80000C4 COM1 4 1 N/A no no
2(*) 485 / 422 0xE80000C8 COM2 +:6 -:1 +:4 -:9(1) N/A no no
3(*) 485 0xE80000CC COM2 +:4 -:9(2) N/A N/A no no
4 232 0xE80000D0 COM3 Tx Rx N/A RTS CTS
5 232 0xE80000D4 COM3 7 8 N/A N/A no
6 TTL 0xE80000D8 DIO 13 15 11 N/A no
7 TTL 0xE80000DC LCD 13 14 12 N/A no
8 TTL 0xE80000E0 PC-104 C17 C18 C16 N/A no
9 TTL 0xE80000E4 PC-104 C14 C15 C13 N/A N/A


The docs are a little confusing, but the table refers to all the tttsN drivers (not the ttyS0 and ttyS1).
So,
the first line, is for ttts0, uses com1 header, pins 7,8
2nd line, ttts1, uses com1 header, pins 4,1
etc...


Eric




On Wed, Aug 13, 2008 at 11:56 AM, vigu <> wrote:

how to set the pins to be 7 or 8 instead of 3/2



On Wed, Aug 13, 2008 at 1:48 PM, Eric Robishaw <eric%40robishaw.us> wrote:
> You might want to look at the microterm.c example in the files section of
> this yahoo group:
> http://tech.groups.yahoo.com/group/ts-7000/files/
> look for "microterm.c"
>
> Eric
>
>
> On Wed, Aug 13, 2008 at 11:40 AM, vigu <vigu.cruises%40gmail.com> wrote:
>>
>> thanks a lot .. but when i read data it returned me -1. is there
>> something wrong in what i'm doing. i'm sorry am very new to serial
>> programming. here is the code
>>
>> #include <stdio.h>
>> #include <unistd.h>
>> #include <fcntl.h>
>> #include <errno.h>
>> #include <termios.h>
>>
>> int initComm() {
>>
>> int fd;
>> struct termios options;
>>
>> // Open the RS232 port
>> fd = open("/dev/ttts4", O_RDWR | O_NOCTTY );
>> if(fd == -1) {
>> #ifdef DEBUG
>> printf("Could not open the comm port.\r\n");
>> #endif
>> return fd;
>> }
>>
>> // Clear the flags
>> fcntl(fd, F_SETFL, 0);
>>
>> // Get the port options
>> tcgetattr(fd, &options);
>> // Set the speed
>> cfsetispeed(&options, B9600);
>> cfsetospeed(&options, B9600);
>>
>> // Set the comm flags (115200 8N1)
>> options.c_cflag = B9600 | CS8 | CLOCAL | CREAD;
>> options.c_iflag = 0;
>> options.c_oflag = 0;
>> options.c_lflag = 0;
>>
>> // Set the timeout to be 1000ms
>> options.c_cc[VMIN] = 0;
>> options.c_cc[VTIME] = 10;
>>
>> // Save these settings
>> tcsetattr(fd, TCSANOW, &options);
>>
>> // Flush the settings
>> tcflush(fd, TCIFLUSH);
>> tcflush(fd, TCOFLUSH);
>>
>> return fd;
>>
>> }
>
>

--
With regards,
Vignesh Badrinarayanan

__._,_.___

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU