Tews Technologies TPMC371-10 Скачать руководство пользователя страница 18

 

 

TPMC371 User Manual Issue 1.1.5 

Page 18 of 22 

6  Programming Hints 

6.1 UART Baud Rate Programming 

Each of the 8 UART channels of the TPMC371 provides a programmable Baud Rate Generator. The 
clock of the XR17D158 UART can be divided by any divisor from 1 to 2

16

 – 1. The divisor can be 

programmed by the UART channel DLM (Divisor MSB) and DLL (Divisor LSB) registers. After a reset 
bit 7 of the UART channels MCR register defaults to ‘0’ and the divisor value is 0xFFFF. 

The basic formula of baud rate programming is: 

 

Baud Rate = 

[ ]

(

)

7

3

1

16

2368

.

44

MCR

Divisor

MHz

+

 

Examples for standard baud rates are given in following chart: 

Baud Rate 

MCR[7] = 0 

Baud Rate 

MCR[7] = 1 

Divisor 

DLM 

Value 

DLL 

Value 

400 100 

0x1B00 

0x1B 

0x00 

600 150 

0x1200 

0x12 

0x00 

1200 300 0x0900 

0x09 0x00 

2400 600 0x0480 

0x04 0x80 

4800 1200 0x0240 

0x02 0x40 

9600 2400 0x0120 

0x01 0x20 

19.2k 4800 0x0090 

0x00 0x90 

38.4k 9600 0x0048 

0x00 0x48 

57.6k 14.4k 0x0030 0x00 0x30 

115.2k 28.8k 0x0018 0x00  0x18 
230.4k 57.6k 0x000C 0x00  0x0C 
460.8k 115.2k 0x0006 0x00  0x06 
921.6k 230.4k 0x0003 0x00  0x03 

1382.4k 345.6k  0x0002  0x00  0x02 
2764.8k

 

691.2k 0x0001  0x00  0x01 

Table 6-1 :  UART Baud Rate Programming 

To calculate a divisor value for a given baud rate, use following formula: 

 

Divisor = 

[ ]

(

)

7

3

1

16

2368

.

44

MCR

Rate

Baud

MHz

+

 

The sampling rate for a UART channel can be set to 8x (normal operation is 16x) in the 8XMODE 
register. Transmit and receive data rates will double by selecting 8x sample rate. 

The maximum achievable baud rate is 5.5296 Mbps (Divisor = 0x0001 & 8x sampling rate). 

Содержание TPMC371-10

Страница 1: ...ue 1 1 5 January 2009 TEWS TECHNOLOGIES GmbH TEWS TECHNOLOGIES LLC Am Bahnhof 7 25469 Halstenbek Germany www tews com Phone 49 0 4101 4058 0 Fax 49 0 4101 4058 19 e mail info tews com 9190 Double Diam...

Страница 2: ...y effort to ensure that this manual is accurate and complete However TEWS TECHNOLOGIES GmbH reserves the right to change the product described in this document at any time without notice TEWS TECHNOLO...

Страница 3: ...sion 1 1 Updated Power Specifications Expanded Configuration EEPROM data November 2004 1 2 Configuration EEPROM data Pinout clarification October 2005 1 3 Channel numbering clarification August 2006 1...

Страница 4: ...Device Configuration Registers 11 3 2 3 UART Channel Configuration Registers 12 4 XR17D158 TARGET CHIP 14 4 1 PCI Configuration Registers PCR 14 4 2 Configuration EEPROM 15 5 CONFIGURATION HINTS 17 6...

Страница 5: ...T 10 TABLE 3 5 DEVICE CONFIGURATION REGISTERS 11 TABLE 3 6 UART CHANNEL CONFIGURATION REGISTERS 12 TABLE 4 1 PCI HEADER 14 TABLE 4 2 CONFIGURATION EEPROM TPMC371 XX 15 TABLE 4 3 PHYSICAL CONFIGURATION...

Страница 6: ...ll modem support TxD RxD CTS RTS DSR DTR CD RI and GND for RS232 Two channels of the TPMC371 11 support RxD TxD RTS CTS and GND for RS422 Each channel has 64 byte transmit and receive FIFOs to signifi...

Страница 7: ...C371 11 8 RS422 2 with RTS CTS TPMC371 12 4 RS232 2 Full Modem 4 RS422 Serial Channel I O Signals RS232 TxD RxD RTS CTS GND RS232 Full Modem TxD RxD RTS CTS DTR DSR CD RI GND RS422 TxD RxD GND TPMC371...

