Other Parts Discussed in Thread: TMS37157, MSP430F2274
Hi,
In the one of the application note "Using the SPI library for TMS37157 "( http://www.ti.com/lit/an/swra272/swra272.pdf ) , it says it is possible to read, write and trim the TMS37157 from the MSP430F2274 microcontroller using SPI.
In order to trim the LC circuit, the application note says the function
SPI_TRIM_W_PROG (char data)
can be used. In this function what is the char data? How can i find what value for char data that should be passed to the function?
I am not able to trim my prototype design using the LF interface. The external reader I am using is the one that came with the EZ430 TMS37157 (Palfi) kit. Is there any other pages i need to initialize to get the design communicate with the external reader?
I am using IAR embedded work bench (kickstart version) for debugging. In the debugging mode, how can i read the page information?
I am using the following function for that
SPI_Read_UserPage (unsigned char ucPage, unsigned char *ucData)
I am not sure where I can see the information in the page in IAR when debugging.
Any help for this will be greatly appreciated.
Thanks,
Anand
This is the code I am using to read the page
#include "msp430x22x4.h"
#include "PaLFI_Transponder.h"
void main (void)
{
unsigned char ucWDT_Count;
unsigned char ucPageData[5] = {0};
MSP430_SPI_Init();
SPI_Read_UserPage(Page9,ucPageData);
SPI_Power_Down();
}