
PCAN-Router Pro – User Manual
64
I/O Function
I/O Number
Number
of Bits
Value Range
Function
Trace Disable
5
Value from bit
pattern (see right)
Disable logging function for one or more CAN channels
Each of the five bits represents a CAN channel (Example: CAN 1 and CAN 3 = 00101b = 5). The fifth, virtual CAN
channel can create transmit messages.
Trace Clear
2
1, 2
Erases trace sessions on the CF card:
1 = Erases the contents of the current session and restarts the logging in this session.
2 = Erases all sessions and restarts the logging in a new first session.
Trace Buffer Type
2
1, 2
Determines the mode for logging:
1 = linear: The logging stops when the trace file is full (default).
2 = circular: When the trace file is full, the logging restarts at the beginning.
Configuration ID 7E7h
Enable
4
Value from bit
pattern (see right)
Determines for each CAN channel if it can receive configuration messages via the CAN ID 7E7h (on for all channels
by default). At least one CAN channel must be selected for reception. Each of the four bits represents a CAN
channel (Example: CAN 2 and CAN 4 = 1010b = 10). If 0 is indicated, 15 (all four CAN channels) is used
automatically.
RTC Set Year
0 - 99
RTC Set Month
1 - 12
RTC Set Day of Month
1 - 31
RTC Set Day of Week
1 = Mo … 7 = Su
RTC Set Hour
0 - 23
RTC Set Minute
0 - 59
RTC Set Second
0 - 59
Declarations for date and time to set the battery-buffered real-time clock
Note: All declarations must be transmitted to the router.
Initialization with the I/O function
Special Out (70 h) > RTC Write
RTC Write
1
1
Initializes the real-time clock (RTC) with declarations from the I/O function
Special Out (70h) > RTC Set
RTC Set Alarm
32
Value from bit
pattern (see right)
Sets the alarm time for turning on the PCAN-Router Pro when it is in power-down mode
Bit pattern:
--MMMMMM MMDDDDDh hhhhmmmm mmssssss
M
= month,
D
= day of month,
h
= hour,
m
= minute,
s
= second
Logging Error Frames
Enable
4
Value from bit
pattern (see right)
Determines for each CAN channel if occurring error frames are recorded with the enabled logging function. Each
of the four bits represents a CAN channel (Example: CAN 2 and CAN 3 = 0110b = 6).
CAN x Bitrate Raw
32
Composition of
different values
(see right)
Sets the CAN bit rate for CAN channel x by the according register bytes for the CAN controller:
0x00YX00BB with BB = bitrate prescaler (BRP), X = Tseg1, Y = Tseg2; clock = 56 MHz; real value = register value + 1
Example for 800 kbit/s: 0x00290004
Register values: BB = 4, Tseg1 = 9, Tseg2 = 2
Real values: BBr = 5, Tseg1r = 10, Tseg2r = 3
Segment length (BBr / clock): 5 / 56 MHz = 89.286 ns
Segment count (Sync + Tseg2r): 1 + 10 + 3 = 14
Bit length (segment length * segment count): 89.286 ns * 14 = 1.25
μ
s, equivalent to 800 kbit/s
CAN Bitrate: xy
0 - 3
(CAN channel 1 - 4)
Sets a CAN bit rate xy for the given CAN channel