Quickest solution, use this for matrixSet
void matrixSet(const unsigned char address, const unsigned short value)
{
SELECT(PIN_CS1);
//// Send address
USISRL = address;
USICNT = 8;
// wait for an USICNT to decrement to 0
while (!(USICTL1 & USIIFG));
//// Send most significant byte
USISRL = (unsigned char)(value >> 8);
USICNT = 8;
// wait for an USICNT to decrement to 0
while (!(USICTL1 & USIIFG));
//// Send least significant byte
USISRL = (unsigned char)(value & 0xFF);
USICNT = 8;
// wait for an USICNT to decrement to 0
while (!(USICTL1 & USIIFG));
DESELECT(PIN_CS1);
}
or better
void matrixSet(const unsigned char address, const unsigned short value)
{
SELECT(PIN_CS1);
//// Send address
USISRL = address;
USICNT = 8;
// wait for an USICNT to decrement to 0
while (!(USICTL1 & USIIFG));
//// Send word
USISR = value;
USICNT = USI16B | 16;
// wait for an USICNT to decrement to 0
while (!(USICTL1 & USIIFG));
DESELECT(PIN_CS1);
}
Yes and no. You can change the CC's settings to operate on the 915MHz band, but you'd need to retune your antenna circuit, which would require hardware modifications.