Jump to content

Search the Community

Showing results for tags 'msp430g2553'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks

Calendars

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Location


Interests


Sparkfun


Github

Found 143 results

  1. rdufrene

    MSP430 with CC2530

    I have the MSP430G2553 on the launchpad and a CC2530DK_EM on an EM Adapter BoosterPack (BOOST-CCEMADAPTER). I was wondering what is the best way to code these devices. Should I be using CCStudio or Energia, and where can I find more information about programming these devices so they can use Zigbee communication?
  2. Antscran

    MSP430 voice control over bluetooth

    Hi all, I was playing around with the MSP430G2553 and the UART at the weekend, then remembered I had a cheap HC06 bluetooth module. The result being a basic Android app that you can control your launchpad using voice control, it's far from polished but a bit of fun all the same Project tutorial. C code and Android App http://coder-tronics.com/msp430-voice-control-over-bluetooth/ Video demonstration https://www.youtube.com/watch?v=8Z5ixK30Ddc Cheers, Ant
  3. EDIT: Now on Tindie I have 2 new boards coming soon: GPS BoosterPack and standalone board. They will (most likely) come with pre-soldered and tested GPS module, and possibly as a kit. Standalone board has a socket and all necessary part to use it with MSP430G2553. The price of BP is $22, SA board will cost ~$25 (MCU not included.)
  4. hello friends, I have a big problem with small MSP430G2553, I would like to make a capture samples at P1.2 of the microcontroller, but my code does not work, what am I doing wrong, can someone help me. My code: unsigned int adcValue = 0; int i, BPM[10]; int maior = BPM[0]; int menor = BPM[0]; int contagem =0; /*****************************************************************/ /********* LOCAL FUNCTIONS *********/ /*****************************************************************/ void ADC_ConfigAnalogInput(void){ P1DIR2IN(BIT0); ADC10CTL0 &= ~(ENC); ADC10CTL1 = (INCH_0 + ADC10DIV_0); ADC10CTL0 = (SREF_0 + ADC10SHT_3 + ADC10ON + ADC10IE); ADC10AE0 |= BIT0; ADC10CTL0 |= ENC; } void ADC_ReadAnalogInput(void){ ADC_ConfigAnalogInput(); while (ADC10CTL1 & BUSY); // WAIT IF BUSY ADC10CTL0 |= ADC10SC; __bis_SR_register(CPUOFF + GIE); // LPM0, ADC10_ISR will force exit adcValue = ADC10MEM; } /* * */ unsigned int ADC_GetValue(void) { return adcValue; for (j=0;j<timer; j++){ BPM[j]=adcValue; if(maior < BPM[i]){ maior = BPM[j]; } if(menor > BPM[j]){ menor = BPM[j]; } } if(contagem>59) contagem =0; else contagem++; } /*****************************************************************/ /********* END *********/ /*****************************************************************/
  5. Hello guys, I'm building a Holter ECG, and would like put one symbol on the LCD. Need to inform the user the level of charge that the battery has. And I would put the battery symbol so that information was given. But I am not getting, someone can give me an example of how I can put a symbol in a particular line of lcd
  6. I loved the eZ430-Chronos. On the Internet many projects made ??on the basis of this development tool. But one thing I did not like is that you need a computer to manage their programs. And without a computer Chronos watch can not control anything. So I bought Anaren CC110L RF BoosterPack (868 Mhz). But this kit does not work with Chronos. I looked a lot of information and code on this forum and on the internet. But always something was wrong, I did not want to rewrite the SimpliciTi protocol. And finally... I did emulation of RF USB dongle. The project uses the unmodified Chronos Control Centre and firmware of sportswatch. But blurobin and wireless firmware update does not work. To me, this part is not important. I used code composer studio. And now I have a working SimpliciTI on msp430g2553 with CC110L. And Run many examples which are in SimpliciTi installation directory. Here is a video how it works. p.s. Thanks to @gwdeveloper, with post SimpiciTI Tutorial for CC2500 p.p.s. Project attached CCS SimpliciTI MSP430 CC110L Anaren busterpack.rar
  7. First of all a question, I just have to change the jumpers J3 connections if I use serial communication right? Hello, I've a project where the msp430g2553 makes an access control by password. The launch pad receives a password from a matrix keypad, and turns on a motor to lock the door, or to lock the door if a button is pressed from inside the "room" The project works fine, but sometimes the dc motor doesn't stop working, and it is happening randomly. can somebody help me? sorry for my terrible english the code and a circuit layout: /*lock door control*//* matrix keypad: S
  8. Hai I'm a complete newbie to Energia and MSP430. I would like to get some help on a problem that I'm facing while interfacing MSP430 launchpad using I2C(it's not "a" problem, rather it is "THE" problem). As mentioned above I'm using a MSP430-g2553 launchpad ver1.5 and currently I'm working on a project that requires interfacing two MSP430s with a Raspberry Pi. The protocol that I've chose is I2C due to it's simple hardware requirement and it's support for many devices at the same time. But then till now interfacing two MSP430s has been a faliture. I tried interfacing two MSPs on two launchpads. I've used the programs given as the example under the Wire menu (both the master sender-slave reciever and the master reciever-slave sender) and also another one that I've used with arduinos. I've tried connecting the two MSPs on the launchpads directly without pullups, with pullups on SCL line, SDA line and also with pullups on both the lines but in vain. And yes I've connected the ground pins of both the launchpads together. Again yes, both the boards with the MSPs work fine with normal i/o programs, pwm programs and serial communication programs(with the computer). Also I tried to connect each MSP to a Raspberry Pi and to a bus pirate(both of them working perfectly with an arduino), with negetive results. Had I missed something that I should've done..? Or am I doing something that is absolute stupid...? There are a couple of jumpers on the launchpad like RX,TX,test etc etc. Should I do something with them(based on my readings what I've understood is that they are used in the case of serial communication and not I2C). If anyone has interfaced MSPs together, please if you can help, it would be great. Anything like hints, tips, suggestions, advice etc etc(negetive or positive), anything, would be highly appriciated. Thanks in advance
  9. nvmahajan

    AIR430Boost With CC2500 module

    Can I use AIR430Boost Library for CC2500 module with MSP430G2553. Or do I need to change it? I tried to run WirelessControl example but nothing happened. I hooked up the module to the same pins as of CC110L. I am using Energia 0101E0012.
  10. Hello everyone ! I started to use Energia to create simple projects using MSP430G2553 LaunchPad and somehow I've succeded until now! Today I encountered a problem as I was trying to read values from a HIH-4000-001 humidity sensor.The sensor is powered with 5V and can return a value ranging from 0.826 V to 3.976V coresponding to 0 - 100 % RH. Because 3.976 V is much more than the MSP430 can manage I used a 1:2 resistive divider to scale down the signal.Moreover the sensor needs an load resistance of minimum 80kohms so the resistors I used for my divider were R1= 36kohms and R2=68kohms.NOW comes the error : Regarding that , the RH level is normally around 50% that would corespond to a value of 1.3 V after the scale-down so in terms of ADC readings that would be around 445 and that is the value I get but, if I take multiple readings 1 sec apart of each other this is what happens : 445 442 443 0 0 0 443 440 ..................... Why 0 ? Can anyone tell me ? If I measure for some period of time the output of the sensor, the multimeter indicates a constant value of 1.3 V so I assume that the ADC is the problem! Please help me solve this issue as I need to create a functional project for my Bachelor Degree ! Thanks in advance !
  11. chicken

    PicassoBot

    Just came across this Kickstarter that features the MSP430G2553 LaunchPad and Energia: PicassoBot, the Portrait Sketching Robot Kit. https://www.kickstarter.com/projects/educatedrobot/picassobot-the-portrait-sketching-robot-kit
  12. codyneslen

    MSPFlash.h only prints

    Hi All, I am using Energia 0101E0012, MSP430G2553, Launchpad G2 Rev 1.4, on a mac. When I run the example MspFlash program, it appears like I erase and write to flash correctly, but when I try to read the "Hello World" written into flash, the only thing that prints out is
  13. ive compiled and uploaded my code (below) and when plug my msp430g2553 in it goes to the programmed angle it should when plugged in, but when i run the exe that is supposed to change its angle it doesnt do anything. the exe is programmed to connect to com4, and the msp430 application uart is set to com4. i know the exe can detect it because it wont run unless it can, it just isnt responding. im am using energia 0101E0010 to compile and upload. any help would be appreciated. here is the code: #include <Servo.h> Servo myServo; const int servoPin = 9; // the pin the servo is connected to int val = 0; // a value accumulated from data on the serial port int angle = 90; // the current angle of the servo void setup() { Serial.begin(9600); myServo.attach(servoPin); myServo.write(angle); // center the servo } void loop() { if ( Serial.available()) { char ch = Serial.read(); if(ch >= '0' && ch <= '9') // is ch a number? val = val * 10 + ch - '0'; // yes, accumulate the value else if(ch == '-') // is this the minus sign? { angle = angle - val; if(angle < 0) angle = 0; myServo.write(angle); // write the new angle val = 0; } else if(ch == '+') // is this the plus sign? { angle = angle + val; if(angle > 180) angle = 180; myServo.write(angle); // write the new angle val = 0; } } }
  14. Hi Everyone, I have been looking for about an hour online and haven't been able to find the answers to these questions. - Can I use floating point with the msp4302553 ? the watch expression on CCS don't seems to like floating point for sure. - Can I use math.h to do trigonometry calculus on the msp430g2553 ? Let me tell you guys what I am trying to do so that it is more clear: I am scanning a signal with an ADC. I would like to do an atan() on the signal and output the signal with an DAC. Right now I can scan the signal and send it to the DAC. This works well. But I can't get the trigonometric conversion to work. Is it possible to do it? And if yes could I get a little help from you guys ? Thanks in advance for your help. Thomas PS: I saw about these Qmath functions that came out recently but couldn't get it to work either http://www.ti.com/tool/MSP430-iqmathLIB?DCMP=ep-mcu-msp-iqmath-en&HQS=ep-mcu-msp-iqmath-pr-sw2-en
  15. eamonb

    Compilation problem

    Setup : Portable PC Windows XP Launchpad MSP-EXP430G2 Rev 1.5 Board Program : Eamples/Basic Blink Compiler : Energia Board : Launchpad w/ MSP430g2553 Serial Port : Port 3 Processor Fitted to Board : M430G2553 I downloaded the Energia compiler today and tried to run it for the first time with the setup above . Compilation ok until I got the following linker error c:/program files/energia/energia-0101e0011/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld.exe: cannot open linker script file memory.x: No such file or directory collect2: ld returned 1 exit status It looks like it cannot find the memory.x script file . I found a memory .x file in the following directory - C:\Program Files\Energia\energia-0101E0011\hardware\tools\msp430\msp430\lib\ldscripts\msp430g2553 I compiled it into the same path as the linker - C:\Program Files\Energia\energia-0101E0011\hardware\tools\msp430\msp430\bin I still got the same error . For some reason the linker is not finding the memory.x file it seems Aslo, I think the Com ports are not seeing Launch Pad board. I get the same Com port list when I select Tools --> Serial Port when the LaunchPad board is plugged in and when it is unplugged . Ther are no Com ports on this portable PC normally . Anyone know what I can do to resolve this issue ?
  16. ofer

    MSP430G2553 and ENC28J60

    hi all, I'm trying to use an Ethernet module that i bought called "Ethernet LAN Module for Arduino / microcontrollers with SPI (ENC26J80)". I found a few example for it for different MSP430's but i cant get it to work. Does anyone know how to make it work? witch pins to connect and example code would be great. thanks, Ofer.
  17. halancik

    MSP430G2553 and ADXRS450

    Hello, I try to comunicate with ADXRS450 via SPI. But receive data is always is same. All detail and code: #include "msp430.h" #include <signal.h> #define CS_DIS {P1DIR|=BIT3;P1OUT|=BIT3;} #define CS_ENA {P1DIR|=BIT3;P1OUT&=~BIT3;} void SPI_Write(unsigned char Data_for_write); void SPI_Disable(void); void SPI_Init(void); int SPI_Read(void); void ADXRS450_Init(void); unsigned char Byte; long Measure_byte_first; long Measure_byte_second; long Measure_byte_third; long Measure_byte_four; long Measurement; int main() { WDTCTL = WDTPW + WDTHOLD; CS_DIS; SPI_Init(); __delay_cycles(10000); ADXRS450_Init(); while((UCB0STAT&UCBUSY)); for(; { CS_ENA; while((UCB0STAT&UCBUSY)); SPI_Write(0x20); SPI_Write(0x00); SPI_Write(0x00); SPI_Write(0x00); while((UCB0STAT&UCBUSY)); CS_DIS; __delay_cycles(50000); CS_ENA; while((UCB0STAT&UCBUSY)); SPI_Write(0x00); Measure_byte_first = UCA0RXBUF; SPI_Write(0x00); Measure_byte_second = (UCA0RXBUF<<8); SPI_Write(0x00); Measure_byte_third = (UCA0RXBUF<<8); SPI_Write(0x00); Measure_byte_four = (UCA0RXBUF<<8); while((UCB0STAT&UCBUSY)); CS_DIS; Measurement = (Measure_byte_first | Measure_byte_second | Measure_byte_third | Measure_byte_four); Measurement = (int)((Measurement & 0x3FFFC00) >> 10); Measurement = ((Measurement) / 80); __delay_cycles(50000); } } void SPI_Init(void) { P1SEL = BIT1 + BIT2 + BIT4; P1SEL2 = BIT1 + BIT2 + BIT4; UCA0CTL1 = UCSWRST; UCA0CTL0 |= UCMSB + UCMST + UCSYNC + UCCKPL; // 3-pin, 8-bit SPI master UCA0CTL1 |= UCSSEL_2; // SMCLK UCA0BR0 |= 0x02; // /2 UCA0BR1 = 0; UCA0MCTL = 0; // No modulation UCA0CTL1 &= ~UCSWRST; // **Initialize USCI state machine** } void SPI_Write(unsigned char Byte) { while (!(IFG2 & UCA0TXIFG)); UCA0TXBUF = Byte; } void SPI_Disable(void) { UCB0CTL1 |= UCSWRST; } int SPI_Read(void) { while (!(IFG2 & UCA0RXIFG)); UCA0TXBUF = 0x00; return UCA0RXBUF; } void ADXRS450_Init(void) { __delay_cycles(150000); CS_ENA; SPI_Write(0x20); SPI_Write(0x00); SPI_Write(0x00); SPI_Write(0x03); CS_DIS; __delay_cycles(150000); CS_ENA; SPI_Write(0x20); SPI_Write(0x00); SPI_Write(0x00); SPI_Write(0x00); CS_DIS; __delay_cycles(250000); CS_ENA; SPI_Write(0x20); SPI_Write(0x00); SPI_Write(0x00); SPI_Write(0x00); CS_DIS; __delay_cycles(250000); CS_ENA; SPI_Write(0x20); SPI_Write(0x00); SPI_Write(0x00); SPI_Write(0x00); CS_DIS; __delay_cycles(250000); }
  18. serbay

    I2C_Scan_Problem

    Hello everyone.I am trying to learn I2C device adress of my MPU6050 sensor by using Ardunio I2C scan code in Energia.But although the code doesn't give me any error,on serial monitor I see all registers from 0x01 to 0x7E.I should see one register but I see all register on serial monitor like below... Scanning... I2C device found at address 0x01 ! .... .... .... I2C device found at address 0x7D ! I2C device found at address 0x7E ! done The code that I have used is http://playground.arduino.cc/Main/I2cScanner. I am sure about connections between my sensor and my msp430g2553.I used 4.7k pull up resistors with SDA and SCL pins. What do you think about my problem ? Thanks in advance.
  19. 14Ohm

    CC110L example code error

    I am new to launchpad and I've been trying to use the booster pack CC110L with no results. I am using the follwing: LaunchPad MSP430G2 (1.5) MSP430G2553 Anaren CC110L BoosterPack Energia 11 Windows 7 64-bit I am trying to run the example WirelessControl but i keep getting a huge error wihich at the end says: \energia0101E0011windows\energia0101E0011\hardware\msp430\libraries\AIR430BoostEuropeETSI\utility\Platform.cpp:114:28: error: 'SPIMISO_SET_MODE' was not declared in this scope Any ideas of what the problem could be??
  20. Hellow! First, sorry for my english. Second, I have one question. Can I set the baudrate in my MSP430G2553 more than 9600? In Arduino I can write the command "Serial.begin(115200)", but in Energia it doesn't work Can you tell me what I do wrong? Thanks!
  21. I couldn't find an example of someone using the Raspberry Pi as a receiving hub for sensor nodes that use the spirilis nRF24L01+ library and a MSP430G2553. I thought I would give it a shot since I think this would be beneficial to the community. I found a C library for the Raspberry Pi and nRF24L01+: https://github.com/stanleyseow/RF24. Class reference is here: http://maniacbug.github.io/RF24/classRF24.html There is also a newer python library but I haven
  22. Hi all, I would like to interface an I2C ADC (PCF8591) for one of my application. I have tried a lot with the sample programs. But still my launchpad is not even generating the clock pulse. Can anybody help me.
  23. BragaD0

    MSP430g2553 with PCF8574N - Help

    Hello, I`m trying to use PCF8574N with the MSP430G2553, but with no luck so far. I tried several examples but nothing seems to work. Basically, what i`m trying to do is light up a selected number of LEDs using the PCF8574N, but no matter the value I use in the UCB0TXBUF, P0 to P7 are always on HIGH, please see the code below: #include <msp430.h> int main(void) { WDTCTL = WDTPW + WDTHOLD; // Stop Watchdog Timer P1SEL |= BIT6 + BIT7; // Assign I2C pins to USCI_B0 P1SEL2|= BIT6 + BIT7; // Assign I2C pins to USCI_B0 UCB0CTL1 |= UCSWRST; // Enable SW reset UCB0CTL0 = UCMST+UCMODE_3+UCSYNC; // I2C Master, synchronous mode UCB0CTL1 = UCSSEL_2+UCSWRST; // Use SMCLK, keep SW reset UCB0BR0 = 12; // fSCL = SMCLK/12 = ~100kHz UCB0BR1 = 0; UCB0I2CSA = 0x20; // Set slave address UCB0CTL1 &= ~UCSWRST; // Clear SW reset, resume operation IE2 |= UCB0RXIE; // Enable RX interrupt TACCTL0 = CCIE; // TACCR0 interrupt enabled TACTL = TASSEL_2 + MC_2; // SMCLK, contmode while (1) { __bis_SR_register(CPUOFF + GIE); // CPU off, interrupts enabled UCB0CTL1 |= UCTR + UCTXSTT; // I2C TX, start condition __bis_SR_register(CPUOFF + GIE); // CPU off, interrupts enabled while (UCB0CTL1 & UCTXSTT); // Loop until I2C STT is sent UCB0TXBUF = 0x01; //send command byte while(!(UCB0TXIFG)){;} //wait for transmission to finish //UCB0CTL1 |= UCTXSTP; // I2C stop condition after 1st TX } } #pragma vector = TIMER0_A0_VECTOR __interrupt void TA0_ISR(void) { __bic_SR_register_on_exit(CPUOFF); // Exit LPM0 } I removed the P1.6 LED Jumper too. I'm really new to MSP430, so if someone could point out what is wrong with the code, or recommend some other code that I could use as example, I would really appreciate it. Thank you,
  24. Hello, I try to write my own library for the MSP430G2553 and and the 2.2" ILI9341 display. I know RobG has made one but this project is basically for learning about LCDs and SPI. I took the code from http://www.elecfreaks.com/wiki/index.php?title=2.2S%22_TFT_LCD:_TFT01-2.2S and modified it for the MSP430G2553. It worked fine but only as solftware SPI. Now I want to use the hardware SPI. Here ist my code: #include <msp430g2553.h> #define LCD_MISO BIT1 #define LCD_CLK BIT4 #define LCD_MOSI BIT2 #define LCD_DC BIT0 #define LCD_CS BIT3 #define LCD_REST BIT5 void LCD_Writ_Bus(char data) { P1OUT &= ~LCD_CS; UCA0TXBUF = data; //while(UCA0TXBUF); //while(UCA0TXIFG & UC0IFG); while (UCA0STAT & UCBUSY); //_delay_cycles(120000); P1OUT |= LCD_CS; } void LCD_Write_COM(char VL) { P1OUT &= ~LCD_DC; LCD_Writ_Bus(VL); } void LCD_Write_DATA(char VL) { P1OUT |= LCD_DC; LCD_Writ_Bus(VL); } void Address_set(unsigned int x1,unsigned int y1,unsigned int x2,unsigned int y2) { LCD_Write_COM(0x2a); LCD_Write_DATA(x1>>8); LCD_Write_DATA(x1); LCD_Write_DATA(x2>>8); LCD_Write_DATA(x2); LCD_Write_COM(0x2b); LCD_Write_DATA(y1>>8); LCD_Write_DATA(y1); LCD_Write_DATA(y2>>8); LCD_Write_DATA(y2); LCD_Write_COM(0x2C); } void LCD_Init(void) { P1OUT &= ~LCD_REST; _delay_cycles(120000); P1OUT |= LCD_REST; _delay_cycles(120000); LCD_Write_COM(0xCB);//Power control A LCD_Write_DATA(0x39); LCD_Write_DATA(0x2C); LCD_Write_DATA(0x00); LCD_Write_DATA(0x34); LCD_Write_DATA(0x02); LCD_Write_COM(0xCF);//Power control B LCD_Write_DATA(0x00); LCD_Write_DATA(0XC1); LCD_Write_DATA(0X30); LCD_Write_COM(0xE8);//Driver timing control A LCD_Write_DATA(0x85); LCD_Write_DATA(0x00); LCD_Write_DATA(0x78); LCD_Write_COM(0xEA);//Driver timing control B LCD_Write_DATA(0x00); LCD_Write_DATA(0x00); LCD_Write_COM(0xED);//Power on sequence control LCD_Write_DATA(0x64); LCD_Write_DATA(0x03); LCD_Write_DATA(0X12); LCD_Write_DATA(0X81); LCD_Write_COM(0xF7);//Enable 3G LCD_Write_DATA(0x20); LCD_Write_COM(0xC0); //Power control LCD_Write_DATA(0x23); //VRH[5:0] LCD_Write_COM(0xC1); //Power control LCD_Write_DATA(0x10); //SAP[2:0];BT[3:0] LCD_Write_COM(0xC5); //VCM control LCD_Write_DATA(0x3e); //Contrast LCD_Write_DATA(0x28); LCD_Write_COM(0xC7); //VCM control2 LCD_Write_DATA(0x86); //-- LCD_Write_COM(0x36); // Memory Access Control LCD_Write_DATA(0x48); //C8 LCD_Write_COM(0x3A);//COLMOD: Pixel Format Set LCD_Write_DATA(0x55); LCD_Write_COM(0xB1);//Frame Rate Control (In Normal Mode/Full Colors) LCD_Write_DATA(0x00); LCD_Write_DATA(0x18); LCD_Write_COM(0xB6); // Display Function Control LCD_Write_DATA(0x08); LCD_Write_DATA(0x82); LCD_Write_DATA(0x27); LCD_Write_COM(0x11); //Exit Sleep _delay_cycles(120000); LCD_Write_COM(0x29); //Display on LCD_Write_COM(0x2c); } void Pant(char VL) { int i,j; Address_set(0,0,240,320); for(i=0;i<320;i++) { for (j=0;j<480;j++) { LCD_Write_DATA(VL); } } } void loop() { Pant(0xFF); Pant(0xF0); Pant(0xE0); Pant(0x05); Pant(0x1F); Pant(0x00); } void main(void) { WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer BCSCTL1 = CALBC1_12MHZ; // Set range DCOCTL = CALDCO_12MHZ; BCSCTL2 = 0; //Port1(ILI9341) P1DIR = LCD_DC + LCD_CS + LCD_REST; P1OUT = LCD_CS; P1SEL = LCD_MISO + LCD_CLK + LCD_MOSI; P1SEL2 = LCD_MISO + LCD_CLK + LCD_MOSI; UCA0CTL0 = UCMSB + UCMST + UCMODE_1; // 4-pin, 8-bit SPI master UCA0CTL1 = UCSSEL_2; // SMCLK UCA0BR0 = 3; // UCA0BR1 = 0; // //UCA0MCTL = 0; // No modulation UCA0CTL1 &= ~UCSWRST; LCD_Init(); loop(); while(1); } Nothing happens and I have no idea why ...
  25. srv

    MSP430G2553

    i am using MSP430G2 launchpad with MSP430G2553 controller.but when i program it and make a pin high i am getting 1.4-1.6 v only please help.
×