I need to use 2 spi with INT pin (for CAN module MCP2515 and an other)
But if I do this, I can't use RXD1 and TXD1 because it's INT0 and INT1. But I use all other serial PIN. So... My question is I can use an other pin for INT1 and INT0 ?
Code :
static const byte MCP251x_CS = 10; // CS input of MCP2515
static const byte MCP251x_INT = 3; // INT output of MCP2515
ACAN2515 can (MCP251x_CS, SPI1, MCP251x_INT); // ACAN2515 Driver object
A pin change interrupt (PCINT) is handled differently than INT0 or INT1.
Look on the web for "arduino pin change interrupt library" and check whether the ATmega324 is supported (I doubt it is). If not, you will have to write your own interrupt handler, but you could use one of the existing libraries or tutorials as a guide.