Can someone point me to a description of the icons and their meanings ....In particular I have ? and * over some of my project folders (you practically need magnifying glasses to see them)....I have no clue as to what they mean??
Icons over code composer projects?
MSP430G2744: Timer TACCR
Hi Team,
My customer has a question as below.
- Regarding timer A3, they plan on using clock at 300us, and the interrupt they are using is TACCR2 CCIFG. Does the timing chart in Fig. 12-3 TACCR0 CCIFG timing apply to TACCR2 CCIF as well? (As in, if TACCR0 were replaced by TACCR2, does the timing chart still apply?) If not, can you provide a timing chart for TACCR2 CCIFG?
- To calculate what value to set TACCRx, is the following correct? If not, can you provide the correct equation?
- TACCRx + 1 = User's desired period [sec] / timer clock freqeuncy [Hz]
Best regards,
Mari Tsunoda
MSP430F5438A: Not working Uart! I referred to an example.
Other Parts Discussed in Thread: MSP-TS430PZ5X100
Hello, Texas Team or Experts
My MCU have to communicate RS232 with MSP430F5438A.
So, I found the example of uart loopback in CCS Resource Explorer and then I downloaded firmware.
But, there are problems. Terminal didn't work using Hercules or CCS.
Also if I set transmitData = 'a', I hook up TX(TX-GND) or RX(RX-GND) with an oscilloscope, but the data value didn't check.
where is the problem?
I designed MCU and RS232(with usb)
Board : MSP-TS430PZ5x100 (MSP430F5438A)
Code :
//******************************************************************************
//! This example shows how to configure the UART module as the loopback to
//! verify that received data is sent data.
//!
//! MSP430F5438A
//! -----------------
//! RST -| P3.4/UCA0TXD|----|
//! | | |
//! | | |
//! | P3.5/UCA0RXD|----|
//! | |
//!
//!
//! This example uses the following peripherals and I/O signals. You must
//! review these and change as needed for your own board:
//! - UART peripheral
//! - GPIO Port peripheral (for UART pins)
//! - UCA0TXD
//! - UCA0RXD
//!
//! This example uses the following interrupt handlers. To use this example
//! in your own application you must add these interrupt handlers to your
//! vector table.
//! - USCI_A0_VECTOR.
//******************************************************************************
#include "driverlib.h"
//*****************************************************************************
//
//Select Baud rate
//
//*****************************************************************************
#define BAUD_RATE 9600
//*****************************************************************************
//
//Initialize received data
//
//*****************************************************************************
uint8_t receivedData = 0x00;
//*****************************************************************************
//
//Initialize transmit data
//
//*****************************************************************************
uint8_t transmitData = 0x00;
uint8_t check = 0;
void main (void)
{
//Stop WDT
WDT_A_hold(WDT_A_BASE);
//P3.4,5 = USCI_A0 TXD/RXD
GPIO_setAsPeripheralModuleFunctionInputPin(GPIO_PORT_P3, GPIO_PIN4 + GPIO_PIN5);
//Baudrate = 9600, clock freq = 1.048MHz
//UCBRx = 109, UCBRFx = 0, UCBRSx = 2, UCOS16 = 0
USCI_A_UART_initParam param = {0};
param.selectClockSource = USCI_A_UART_CLOCKSOURCE_SMCLK;
param.clockPrescalar = 109;
param.firstModReg = 0;
param.secondModReg = 2;
param.parity = USCI_A_UART_NO_PARITY;
param.msborLsbFirst = USCI_A_UART_LSB_FIRST;
param.numberofStopBits = USCI_A_UART_ONE_STOP_BIT;
param.uartMode = USCI_A_UART_MODE;
param.overSampling = USCI_A_UART_LOW_FREQUENCY_BAUDRATE_GENERATION;
if (STATUS_FAIL == USCI_A_UART_init(USCI_A0_BASE, ¶m)){
return;
}
//Enable UART module for operation
USCI_A_UART_enable(USCI_A0_BASE);
//Enable Receive Interrupt
USCI_A_UART_clearInterrupt(USCI_A0_BASE, USCI_A_UART_RECEIVE_INTERRUPT);
USCI_A_UART_enableInterrupt(USCI_A0_BASE, USCI_A_UART_RECEIVE_INTERRUPT);
__bis_SR_register(GIE);
while (1)
{
transmitData = transmitData+1; // Increment TX data
// Load data onto buffer
USCI_A_UART_transmitData(USCI_A0_BASE,
transmitData);
while(check != 1);
check = 0;
}
}
//******************************************************************************
//
//This is the USCI_A0 interrupt vector service routine.
//
//******************************************************************************
#pragma vector=USCI_A0_VECTOR
__interrupt void USCI_A0_ISR (void)
{
switch (__even_in_range(UCA0IV,4)){
//Vector 2 - RXIFG
case 2:
receivedData = USCI_A_UART_receiveData(USCI_A0_BASE);
if(!(receivedData == transmitData)) // Check value
{
while(1);
}
check =1;
break;
default: break;
}
}
or address : https://dev.ti.com/tirex/explore/node?node=AHTWzeTf6uwMxTvmqYEvag__IOGqZri__LATEST //
Can Someone help me?
MSP430G2955: GRACE Standalone: link to download?
Yes, I know GRACE is ancient and hasn't been supported for year now, but its still a damn helpful tool - especially for doing register-level code verification!
Can anyone point me to a link to download the GRACE Standalone executable?
(all the TI links I've found result in 404)
MSP430F6736A: Increment in amplitude
Hi Team,
A customer has MSP430F6736A and is using SD24_B to acquire a sine signal and SMCLK is used as the clock source for the SD24. When SMCLK frequency is 1.1MHz ADC is working properly but when SMCLK frequency is changed to 24MHz an increment is observed in the amplitude of the acquired sample.
I have attached the captures here:
e2e.ti.com/.../SD24_5F00_Samples.xlsx
I hope you can help.
Thanks in advance,
Regards,
Marvin
MSP430FR4133: Is there a minimal SBW implementation in C to flash MCP430 serie from other MCU?
Everything is in the title, i use an MSP430 in a design where i routed the SBW interface to the main MCU, in the perspective of remote firmware upgrade.
I would like to implement this now and i wonder if there is some existing implementations, the smaller the better, all i need is to flash the firmware, no fancy option bits to set or anything.
I can imagine there is probably a 15K lines implementation of the MSP FET or something in some DLL, but i am looking for something more reasonnable, i have done that in the past for differnt MCU / SOC (ST, Cypress, Atmel) and it can be done in few thousand laines or less with SWD.
Thank you.
MSP430F5529: USBMSC updating mediainfo
Hello,
I would like to ask some help in how to do mediainfo update.
I am just a begginner to USB programming. I register CDC and MSC endpoints. Using CDC through FatFs updating a file. At first read Linux reads correctly the file content, but I concluded that the API should be informed about a file has been changed later.
I would like to ask some help, how to inform the the system about the change.
Thank you in advance,
LAszlo
MSP430F5438A: ASM labels in C code unpredictable behavior?
Hi,
To make test automation, C code requires the ASM labels needs to added in code as shown attached screen shot.
But, TI document - SLAU132Y for MSP430, Section 6.6.5 has below statement
The Label usage is in below code:
The Label is added as shown above and working as expected and not seeing any issues in testing.
This code is being used for machine critical application, So could you please confirm, the label being used in C code as shown in above screen shot will result in unpredictable controller behavior?
MSP430FR2355: i2c clock stretching...how to use this???
I am communicating with a SenseAir CO2 sensor at 100kHz on I2C. I am having difficulty reading back registers after I write them....I typically read back 00 or FF.....This readback seems to be associated with the R/W register set as I can get back data from the read only block of registers.....The component is acking and nacking as expected even on the data. I tried slowing the clock down to 50khz and 25khz but still have the same issue....
I am thinking it may be something with clock stretching and am looking to try it but the user guide is quite sparse on how to do this....Can anyone tell me how to use the UCSCLLOW bit?
Thanks
Steve
MSP430FR2153: Using higher frequency than 32.768 kHz in LF mode (FR2xxx)
Hi experts,
Is it possible to connect a 38.4kHz crystal to XT1 with MSP430FR2153 (FR2xx series Clock System)?
My customer wants to do UART communication, but the device to connect to is fixed at 4800 bps. We believe that if we input a 38.4kHz crystal to ACLK=BCLK, we can theoretically communicate with an error rate of TX=±0%, RX=±6.25%. (This is when the accuracy of the crystal is ignored.)
I understand from the user's guide "NOTE: XT1 in HF mode configuration" that the input cannot exceed 40 kHz.
Best regards,
O.H
MSP-EXP430FR5739: Current draw too high - are there benchmark currents for example projects?
Other Parts Discussed in Thread: ENERGYTRACE,
Hi,
I have been writing code for a new product using the part above. Functionally, the device is fine, but my code, which spends almost all of its time in a LPM4, is causing current draw of 2.4mA. This far too high, and can't be right. I've tried many example projects and they all take a large current like this.
I have also been unable to use EnergyTrace due to an error message "error communicating with FET USB1". All of the jumpers on the board are present, but the current doesn't change much whether they are there or not.
Do you have any "expected" currents for the particular example projects available for this board (so that I can test them) or could you test them for me please?
I am using a Keysight 34450A on 100mA range across the VCC jumper.
Can you tell me why the EnergyTrace doesn't work for me.. I've tried changing settings but nothing seems to work?
thank you
David
MSP430F5659: Reading 3 sensor outputs at the same time
Hi Team,
Hope you are well!
I have the following requirements needed
- Some alternative to multiplexed ADC (need to communicate with at least 3 sensors with output for ADC)
- Low power usage
- At least 64KB flash and 16KB SRAM
- With standard peripherals such as: UART, I2C (one other sensor is I2C), and DAC (this will be connected to the feedback node of buck converter circuit in order to control the output voltage)
I was looking at the MSP430F5659IPZR as an option. For this MCU, it looks like the ADC channels are also multiplexed? Is this correct?
I’m not sure whether this would be fast enough for what we need. Say I need to read 3 sensor outputs at the same time – would this be possible?
Any recommendations are appreciated!
Thanks,
Connor
MSP430FR5872: Making a new board using this chip, want to make sure I have it right before production
The chip will essentially act as a UART to I2C buffer. It's designed to be as low power as possible, with a supply of 3.3V. Any improvements, tips, or corrections, please let me know!
EVM430-F6779: EVM430-F6779 MCU MSP430F67791A
Other Parts Discussed in Thread: MSP430F67791A,
Dear Sir,
Recently we have purchased EVM430-F6779 using MCU Part No. MSP430F67791A. When I generate a code using EMDC software and compile using CCS, the LCD display is not work. I observe that frequently some LED is blinking and OFF again. How can I enable the LCD. Also I can't find the factory loaded example code using MSP430F67791A.Please help.
Regards,
Biswajit
MSP430FR2355: Pointer to Union --- keep getting Error 'Must have Integral Type' when trying to shift
I have a union and a pointer both of type t_rtnVals. Within a State machine I make assignments to the union and then wish to push them out the UART .
Here you can see a couple of the assignments....val is volatile uint8_t and pFram is volatile uint16_t.
My issue is in the TX ISR I would like to shift each nibble out as a character for displaying so I am doing the following: I keep getting the following error:
Description Resource Path Location Type
#31 expression must have integral type
Can someone please tell me how to solve this as I must shift to transport each nibble....Sometimes I will be sending block of 4 nibbles other times it will be in blocks of 2 nibbles
if (charToSend) { applicationUART.pSysCommsA->UCAxTXBUF = (*(&prtnVals) >> (4*charToSend - 4) & 0x0F); charToSend--; }
prtnVals->i2cValues = val[byteSentCntr]; for (no_ConfPts = 0; no_ConfPts < REGISTER_DUMP; no_ConfPts++) { prtnVals->memRecall = *(pFRAM + no_ConfPts); applicationUART.pSysCommsA->UCAxIE |= UCTXIE; }
union rtnVals { uint16_t moisture; //a/d moisture data uint16_t memRecall; //msp configuration data uint8_t i2cValues; //C02 sensor data uint16_t temperature; //a/d temp data }; union rtnVals t_rtnVals = {0}; union rtnVals *prtnVals = &t_rtnVals;
MSP430F5659: Driverlib example for CRC-16 gives wrong result?
When I run the driverlib example crc_ex1_buildSignature.c the result returned using the following code the result is 0xA1A3. This doesn't match with any online CRC check using the same polynominal 0x1021. The result from those websites are: 0x31C3. What am I missing here?
uint16_t crcSeed = 0x0000;
uint16_t data[] = {0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,0x0008,0x0009};\\
//Set the CRC seed
CRC_setSeed(CRC_BASE,
crcSeed);
for (i = 0; i < 9; i++)
{
//Add all of the values into the CRC signature
CRC_set16BitData(CRC_BASE,
data[i]);
}
//Save the current CRC signature checksum to be compared for later
crcResult = CRC_getResult(CRC_BASE);
MSP430AFE253: Launchpad available for MSP430AFExxx series??
Is there a launchpad available for the MSP430AFE series? I need to do some research with the MSP430AFE253 or similar part for 220V AC voltage measurements.
MSP430G2333: code RTOS on msp430G2333
Hi Team
I want to code MSP430G2333 in RTOS. Because I need to I2C communication & some other button interrupt together. Can you suggest a way to do RTOS coding for MSP430G2333.
regards
EVM430-FR6047: value of Number of pulses
I have a question about the value of Number of pulses.
When we compared the measurement results when this value was set to 10 and when it was set to 20, we found that at a high flow rate of 4000 l/h, the 10 setting resulted in a larger variation.
Is this due to the fact that there are fewer values to correlate with the ADC?
Is there a recommended value for the number of pulses for accurate measurement? Please let me know if there is a minimum value that should be set higher than this, etc.
MSP430FR5949: The reason when Security violation(BOR) is detected
Helo experts,
Could you tell me the the detail of reason when Security violation (BOR) is detected?
I can't find the detail why Security violation (BOR) is occured from datasheet and user guide.
Thanks and best regards,
Ryo Akashi