beautypg.com

COMMELL MPX-2515 User Manual

Page 34

background image

Commell MPX-2515 User’s Guide Rev 0100

Taiwan Commate Computer Inc.

34

#define MCP_ABORT_TXB2 0X58 /* sub-command code */
#define EP2 2 /* Endpoint 2 */
#define EP3 3 /* Endpoint 3 */

OFFSET

BULK OUT (EP2)

BULK IN (EP1)

SIZEOF_DATA

0X04

0X01

COMMAND

0X23

0X23

ERROR

0X00

Error code

DATA_0

0X58

Abort status code

DATA_1

Reserved

checksum

DATA_2

0X50

DATA_3

0X08

DATA_4

checksum

DATA_5

1.9 CCP_CAN_BIT_MODIFY Service

1.9.1 Introduction to Bit Modify

The Bit Modify instruction provides a means for setting or clearing individual bits
in specific status and control registers. This command is not for all registers. Please
refer to the MCP2515 data sheet to determine which registers allow the use of this
command.

Note:

Executing the Bit Modify command on registers that are not bit-modifiable
will force the mask to FFh. This will allow byte writes to the registers, not bit
modify.

The following figure shows the Bit Modify operations.