Jestin_cubetech
Advanced Member level 1
- Joined
- Jun 24, 2012
- Messages
- 499
- Helped
- 76
- Reputation
- 152
- Reaction score
- 73
- Trophy points
- 1,328
- Activity points
- 3,697
PICC MCP header file mcp251x.c
------------------------------------------
C:\Program Files\PICC\Drivers\can-mcp251x.c
it use SPI Protocol not i2c.
void mcp2510_command(int command) {
int i;
output_low(EXT_CAN_CS);
for (i=0;i<8;i++) {
output_bit(EXT_CAN_SI, shift_left(&command,1,0));
output_high(EXT_CAN_SCK);
output_low(EXT_CAN_SCK);
}
output_high(EXT_CAN_CS);
}
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?