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

 

 

TPMC462 User Manual Issue 1.0.5 

Page 18 of 26 

6  Programming Hints 

6.1  UART Baud Rate Programming 

Each of the 4 UART channels of the TPMC462 provides a programmable Baud Rate Generator. The 
clock of the XR17D154 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). 

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

Страница 1: ...462 4 Channel Serial Interface RS232 RS422 Version 1 0 User Manual Issue 1 0 5 March 2010 TEWS TECHNOLOGIES GmbH Am Bahnhof 7 25469 Halstenbek Germany Phone 49 0 4101 4058 0 Fax 49 0 4101 4058 19 e ma...

Страница 2: ...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 TECHNOLOGIES GmbH is not liable for any dama...

Страница 3: ...ober 2004 1 1 Expanded Configuration EEPROM data November 2004 1 2 Configuration EEPROM data Pinout clarification October 2005 1 3 Channel numbering clarification August 2006 1 4 New address TEWS LLC...

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

Страница 5: ...TABLE 4 1 PCI HEADER 14 TABLE 4 2 CONFIGURATION EEPROM TPMC462 XX 15 TABLE 4 3 PHYSICAL CONFIGURATION EEPROM DATA 16 TABLE 5 1 UART INTERFACE MAPPING 17 TABLE 6 1 UART BAUD RATE PROGRAMMING 18 TABLE...

Страница 6: ...PMC462 10 12 offers full modem support TxD RxD CTS RTS DSR DTR CD RI and GND for RS232 One channel of the TPMC462 11 supports RxD TxD RTS CTS and GND for RS422 Each channel has 64 byte transmit and re...

Страница 7: ...PMC462 12 2 RS232 1 Full Modem 2 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 TPMC462 11 RTS CTS Termination RS422 12...

Страница 8: ...TPMC462 User Manual Issue 1 0 5 Page 8 of 26 MTBF TPMC462 10 750 000 h TPMC462 11 650 000 h TPMC462 12 710 000 h Humidity 5 95 non condensing Weight 61 g Table 2 1 Technical Specification...

Страница 9: ...d UART to provide and control the 4 channels Device Configuration Space Content PCI Address Size Bit UART 0 Register Set PCI Base Address 0 0x0000 to 0x007F 32 Device Configuration Registers PCI Base...

Страница 10: ...Set Offset Offset Address Description Access Data Width 0x000 0x00F UART Channel Configuration Registers First 8 registers are 16550 compatible R W 8 16 32 0x010 0x07F Reserved 0x080 0x093 Channel 0 D...

Страница 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 2 is PCI Base Address PCI Base Address for the Device Configuration Space 0x0400 Offset of the UART register set for serial channel 2 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 TPMC462 xx Subsystem ID Value Offset 0x0C TPMC462 10 0x000A TPMC462 11 0x000B TPMC462 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: ...PMC462 TPMC462 10 TPMC462 11 TPMC462 12 RS232 RS422 RS232 RS422 RS232 RS422 UART0 X X X UART1 X X X UART2 X X X UART3 X X X Table 5 1 UART interface mapping Other configurations are available as facto...

Страница 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: ...ister 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...

Страница 20: ...ctor at the same time RS422 channels provide on board termination resistors Do not apply additional external termination resistors here Please note that on the TPMC462 the P14 back I O connector is al...

Страница 21: ...27 3 RxD0 RS232 28 4 RTS0 RS232 29 5 CTS0 RS232 30 6 GND 31 GND 7 32 TxD3 RS232 8 33 RxD3 RS232 9 34 RTS3 RS232 10 35 CTS3 RS232 11 GND 36 GND 12 TxD1 RS232 37 13 RxD1 RS232 38 14 RTS1 RS232 39 15 CTS...

Страница 22: ...7 32 TxD3 RS422 8 33 TxD3 RS422 9 34 RxD3 RS422 10 35 RxD3 RS422 11 GND 36 GND 12 TxD1 RS422 37 13 TxD1 RS422 38 14 RxD1 RS422 39 15 RxD1 RS422 40 16 GND 41 GND 17 42 5V Termination Supply unfused 18...

Страница 23: ...D 7 32 TxD3 RS422 8 33 TxD3 RS422 9 34 RxD3 RS422 10 35 RxD3 RS422 11 GND 36 GND 12 TxD1 RS232 37 13 RxD1 RS232 38 14 RTS1 RS232 39 15 CTS1 RS232 40 16 GND 41 GND 17 42 5V Termination Supply unfused 1...

Страница 24: ...38 7 39 8 40 9 41 GND 10 42 5V Termination Supply unfused 11 GND 43 CD0 RS232 12 TxD1 RS232 44 DTR0 RS232 13 RxD1 RS232 45 RI0 RS232 14 RTS1 RS232 46 DSR0 RS232 15 CTS1 RS232 47 CD1 RS232 16 GND 48 D...

Страница 25: ...6 GND 38 7 39 8 40 9 41 GND 10 42 5V Termination Supply unfused 11 GND 43 RTS0 RS422 12 TxD1 RS422 44 RTS0 RS422 13 TxD1 RS422 45 CTS0 RS422 14 RxD1 RS422 46 CTS0 RS422 15 RxD1 RS422 47 16 GND 48 17 4...

Страница 26: ...6 GND 38 7 39 8 40 9 41 GND 10 42 5V Termination Supply unfused 11 GND 43 CD0 RS232 12 TxD1 RS232 44 DTR0 RS232 13 RxD1 RS232 45 RI0 RS232 14 RTS1 RS232 46 DSR0 RS232 15 CTS1 RS232 47 16 GND 48 17 49...

Отзывы: