Tews Technologies TPMC810 Скачать руководство пользователя страница 15

TPMC810 User Manual Issue 2.0.0 

Page 15 of 22 

5  Programming Hints 

5.1  SJA1000 CAN Controller 

5.1.1  SJA1000 CAN Controller 

The SJA1000 clock input frequency is 16 MHz (for both SJA1000 controllers). 

See  chapter  “SJA1000  CAN  Controller  Registers”  for  an  overview  of  all  registers  in  the  different 
modes. Note that some registers are available in PeliCAN Mode only and that the Control Register is 
available  in  BasicCAN  Mode only. Furthermore some registers are read only or  write  only  and some 
can be accessed during Reset Mode only. 

A  transmit  message  has  to  be  written  to  the  transmit  buffer.  After  a  successful  reception  the 
microprocessor may read the received message from the receive buffer and then release it for further 
use.  

5.1.2  Operating Modes 

For register access, two different modes have to be distinguished: 

  Reset Mode 

  Operating Mode 

The  Reset  Mode  (see  SJA1000  Control  Register  (CR;  0x0)  for  BasicCAN  or  Mode  Register  (MOD; 
0x0)  for  PeliCAN,  bit  Reset  Request)  is  entered  automatically  after  a  hardware-reset  or  when  the 
controller enters the bus-off state (see Status Register, bit Bus Status).  

The operating mode is activated by resetting of the reset request bit in the control register. 

5.1.3  Hardware Related Configuration Registers 

The SJA1000 Output Control Register and Clock Divider Register have to be programmed as follows 
(SJA1000 controller must be in Reset Mode): 

Bit 

Symbol 

Description 

OCTP1 

11 :   Push-Pull output stage 

OCTN1 

OCPOL1 

0 : 

Normal polarity 

OCTP0 

11 :   Push-Pull output stage 

OCTN0 

OCPOL0 

0 : 

Normal polarity 

OCMODE1 

01 :   Test output mode (bit reflection) 
10 :   Normal output mode 

OCMODE0 

Table 5-1 :  Output Control Register (OCR; 0x08) 

Содержание TPMC810

Страница 1: ...pany TPMC810 Isolated 2x CAN Bus Version 2 0 User Manual Issue 2 0 0 April 2022 TEWS TECHNOLOGIES GmbH Am Bahnhof 7 25469 Halstenbek Germany Phone 49 0 4101 4058 0 Fax 49 0 4101 4058 19 E mail info te...

Страница 2: ...owever TEWS TECHNOLOGIES GmbH reserves the right to change the product described in this document at any time without notice TEWS TECHNOLOGIES GmbH is not liable for any damage arising out of the appl...

Страница 3: ...in Fig 3 2 October 2005 1 5 New address TEWS LLC September 2006 1 1 6 New notation for User Manual and Engineering Documentation June 2009 1 1 7 General Update Added CAN Data Transmission Rate figure...

Страница 4: ...LCR 11 4 5 CAN Controller Register Address Space 12 4 5 1 Local Register Map 12 4 5 2 SJA1000 CAN Controller Registers 12 4 6 Local Software Reset 14 5 PROGRAMMING HINTS 15 5 1 SJA1000 CAN Controller...

Страница 5: ...ER SPACE 12 TABLE 4 6 REGISTERS OF SJA1000 13 TABLE 4 7 REGISTERS OF THE SJA1000 CONT 14 TABLE 5 1 OUTPUT CONTROL REGISTER OCR 0X08 15 TABLE 5 2 CLOCK DIVIDER REGISTER CDR 0X1F 16 TABLE 5 3 RX AND TX...

Страница 6: ...sceivers are utilized for the CAN bus I O interface Data transmission rates from 60kb s to 1 Mb s are supported An on board configuration option DIP switch is provided for each CAN bus channel to conf...

Страница 7: ...Data Transmission Rate Minimum 60kbaud TJA1050 TXD Dominant Time Out Feature Maximum 1Mbaud I O Connector 2 x Male DB9 front panel connector PMC P14 I O 64 pin Mezzanine Connector Physical Data Power...

