Hello,
i am trying to program MSP430F5528 with ADS1248 via SPI.
Can someone post me some example codes for the CCSv 5.3 compiler?
Best regards,
Wayne
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.
Hello,
i am trying to program MSP430F5528 with ADS1248 via SPI.
Can someone post me some example codes for the CCSv 5.3 compiler?
Best regards,
Wayne
Wayne,
For this kind of questions, i would suggest you to either look in E2E, the TI processors wiki, or you can find the link to the MSP430 app note collection here:
just use the keyword "ADS" for the app note search and you can find some app notes - not exactly for ADS1248, but at least can be as your reference.
Hi Leo Hendrawan,
Thanks for your replying.
In my case, the hardware design almost finished. Right now I need some software program help--example code of ADS1248..
Regards,
Wayne
Dear,
I am working on MSP430F6736 and I am using UART in AUTO BAUDRATE mode and this is my clock initialization function:
void Clock_Init()
{
//Set DCO FLL reference = REFO
UCS_clockSignalInit(
UCS_BASE,
UCS_FLLREF,
UCS_REFOCLK_SELECT,
UCS_CLOCK_DIVIDER_1
);
//Set Ratio and Desired MCLK Frequency and initialize DCO
UCS_initFLLSettle(
UCS_BASE,
12000,
366
);
}
And my UART initialization is like below :
UCA1ABCTL |= UCABDEN;
Uart_Init(UARTA1,9600); // Initialize UART Modules
And Uart_Init function is like below :
//P1.4,5 = USCI_A1 TXD/RXD
GPIO_setAsPeripheralModuleFunctionOutputPin(
GPIO_PORT_P1,
GPIO_PIN4
);
GPIO_setAsPeripheralModuleFunctionInputPin(
GPIO_PORT_P1,
GPIO_PIN5
);
//Initialize USCI UART module
if ( STATUS_FAIL == EUSCI_UART_init(EUSCI_A1_BASE,
EUSCI_UART_CLOCKSOURCE_SMCLK,
UCS_getSMCLK(UCS_BASE),
BAUD_RATE,
EUSCI_UART_NO_PARITY,
EUSCI_UART_LSB_FIRST,
EUSCI_UART_ONE_STOP_BIT,
EUSCI_UART_MODE,
EUSCI_UART_LOW_FREQUENCY_BAUDRATE_GENERATION ))
{
return;
}
//Enable UART module for operation
EUSCI_UART_enable(EUSCI_A1_BASE);
But I am not getting perfect output if i change baudrate of hyper terminal.
And my program is of ECHO test using interrupt.
Please Reply on this coz i am stuck here badly.
Thanx in advance.
**Attention** This is a public forum