Jump to content
43oh

Oves

Members
  • Content Count

    3
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Oves reacted to roadrunner84 in msp430g2452: how to send 16 bit at once?   
    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); }
  2. Like
    Oves reacted to roadrunner84 in How to make ez430-Chronos-868 working on 915mhz?   
    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.
×
×
  • Create New...