Hi,
I'm using MSP430FG4618 and I want to communicate with RFID through SPI. If I'm using "Debugger with Step Over" program is okay but with "Resume" program does not work! Any Suggestion?
Thx
Admir
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I'm using MSP430FG4618 and I want to communicate with RFID through SPI. If I'm using "Debugger with Step Over" program is okay but with "Resume" program does not work! Any Suggestion?
Thx
Admir
Hi,
I have solved the problem. In the picture are CS (chip select - yellow) and SCK (takt quele - blue).
For example:
Code
//ECHO --->
P4OUT &= ~BIT6; //CS
while (!(IFG2 & UTXIFG1));
U1TXBUF = 0x00;
while (!(IFG2 & UTXIFG1));
U1TXBUF = 0x55;
P4OUT |= BIT6; // CS
/*******************/
and effect is in the picture. Problem was with CS! CS comes to early on high! I do not know why.
Solution is:
P6OUT &= ~BIT0; //CS
while (!(IFG2 & UTXIFG1));
U1TXBUF = 0x00;
while (!(IFG2 & UTXIFG1));
U1TXBUF = 0x55;
__delay_cycles (75000);
P6OUT |= BIT0; // CS
and with "__delay_cycles()" before "P6OUT |=BIT0" the SPI is OK.
Regards,
Admir
**Attention** This is a public forum