English
Language : 

K60P100M100SF2RM Datasheet, PDF (1372/1809 Pages) Freescale Semiconductor, Inc – K60 Sub-Family Reference Manual
Functional Description
Inactivation takes precedence over locking. If the CPU inactivates a locked Rx MB, then
its lock status is negated and the MB is marked as invalid for the current matching round.
Any pending message on the SMB will not be transferred anymore to the MB. An MB is
unlocked when the CPU reads the Free Running Timer Register (see Section "Free
Running Timer Register (TIMER)"), or the C/S word of another MB.
Lock and unlock mechanisms have the same functionality in both Normal and Freeze
modes.
An unlock during Normal or Freeze mode results in the move-in of the pending message.
However, the move-in is postponed if an unlock occurs during any of the low power
modes (see in Section "Modes of Operation" specific information on Module Disable,
Doze or Stop modes) and it will take place only when the module resumes to Normal or
Freeze modes.
48.4.7 Rx FIFO
The receive-only FIFO is enabled by asserting the RFEN bit in the MCR. The reset value
of this bit is zero to maintain software backward compatibility with previous versions of
the module that did not have the FIFO feature. The FIFO is 6-message deep, therefore
when the FIFO is enabled, the memory region occupied by the first 6 Message Buffers is
reserved for use of the FIFO engine (see Rx FIFO Structure). The CPU can read the
received messages sequentially, in the order they were received, by repeatedly reading a
Message Buffer structure at the output of the FIFO.
The IFLAG[BUF5I] (Frames available in Rx FIFO) is asserted when there is at least one
frame available to be read from the FIFO. An interrupt is generated if it is enabled by the
corresponding mask bit. Upon receiving the interrupt, the CPU can read the message
(accessing the output of the FIFO as a Message Buffer) and the RXFIR register and then
clear the interrupt. If there are more messages in the FIFO the act of clearing the interrupt
updates the output of the FIFO with the next message and update the RXFIR with the
attributes of that message, reissuing the interrupt to the CPU. Otherwise, the flag remains
negated. The output of the FIFO is only valid whilst the IFLAG[BUF5I] is asserted.
The IFLAG[BUF6I] (Rx FIFO Warning) is asserted when the number of unread
messages within the Rx FIFO is increased to 5 from 4 due to the reception of a new one,
meaning that the Rx FIFO is almost full. The flag remains asserted until the CPU clears
it.
The IFLAG[BUF7I] (Rx FIFO Overflow) is asserted when an incoming message was lost
because the Rx FIFO is full. Note that the flag will not be asserted when the Rx FIFO is
full and the message was captured by a Mailbox. The flag remains asserted until the CPU
clears it.
1372
K60 Sub-Family Reference Manual, Rev. 6, Nov 2011
Freescale Semiconductor, Inc.