MSP430-HC05 There is nothing at Serial Monitor
I'm trying to send AT commands to HC05 for get other device names and rssi values.I'm using MSP-EXP430G2ET and HC05 module, pin connections are:MSP HC05RX(P1.1) TXTX(P1.2) RXGND GND3.3V VCCEN and STATE...
View Articlewhile (!(IFG2 & UCA0RXIFG)); Never receives data
I am currently using Code Composer studio version 10. I am working with the following code for SPI implementation. I can't get the receiver code to work atm. I would like assistance to fix the problem...
View ArticleUsing MCU to emulate vsync only in vga signal
So I'm making a breadboard video card that I will eventually be using with a 6502 based computer that I'm making. The way I want to go about this is to have a hsync timing circuit like normal but have...
View ArticleDo padding bits need to be preserved?
The MSP430X architecture is an extension of the 16 bit MSP430 architecture to a 20 bit address space. This is done by expanding the processor's registers to 20 bit, keeping the least addressable unit...
View ArticleMust restart to see new program run on MSP430
I can't seem to find an answer to my question. I'm programming MSP320 via JTAG using MSP-FET. When I upload new code, I can see Mode LED blink, indicating there's a data transfer, then both Power and...
View ArticleWhy DRDY do not go low to indicate that the conversion is readyt in ADS1258?
MCU: MSP430F5438AADC: ADS1258COM: SPII want to measure a voltage on a channel coming from the ADC (ADS1258), I am in fixed_Mode channel and in AIN2 positive AIN3 negatif, enabling status byte and i...
View ArticleSystem initialization and clock configuration of MSP430F427A MCU interfaced...
When I debug the code, the LCD refreshes rapidly. I am not confident with the correct system clock configuration to use. Here's the connection for the external crystal:SchematicThe specs of my custom...
View Articlewhat does mean by __even_in_range(UCA0IV,0x08)
I found this part from the example code for UART for MSP430FR57xx from TI.I don't understand what __even_in_range(UCA0IV,0x08) does mean?#pragma vector=USCI_A0_VECTOR__interrupt void USCI_A0_ISR(void){...
View ArticleGuide for multiple function for 1 button of MSP430F427 microcontroller
I have 2 buttons, and each button has multiple function. They are pulled-up externally. I am using external oscillator 32kHz.Button A (P1.2)functions of button A:a press on Button A would make the...
View Articlehow to make sin interpolation of values for transmission to the dac register?
I use the MSP430FR2355 microcontroller and the display connected to it. I create 2 arrays with time and voltage values, a graph is plotted on the display based on these values. After that, I pass these...
View ArticleMSP430G2553 recives wrong value from the MCP3464 ADC converter (SPI)
I have soldert the MCP3464 on a PCB break board and conect it with the MSP430G2553.I then wrote a test code to see if i can write and read on the internal registers of the MCP3464. But when i try to...
View ArticleBCD math routines instead of using division and modulo (using MSP430F427 MCU)
I am using MSP430F427 MCU, I have this code below to extract, ones digit (d5), tens digit (d4), and hundreds digit (d3). I am expecting a 4-digit value, like 1000+, but have to display only 3-digit...
View ArticleMSP430G2231 reading 16-bit i2c response
I'm writing a program that reads temperatures from a couple TMP117 sensors.4x Adafruit TMP117 sensor boards to be exact, with each having a different ADDR pin configuration to give them different i2c...
View ArticleMSP430 assembly language: variable allocation error
Learning MSP430 Launchpad assembly language in class. The current assignment is to do stepwise multiplication and division (i.e. simulating them with recursive addition and subtraction).I went over how...
View ArticleHow to correctly calculate address spaces?
Below is an example of a question given on my last test in a Computer Engineering course. Anyone mind explaining to me how to get the start/end addresses of each? I have listed the correct answers at...
View ArticleMSP430 inconsistent conversion from int to hex string
I'm having trouble converting some sensor readings to a hex string on my MSP430G2231.I'm using this library: https://github.com/jwr/msp430_usi_i2c To read temperature data from a couple TI...
View ArticleMSP430F5529 with GY-9250 X Y and Z values are all 0
Hi I have my Gyroscope linked up to my MSP430F5529 like so:VCC -> 5VGND -> GNDSCL -> P3.1SDA -> P3.0And here is my Code for the MSP430:#include <msp430.h>#include...
View ArticleMSP430FR5969 not going to sleep
I am using MSP430FR5969 and trying to put it into LMP4 mode. I cannot enter the LPM4 mode with global interrupts enabled. The code I am using is as below. Is there something I am missing or doing...
View ArticleMSP430 and RFM22
i need help!i have a TI msp-exp430g2 launchpad and a RFM22B and i need them to communicate with each other and i have no idea how to. after along time i came up with the code below to send data to the...
View ArticleTX/RX 16 bits data SPI in MSP432 from TI
Hello, I am trying to communicate with the AS5048A encoder that requires a 16-bit SPI communication, but I am trying to establish communication with a MSP432 microcontroller and its SPI TX/RX buffers...
View ArticleMSP432 LaunchPad pushbutton initialization
I am struggling to initialize the LEDs and pushbuttons on my MSP432p401R LaunchPad.The problem:Write a code that reads input of the two pushbuttons S1 & S2 (P1.1 & P1.4) and changes the state...
View ArticleMSP430 Timer Function to Delay an LED
I am trying to write a function for another program that implements one of the timers for the MSP430FR2355 board. I would like to be able to:Turn on my LEDStart a timer that runs in the backgroundTurn...
View ArticleMicrocontrollers with assembly: Digital I/O
Write a program which controls 8 LEDs connected to Port 2 of the MSP430.A momentary switch (push button) should be connected to Port 1.5When the button is pressed, the LEDs should form an 8-bit binary...
View Articlewhy is in my msp430g2553 microcontroller, char 'c' stored as ff63 but not as...
I'm encountering a discrepancy while converting the ASCII value of the character 'c' to hexadecimal. As per my understanding, the ASCII value of 'c' is 99 in decimal and 01100011 in binary. However,...
View ArticleSeven Segment Display Counter
Use the MSP430 seven-segment daughter board (available in the IEEE office) to implement ahexadecimal up-down counter on a single digit of the seven-segment display. The counter shouldstart at 0x0,...
View ArticleDaughter-board multiplier
I am writing a program in TI Code Composer Studio assembly-only empty project using the MSP-EXP430FR6989. The assembly-only empty project uses MSP430 Assembler Code Template for use with TI Code...
View Articlemsp430f5438a reading multiple sensor tmp117
My code worked fine if I only connect msp430 to one sensor. However, when I connect msp430 to 4 sensors. I try to read to only one sensor but it just stop at stop condition.I expected to read sensor...
View ArticleMSP430F5529 on the MSPEXP430F5529LP: UART is not actually transmitting...
#include <msp430.h> static int next = 0;#pragma vector=USCI_A0_VECTORinterrupt void bc_uart_irq(void) { int transmit_flag = UCA0IFG & UCTXIFG; if (transmit_flag && next == 0) { next =...
View ArticleCode works in Debug mode but not in release mode (connected to another source...
#include "hal_LCD.h"#include "gpio.h"#include <stdlib.h>#include <time.h>#include <string.h>// Define the GPIO pins corresponding to each emotion button#define JOY_PIN BIT4 //...
View ArticleHow can I corrrect the following formula so I'll read the acurrate temperature?
Currently I'm working with a MSP-EXP430F5529LP microcontroller and a LM35, because I need to built a thermometer. The results will show on a seven segment, 4 digit display.I'm using the following...
View Article
More Pages to Explore .....