Страница 8: ...nstructions 3 1 ESD Protection This PMC module is sensitive to static electricity Packing unpacking and all other module handling has to be done with appropriate care 3 2 Ground for Isolated I O I O C...

Страница 9: ...ase Address 2 for Local Address Space 0 Y FFFFFE00 0x1C not supported Y 00000000 0x20 not supported Y 00000000 0x24 not supported Y 00000000 0x28 not supported N 00000000 0x2C Subsystem ID Subsystem V...

Страница 10: ...000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x50 0x1502 0x4120 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x60 0x0000 0x0000 0x0000 0x0081 0x0000 0x0181 0x0000 0x0000 0x70 0x0000 0x0000 0x0030 0x0041...

Страница 11: ...al Base Address Remap 0x0000_0000 0x1C Local Address Space 0 Local Base Address Remap 0x0000_0000 0x20 Local Address Space 0 Local Base Address Remap 0x0000_0000 0x24 Expansion ROM Local Base Address...

Страница 12: ...H2 Address 1 8 0x102 CAN Controller CH2 Address 2 8 0x17F CAN Controller CH2 Address 127 8 0x180 0x1FF Reserved Table 4 5 CAN Controller Register Space 4 5 2 SJA1000 CAN Controller Registers The SJA10...

Страница 13: ...lements for setting up the CAN communication Acceptance Code Mask ACR AMR 16 19 20 23 4 5 Selection of bit patterns for Acceptance Filtering Bus Timing 0 1 BTR0 BTR1 6 7 6 7 Set up of Bit Timing Param...

Страница 14: ...Counter RMC 29 Number of messages in the Receive FIFO Rx Buffer Start Addr RBSA 30 Shows the current internal RAM address of the message available in the Receive Buffer Message buffers Transmit Buffer...

Страница 15: ...5 1 2 Operating Modes For register access two different modes have to be distinguished Reset Mode Operating Mode The Reset Mode see SJA1000 Control Register CR 0x0 for BasicCAN or Mode Register MOD 0x...

Страница 16: ...e information dependent on mode and frame type and up to 8 data bytes BasicCAN Mode The buffers are 10 bytes deep see figure Rx and Tx buffer in BasicCAN Mode o 2 identifier bytes o up to 8 data bytes...

Страница 17: ...entifier bits 0x13 0x14 Identifier Byte 3 4 Extended Frame only 13 Identifier bits Frame type Standard 0x13 0x1A Extended 0x15 0x1C Data Byte 1 8 Up to 8 data bytes as indicated by the Data Length Cod...

Страница 18: ...ation options for each channel are On board Line Termination on off P14 Bus Mode connected not connected and pass through bus end The on board termination option for a CAN channel node input see P14 I...

Страница 19: ...User Manual Issue 2 0 0 Page 19 of 22 CAN_H_IN CAN_L_IN S3 60R S4 S5 S6 S1 S2 Front I O DB9 CAN_H_OUT CAN_L_OUT CAN_H CAN_L CAN GND CAN GND 60R P14 Rear I O CAN Transceiver Figure 6 1 CAN Channel Int...

Страница 20: ...NC 6 CAN2_GND 7 CAN2_H 8 NC 9 NC Table 7 2 DB9 Male Connector X2 Channel 2 Note that the I O circuits of both CAN ports are electrically isolated from the main system and also from each other The CAN...

Страница 21: ...nnel 1 Ground 7 CAN Channel 1 Low Level Out 8 CAN Channel 1 High Level Out 9 NC 10 NC 11 NC 12 NC 13 NC 14 NC 15 NC 16 CAN Channel 2 Ground 17 CAN Channel 2 Low Level input for path through option 18...

Страница 22: ...Channel 2 High Level input output 14 CAN Channel 2 Ground 15 NC 16 64 NC Table 7 4 Pin Assignment P14 Back I O Connector TPMC810 20R Note that the I O circuits of both CAN ports are electrically isola...

Отзывы: