
182
ATmega16M1/32M1/64M1 [DATASHEET]
8209E–AVR–11/2012
19.10.15 CANREC – CAN Receive Error Counter Register
Bit 7:0 – REC[7:0]: Receive Error Count
CAN receive error counter range 0 to 255.
19.10.16 CANHPMOB – CAN Highest Priority MOb Register
Bit 7:4 – HPMOB[3:0]: Highest Priority MOb Number
MOb having the highest priority in CANSIT registers.
If CANSIT = 0 (no MOb), the return value is 0xF.
Note:
Bit 3:0 – CGP[3:0]: CAN General Purpose Bits
These bits can be pre-programmed to match with the wanted configuration of the CANPAGE register (that is, AINC
and INDX2:0 setting).
19.10.17 CANPAGE – CAN Page MOb Register
Bit 7:4 – MOBNB3:0: MOb Number
Selection of the MOb number, the available numbers are from 0 to 5.
Note:
MOBNB3 always must be written to zero for compatibility with all AVR CAN devices
Bit 3 – AINC: Auto Increment of the FIFO CAN Data Buffer Index (Active Low)
– 0 - auto increment of the index (default value)
– 1- no auto increment of the index
Bit 2:0 – INDX[2:0]: FIFO CAN Data Buffer Index
Byte location of the CAN data byte into the FIFO for the defined MOb.
19.11 MOb registers
The MOb registers has no initial (default) value after RESET.
19.11.1
CANSTMOB – CAN MOb Status Register
Bit
765
43210
REC7
REC6
REC5
REC4
REC3
REC2
REC1
REC0
CANREC
Read/write
RRRRRRRR
Initial value
000
00000
Bit
7654
3
2
1
0
HPMOB3
HPMOB2
HPMOB1
HPMOB0
CGP3
CGP2CGP1CGP0
CANHPMOB
Read/write
R
R/W
Initial value
1111
0
Bit
765
43210
MOBNB3
MOBNB2
MOBNB1
MOBNB0
AINC
INDX2
INDX1
INDX0
CANPAGE
Read/write
R/W
Initial value
000
00000
Bit
765
432
10
DLCW
TXOK
RXOK
BERR
SERR
CERR
FERR
AERR
CANSTMOB
Read/write
R/W
Initial value
---
--