sc9s12hy64j0vllr Freescale Semiconductor, Inc, sc9s12hy64j0vllr Datasheet - Page 326

no-image

sc9s12hy64j0vllr

Manufacturer Part Number
sc9s12hy64j0vllr
Description
S12 Microcontrollers Mcu 16-bit Hcs12 Cisc 32kb Flash 5v Tray
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Freescale’s Scalable Controller Area Network (S12MSCANV3)
The following gives a short programming example of the usage of the CANTBSEL register:
To get the next available transmit buffer, application software must read the CANTFLG register and write
this value back into the CANTBSEL register. In this example Tx buffers TX1 and TX2 are available. The
value read from CANTFLG is therefore 0b0000_0110. When writing this value back to CANTBSEL, the
Tx buffer TX1 is selected in the CANTXFG because the lowest numbered bit set to 1 is at bit position 1.
Reading back this value out of CANTBSEL results in 0b0000_0010, because only the lowest numbered
bit position set to 1 is presented. This mechanism eases the application software the selection of the next
available Tx buffer.
If all transmit message buffers are deselected, no accesses are allowed to the CANTXFG registers.
9.3.2.12
The CANIDAC register is used for identifier acceptance control as described below.
1. Read: Anytime
326
Module Base + 0x000B
Write: Anytime in initialization mode (INITRQ = 1 and INITAK = 1), except bits IDHITx, which are read-only
TX[2:0]
Field
2-0
Reset:
LDAA CANTFLG; value read is 0b0000_0110
STAA CANTBSEL; value written is 0b0000_0110
LDAA CANTBSEL; value read is 0b0000_0010
W
R
Transmit Buffer Select — The lowest numbered bit places the respective transmit buffer in the CANTXFG
register space (e.g., TX1 = 1 and TX0 = 1 selects transmit buffer TX0; TX1 = 1 and TX0 = 0 selects transmit
buffer TX1). Read and write accesses to the selected transmit buffer will be blocked, if the corresponding TXEx
bit is cleared and the buffer is scheduled for transmission (see
Register
0 The associated message buffer is deselected
1 The associated message buffer is selected, if lowest numbered bit
MSCAN Identifier Acceptance Control Register (CANIDAC)
The CANTBSEL register is held in the reset state when the initialization
mode is active (INITRQ = 1 and INITAK=1). This register is writable when
not in initialization mode (INITRQ = 0 and INITAK = 0).
0
0
7
Figure 9-15. MSCAN Identifier Acceptance Control Register (CANIDAC)
(CANTFLG)”).
= Unimplemented
Table 9-17. CANTBSEL Register Field Descriptions
6
0
0
MC9S12HY/HA-Family Reference Manual, Rev. 1.04
IDAM1
0
5
NOTE
IDAM0
4
0
Description
0
0
3
Section 9.3.2.7, “MSCAN Transmitter Flag
IDHIT2
2
0
Access: User read/write
Freescale Semiconductor
IDHIT1
0
1
IDHIT0
0
0
(1)

Related parts for sc9s12hy64j0vllr