S e r i a l C o n t r o l l e r M o d u l e

If the serial channel is configured to operate in DMA mode, the DMA channel is signaled to close the buffer and start a new buffer. If the serial channel is configured in interrupt mode, the expiration of the timer causes an interrupt to be generated.

The receive character timer uses FXTALE and a 9-bit prescaler within the SER module. The receive character timer is configured with a 10-bit programmable counter. The

effective buffer timer value is defined by this equation:

TIMEOUT = [512 * (CT + 10)] / FXTALE

31

30

29

28

27

26

25

24

23

22

21

20

19

18

17

16

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TRUN

 

 

 

 

 

 

Reserved

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Reserved

 

 

 

 

CT

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Register bit assignment

Bits

Access

Mnemonic

Reset

Description

 

 

 

 

 

D31

R/W

TRUN

0

Enable timer to run

 

 

 

 

Set to 1 to allow the receive character gap

 

 

 

 

timer to operate.

 

 

 

 

 

D30:10

N/A

Reserved

N/A

N/A

 

 

 

 

 

D09:00

R/W

CT

0

CT value

 

 

 

 

The required value for the receive character

timer is a function of the channel bit-rate. It is recommended that you set the character timer to a value that is 10 times the character period for the channel bit-rate. Use this equation to define the recommended character timer value:

CT RECOMMENDED =

[(10 * FXTALE) / (bit-rate * 512)] - 1

Table 93: Serial Channel Receive Character Gap Timer bit definition

w w w . d i g i . c o m

2 5 7

Page 271
Image 271
Digi NS7520 manual Serial Channel Receive Character Gap Timer bit definition, CT value