Страница 8: ...TPMC371 User Manual Issue 1 1 5 Page 8 of 22 MTBF TPMC371 10 740 000 h TPMC371 11 570 000 h TPMC371 12 670 000 h Humidity 5 95 non condensing Weight 52 g Table 2 1 Technical Specification...

Страница 9: ...et PCI Base Address 0 0x0000 to 0x007F 32 Device Configuration Registers PCI Base Address 0 0x0080 to 0x009F 32 UART 0 Register Set PCI Base Address 0 0x0100 to 0x01FF 32 UART 1 Register Set PCI Base...

Страница 10: ...Serial Channel 7 0x0E00 Table 3 3 UART Register Set Offset Offset Address Description Access Data Width 0x000 0x00F UART Channel Configuration Registers First 8 registers are 16550 compatible R W 8 16...

Страница 11: ...d 0x00 0x086 TIMERLSB R W 0x00 0x087 TIMERMSB Programmable Timer Value R W 0x00 0x088 8XMODE Sampling Rate Select R W 0x00 0x089 REGA Reserved 0x00 0x08A RESET UART Reset W 0x00 0x08B SLEEP UART Sleep...

Страница 12: ...SR Interrupt Status Register FCR FIFO Control Register W 0x00 0x03 LCR Line Control Register R W 0x00 0x04 MCR Modem Control Register R W 0x00 R 0x05 LSR Line Status Register Reserved W 0x60 R 0x06 MS...

Страница 13: ...g example The address for the LCR register of UART channel 5 is PCI Base Address PCI Base Address for the Device Configuration Space 0x0A00 Offset of the UART register set for serial channel 5 0x0003...

Страница 14: ...mented N 00000000 0x18 Base Address Register 0 Unimplemented N 00000000 0x1C Base Address Register 1 Unimplemented N 00000000 0x20 Base Address Register 2 Unimplemented N 00000000 0x24 Base Address Re...

Страница 15: ...or ID 0x2E 0x1498 0x03 Subsystem ID 0x2C s b Table 4 2 Configuration EEPROM TPMC371 xx Subsystem ID Value Offset 0x0C TPMC371 10 0x000A TPMC371 11 0x000B TPMC371 12 0x000C The words following the conf...

Страница 16: ...Data Rate RS232 low 0x4240 0x4240 0x4240 0x22 Max Data Rate RS422 high 0x0098 0x0098 0x0098 0x23 Max Data Rate RS422 low 0x9680 0x9680 0x9680 0x24 Max Data Rate TTL high 0x0098 0x0098 0x0098 0x25 Max...

Страница 17: ...1 11 TPMC371 12 RS232 RS422 RS232 RS422 RS232 RS422 UART0 X X X UART1 X X X UART2 X X X UART3 X X X UART4 X X X UART5 X X X UART6 X X X UART7 X X X Table 5 1 UART interface mapping Other configuration...

Страница 18: ...DLM Value DLL Value 400 100 0x1B00 0x1B 0x00 600 150 0x1200 0x12 0x00 1200 300 0x0900 0x09 0x00 2400 600 0x0480 0x04 0x80 4800 1200 0x0240 0x02 0x40 9600 2400 0x0120 0x01 0x20 19 2k 4800 0x0090 0x00 0...

Страница 19: ...ster bit 7 of an UART channel set baud rate generator prescaler 1 Set UART channel EFR register bit 4 to 1 enable modification of MCR register bits 5 7 2 Modify UART channel MCR register bit 7 3 Set U...

Страница 20: ...xD7 RS232 7 TxD1 RS232 39 RTS7 RS232 8 RxD1 RS232 40 CTS7 RS232 9 RTS1 RS232 41 GND 10 CTS1 RS232 42 5V Termination Supply unfused 11 GND 43 CD0 RS232 12 TxD2 RS232 44 DTR0 RS232 13 RxD2 RS232 45 RI0...

Страница 21: ...41 GND 10 RxD1 RS422 42 5V Termination Supply unfused 11 GND 43 RTS0 RS422 12 TxD2 RS422 44 RTS0 RS422 13 TxD2 RS422 45 CTS0 RS422 14 RxD2 RS422 46 CTS0 RS422 15 RxD2 RS422 47 RTS1 RS422 16 GND 48 RTS...

Страница 22: ...2 41 GND 10 CTS1 RS232 42 5V Termination Supply unfused 11 GND 43 CD0 RS232 12 TxD2 RS232 44 DTR0 RS232 13 RxD2 RS232 45 RI0 RS232 14 RTS2 RS232 46 DSR0 RS232 15 CTS2 RS232 47 CD1 RS232 16 GND 48 DTR1...

Отзывы: