|
MEGA128CAN Datasheet, PDF (246/413 Pages) ATMEL Corporation – Microcontroller WITH 128K BYTES OF ISP FLASH AND CAN CONTROLLER | |||
|
◁ |
General CAN Registers
CAN General Control Register
- CANGCON
Bit
Read/Write
Initial Value
7
ABRQ
R/W
0
6
OVRQ
R/W
0
5
4
3
2
1
0
TTC SYNTTC LISTEN TEST ENA/STB SWRES CANGCON
R/W
R/W
R/W
R/W
R/W
R/W
0
0
0
0
0
0
⢠Bit 7 â ABRQ: Abort Request
This is not an auto resettable bit.
â 0 - no request.
â 1 - abort request: a reset of CANEN1 and CANEN2 registers is done. The
pending communications are immediately disabled and the on-going one will be
normally terminated, setting the appropriate status flags.
Note that CONCDMOB register remain unchanged.
⢠Bit 6 â OVRQ: Overload Frame Request
This is not an auto resettable bit.
â 0 - no request.
â 1 - overload frame request: send an overload frame after the next received
frame.
The overload frame can be traced observing OVFG in CANGSTA register (c.f. Figure
119 on page 237).
⢠Bit 5 â TTC: Time Trigger Communication
â 0 - no TTC.
â 1- TTC mode.
⢠Bit 4 â SYNTTC: Synchronization of TTC
This bit is only used in TTC mode.
â 0 - the TTC timer is caught on SOF.
â 1 - the TTC timer is caught on the last bit of the EOF.
⢠Bit 3 â LISTEN: Listening Mode
â 0 - no listening mode.
â 1 - listening mode.
⢠Bit 2 â TEST: Test Mode
â 0 - no test mode
â 1 - test mode: intend for factory testing and not for customer use.
Note: CAN may malfunction if this bit is set.
⢠Bit 1 â ENA/STB: Enable / Standby Mode
Because this bit is a command and is not immediately effective, the ENFG bit in CANG-
STA register gives the true state of the chosen mode.
â 0 - standby mode: the on-going communication is normally terminated and the
CAN channel is frozen (the CONMOB bits of every MOb do not change). The
transmitter constantly provides a recessive level. In this mode, the receiver is
not enabled but all the registers and mailbox remain accessible from CPU.
â 1 - enable mode: the CAN channel enters in enable mode once 11 recessive
bits has been read.
246 AT90CAN128
4250EâCANâ12/04
|
▷ |