Intel 8XC196NT 87C196CB SUPPLEMENT, 21. CAN Message Object x Control 0 CANMSGxCON0 Register

Models: 8XC196NT 87C196CB

1 155
Download 155 pages 42.65 Kb
Page 95
Image 95
Figure 7-21. CAN Message Object x Control 0 (CAN_MSGxCON0) Register

87C196CB SUPPLEMENT

.

CAN_MSGxCON0

Address:

1Ex0H (x=1–F)

(n = 1–15)

Reset State:

Unchanged

Program the CAN message object x control 0 register (CAN_MSGxCON0) to indicate whether the message object is ready to transmit and to control whether a successful transmission or reception generates an interrupt. The most-significant bit-pair indicates whether an interrupt is pending.

This register consists of four bit-pairs — the most-significant bit of each pair is in true form and the least-significant bit is in complement form. This format allows software to set or clear any bit with a single write operation, without affecting the remaining bits.

7

MSGVAL

MSGVAL

TXIE

TXIE

 

 

 

 

0

RXIE

RXIE

INT_PND

INT_PND

 

 

 

 

Bit

Bit

Function

Number

Mnemonic

 

 

 

 

7:6

MSGVAL

Message Object Valid

5:4

TXIE

Transmit Interrupt Enable

3:2

RXIE

Receive Interrupt Enable

1:0

INT_PND

Interrupt Pending

 

 

This bit-pair indicates that the CAN peripheral has initiated a transmit (TX)

 

 

or receive (RX) interrupt. Software must clear this bit when it services the

 

 

interrupt.

 

 

01 = no interrupt

 

 

10 = an interrupt was generated

 

 

 

Figure 7-21. CAN Message Object x Control 0 (CAN_MSGxCON0) Register

7-34

Page 95
Image 95
Intel 8XC196NT user manual 87C196CB SUPPLEMENT, 21. CAN Message Object x Control 0 CANMSGxCON0 Register