ts-7000
[Top] [All Lists]

[ts-7000] Re: usage of TS-CAN1 and TS-7300

To:
Subject: [ts-7000] Re: usage of TS-CAN1 and TS-7300
From: "Edwin" <>
Date: Fri, 30 Sep 2011 12:10:04 -0000
Hi,

The TS-CAN1 board is really special, if you want to use a driver for recieve 
and transmit I suggest you to develop a new driver only for that purpose.

What you need to develop a new driver, is to map the physical register and 
start writing to those mapped registers the correct bits, in special to:

BASE + 4: Page selection register
BASE + 5: Mode control register

The page selection register, is to acces to the the SJA1000 registers, in these 
registers you can configure the baudrate, the output mode, the bytes to be 
sent, etc.

Read the lincan source, they do this implementation by a char driver, I think 
the only difference is that they use memset instead of __ioremap to map the 
physical registers.

Regards,

Edwin Samanez,





--- In  "zhangjing80" <> wrote:
>
> hello, everyone, I'm beginner in the learning of embedded Linux. sevaral days 
> ago I have bought a TS-7300 and a TS-CAN1 board. I have also read some 
> relative manuals. It says that TS-CAN1 can work with TS-7300 as a integrated 
> system with this command.
> # insmod -f lincan.o hw=tscan1 io=0x150 baudrate=1000
> But there are no further informations. So I'm very comfused about some 
> details and have some questions as follows. Might somebody give me any help. 
> Thank you very much in advance.
> 1.first, the TS-CAN1 board receives CAN message, then send them to TS-7300 by 
> PC/104.And vice versa. You know that these I/O interfaces are fixed. Have the 
> relative programs been written yet?
> 2.you know, CAN module has read and write functions. Maybe these functions 
> are contained in SJA1000.c. When I wanna send a frame CAN message, I must 
> write the data£¬id and so forth. Have these programs been written yet? How 
> can I write the datas and id?
>




------------------------------------

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/

<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