Chapter 6 Communications Modules

SMART I/O User’s Manual

 

 

 

 

 

 

 

 

 

 

6.2.7.2 CTRL1 Register

C T R L 1 - 7 C T R L 1 - 6 C T R L 1 - 5 C T R L 1 - 4 C T R L 1 - 3 C T R L 1 - 2 C T R L 1 - 1

RST

AR

 

SOT

DIR

EN13-MH

EN12-EOR

ENI1-TC

ENIO-P

 

enable / disable (1 / 0) interrupt on parity error

 

ENI1-TC

enable / disable (1 / 0) interrupt on transmission complete

ENI2-EOR

enable / disable (1 / 0) interrupt on end-of-range switch 1 / 2

ENI3-MH

enable / disable (1 / 0) interrupt on comparison match

DIR

 

direction control (‘1’ activates the optocouplers)

 

SOT

 

start transmission control (‘1’ = set; single-shot-set by lib.)

AR

 

select automatic repeat mode (when set -> ‘1’)

 

RST

 

set / clear (1 / 0) Reset output

 

 

6.2.7.3 CTRL2 Register

 

 

 

 

 

C T R L 2 - 7 C T R L 2 - 6 C T R L 2 - 5 C T R L 2 - 4 C T R L 2 - 3 C T R L 2 - 2 C T R L 2 - 1

CF1

CF0

 

P

FDL4

FDL3

FDL2

FDL1

FDL0-4

 

number of data bits, excluding parity, minus 1

 

P

 

enable / disable (1 / 0) use of parity (encoder dependent)

CF1-0

 

data transmission frequency:

 

 

 

 

0-0

62.5 kHz

 

 

 

 

 

 

1-0

125 kHz

 

 

 

 

 

 

0-1

250 kHz

 

 

 

 

 

 

1-1

500 kHz

 

 

 

 

6.2.7.4 CTRL3 Register

 

 

 

 

 

C T R L 3 - 7 C T R L 3 - 6 C T R L 3 - 5 C T R L 3 - 4 C T R L 3 - 3 C T R L 3 - 2 C T R L 3 - 1

unused

unused

unused

unused

unused

PT

DT

CM

 

A logical ‘1’ clears the MATCH output and LED

 

DT

 

data type (0:Gray, 1:Binary) according to encoder type

PT

 

If ‘0’ is set, the result in the data register is binary.

 

 

parity type (0:Odd, 1:Even) according to encoder type.

6

 

 

 

 

October 01, 1996

©1996 PEP Modular Computers GmbH

Page 6 - 23

 

 

Page 305
Image 305
Pepper Computer RS232, RS485 user manual CTRL1 Register, CTRL2 Register, CTRL3 Register