AT7908E
Initialisation of the Receiver Message Objects and the Filtering Function
In this paragraph is reported an example about configuration of the AT7908E to receive
message with the filtering function. In this example the MCU, after configuration of the
AT7908E, waits for Interrupt (from the AT7908E) and then the MCU reads the status
registers, the RX message object and it clears the interrupt request and the receiver
status.
Configuration of the AT7908E:
Operation 1
Table 16. Write reg 00 H, data = 0FHex
(SETUP_0 register) system clock = external clock, all interrupts enabled (rx completed,
tx completed, overrun, error state).
Gensy
ncTx
Gensy
ncRx
SETUP_0
BPR1
0
BPR0
0
Errint
0
Overint
0
Rxint
0
Txint
0
0
0
Gensy
ncTx
Gensy
ncRx
SETUP_0
BPR1
0
BPR0
0
Errint
1
Overint
1
Rxint
1
Txint
1
0
0
SETUP_2 register will be not written ( default configuration)
SETUP_3 register will be not written ( default configuration)
Receiver Message Object and Filtering function configuration
Operation 3
Table 17. write reg 07 H, data =FF Hex
write reg 08 H, data =FF Hex
(FILTER_AM_0, FILTER_AM_1 registers)Global mask set to check all bits of incoming
identifier.
FILTER_AM_0
FILTER_AM_1
00000000
00000000
FILTER_AM_0
FILTER_AM_1
11111111
11111111
34
4268D–AERO–11/09