s908az32ag2cfue Freescale Semiconductor, Inc, s908az32ag2cfue Datasheet - Page 287

no-image

s908az32ag2cfue

Manufacturer Part Number
s908az32ag2cfue
Description
M68hc08 Microcontrollers 8-bit Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet
24.13.5 MSCAN08 Receiver Flag Register (CRFLG)
All bits of this register are read and clear only. A flag can be cleared by writing a 1 to the corresponding
bit position. A flag can be cleared only when the condition which caused the setting is valid no more.
Writing a 0 has no effect on the flag setting. Every flag has an associated interrupt enable flag in the
CRIER register. A hard or soft reset will clear the register.
WUPIF — Wakeup Interrupt Flag
RWRNIF — Receiver Warning Interrupt Flag
TWRNIF — Transmitter Warning Interrupt Flag
RERRIF — Receiver Error Passive Interrupt Flag
1. Condition to set the flag: RWRNIF = (96 ð REC) & RERRIF & TERRIF & BOFFIF
2. Condition to set the flag: TWRNIF = (96 ð TEC) & RERRIF & TERRIF & BOFFIF
3. Condition to set the flag: RERRIF = (127 ð REC ð 255) & BOFFIF
Freescale Semiconductor
If the MSCAN08 detects bus activity while in Sleep mode, it sets the WUPIF flag. If not masked, a
wake-up interrupt is pending while this flag is set.
This flag is set when the MSCAN08 goes into warning status due to the receive error counter (REC)
exceeding 96 and neither one of the Error Interrupt flags or the Bus-off Interrupt flag is set
masked, an error interrupt is pending while this flag is set.
This flag is set when the MSCAN08 goes into warning status due to the transmit error counter (TEC)
exceeding 96 and neither one of the error interrupt flags or the bus-off interrupt flag is set
masked, an error interrupt is pending while this flag is set.
This flag is set when the MSCAN08 goes into error passive status due to the receive error counter
exceeding 127 and the bus-off interrupt flag is not set
while this flag is set.
1 = MSCAN08 has detected activity on the bus and requested wake-up.
0 = No wake-up interrupt has occurred.
1 = MSCAN08 has gone into receiver warning status.
0 = No receiver warning status has been reached.
1 = MSCAN08 has gone into transmitter warning status.
0 = No transmitter warning status has been reached.
1 = MSCAN08 has gone into receiver error passive status.
0 = No receiver error passive status has been reached.
Address:
Reset:
Read:
Write:
WUPIF
$0504
Bit 7
0
Figure 24-19. Receiver Flag Register (CRFLG)
RWRNIF
6
0
MC68HC908AZ32A Data Sheet, Rev. 2
TWRNIF
5
0
RERRIF
4
0
(3)
TERRIF
. If not masked, an Error interrupt is pending
3
0
Programmer’s Model of Control Registers
BOFFIF
2
0
OVRIF
1
0
Bit 0
RXF
0
(2)
(1)
. If not
. If not
287

Related parts for s908az32ag2cfue