Jump to content

Search the Community

Showing results for tags 'port'.



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.


Found 10 results

  1. I'm using a Launch pad and the blink code from Energia. The Led works fine. Now I want to use the port PN 1 connected to the led value which is pin 108. Using 108 instead of RED_LED doesn't work in the code - no Led lighting. Where are the header files so I can get this information? Appreciate the help!
  2. Porting Arduino Library

    Hello All, I'm an electronics engineering student and I know little about programming.I was using arduino and I want to use TI MCU's. So for that reason I'm recreating my arduino projects on energia (tried code composer studio but it is too complicated for me). Some of my projects worked well on energia and i didn't make any changes of my codes it was wonderful but my end term project didn't compiled because of the library that i'm using so I'm trying to port a library from arduino to energia. The library that i'm trying to port is based on the SoftwareSerial library (formerly NewSoftSerial), authored by: ladyada (http://ladyada.net),Mikal Hart (http://www.arduiniana.org),Paul Stoffregen (http://www.pjrc.com),Garrett Mace (http://www.macetech.com), Brett Hagman (http://www.roguerobotics.com/) and it uses pin change interrupts. the library that i'm trying to port energia uses digitalPinToPCMSK and digitalPinToPCICR macros from the pins_arduino.h I was successful running this library on arduino but i cannot get it to work on energia. The error I'm gettin when i try to compile the code is; error: 'digitalPinToPCICR' was not declared in this scope 'error: digitalPinToPCMSK' was not declared in this scope it is going like this. The library i want to port from arduino is Arduino-SDI-12 created by Kevin M. Smith, S. Hicks and their team members the library is located at github (link: https://github.com/EnviroDIY/Arduino-SDI-12 ). What should I do to make it work? Any help will be appreciated. Thanks in advance, I'm using LaunchPad MSP-EXP430G2 v1.5 MCU MSP430G2553 Windows 10 PC and Energia 1.6 10E18 IDE
  3. Serial Port Problem

    I have an interesting problem that has been popping up over the last several months. I am presently using a MSP-EXP430G22553 Rev 1.5. I am running Energia 17. Every so often when I load a program into the editor, the serial port option on the tools menu will be grayed out. I am able to download the program into the board and the program will run but I am unable to open the serial port window. I am running Windows 7 and if I look at the ports in device manager, it show port 66 being assigned to the TI board. This problem will continue for several days and then suddenly it will start to work again. No matter what program I load, the problem will persist. Any thoughts would certainly be appreciated.
  4. Serial Port Problem

    I have an interesting problem that has been popping up over the last several months. I am presently using a NSP-EXP430G22553 Rev 1.5. I am running Energia 17. Every so often when I load a program into the editor, the serial port option on the tools menu will be grayed out. I am able to download the program into the board and the program will run but I am unable to open the serial port window. I am running Windows 7 and if I look at the ports in device manager, it show port 66 being assigned to the TI board. This problem will continue for several days and then suddenly it will start to work again. No matter what program I load, the problem will persist. Any thoughts would certainly be appreciated.
  5. Weird characters in serial monitor

    Dear developers, I am simply using Serial.println(); command, but I get some weird characters in the serial port display window. Code : #include <Wire.h> // HIH6130 I2C address is 0x27(39) #define Addr 0x27 int tzero = 196; int tspan = 17; int hzero = 196; int hspan = 17; void setup() { Wire.setModule(1); Wire.begin(); pinMode(P1_3,OUTPUT); pinMode(P1_2,OUTPUT); pinMode(P1_6,OUTPUT); Serial.begin(9600); Serial.println("OK"); delay(300); } void loop() { unsigned int data[4]; // Start I2C Transmission Wire.beginTransmission(Addr); // Select data register Wire.write(0x00); // Stop I2C Transmission Wire.endTransmission(); // Request 4 bytes of data Wire.requestFrom(Addr, 4); // Read 4 bytes of data // humidity msb, humidity lsb, temp msb, temp lsb if (Wire.available() == 4) { data[0] = Wire.read(); data[1] = Wire.read(); data[2] = Wire.read(); data[3] = Wire.read(); } // Convert the data to 14-bits float humidity = ((((data[0] & 0x3F) * 256) + data[1]) * 100.0) / 16383.0; float temp = ((data[2] * 256) + (data[3] & 0xFC)) / 4; float cTemp = (temp / 16384.0) * 165.0 - 40.0; // Output data to serial monitor Serial.print("Relative Humidity :"); Serial.println(humidity); Serial.println(" %RH"); Serial.print("Temperature in Celsius :"); Serial.println(cTemp); Serial.println(" C"); Serial.println("=============================================================== "); int VcTemp = map(cTemp, -5, 125, tzero, tspan ); int vhumidity = map (humidity, 0, 100, hzero, hspan); analogWrite(P1_2, VcTemp); analogWrite(P1_6, vhumidity); delay(1000); } Serial Output : (in one single line, means it keeps printing these characters in just one line on and on.picture : Thax.
  6. Please guide me how to port a library for energia or create one myself. I want to create library for SD card and Adafruit GFX. I will share it on Github and in this forum afterwards. Thank you.
  7. Cant connect to MSP430 from MAC

    Oh I hope someone can help me out of this headache. I run the msp430g2452 from my MAC (Yosemite), Ran fine after installing drives and all. Now suddenly the "Serial Port" has gone grey and I try to re install, reboot, re everything. No way I can connect again. I was playing with digital out and also in. Seemed like it was when I was trying to read the switch on pin5 that things went bad for me. I know many have had problems on a mac and I have looked intense on this Forum and other on the net. Now I try this. I hope someone can help. Greetings from Brazil and thanks any help. Peter
  8. Hello everybody, I am currently working on an automated rover project working on multiple MSP430 the board in charge of the electrical power management embbeds a MSP430G2744 model. As I quite used to work with arduino IDE I tried to port it to Energia. Unfortunately I got stuck at some point editing my variant of pins_energia.h : The timers for the ported microcontrollers appears something like T0A0 T0A1 T1A0 ... etc On the MSP430G2744 however they only appear as TA0, TA1 etc. The Energia.h file in cores does not allow in its enumaration list for TA0, TB0 simple notations I understand that the second number is related to the number of the CCR capture and compare register but not all the timers seem to be related to a CCR in the datasheet of the MSP430G2744. For now I just assumed as it seems to appear in the datasheet that the number of the CCR is the same as the number for the pin eg. OUT0 with CCR0, OUT 1with CCR1 etc each time but is it right ? Here come my modified file (I highlighted the tricky part in red): Of course I modified the Board.mk and boards.txt files as well. A second information I didn't fint is the upload protocol, I assumed: lpmsp430g2744.upload.protocol=tilib Would that work ? Note that I am planning to use a Spi-by-wire upload using only the TEST and RST pins. For know I am getting the following error from the IDE: Thank you in advance for your help Hoping to read you soon.
  9. Not so long ago i bougth the LaunchPad MSP-EXP430G2 and ordered some free samples of MSP430g2152, later when i was doing testing codes i checked that when i assign an output to the P1OUT register, the P1IN register take the same value that the P1OUT, This was odd to me, so i went to the datasheet of the msp430 family and as i was expecting the registers have two different address (P1IN 020h and P1OUT 021H), now i don't know if i have something wrong in my code or if in fact the microcontroller change both registers. Can anyone explain me what's going on or if it is normal? I'm using Code Composer Studio Traducci
  10. UPDATE: i accidently wrote msp430g2274 instead of msp430f2274 in the title of thread.I tried to change title by editing it using full editor but i can't.It gives me some error that thread key is not matched and it signs out. Hey guys, I first changed boards.txt file under /hardware/msp430 by adding following code lpmsp430fr5739.name=msp430f2274 lpmsp430fr5739.upload.protocol=rf2500 lpmsp430fr5739.upload.maximum_size=32768 lpmsp430fr5739.build.mcu=msp430f2274 lpmsp430fr5739.build.f_cpu=16000000L lpmsp430fr5739.build.core=msp430 lpmsp430fr5739.build.variant=msp430f2274 and also added "pins_energia_.h" which is simply a copy of launchpad's "pins_energia.h" in folder /hardware/msp430/variants/msp430f2274. for now i've not just added pin description of msp430f2274.i am right now just testing whether the code of g2553 can compile or not.when i compile the code it gives me follo\wing error: \energia-0101E0009\hardware\msp430\cores\msp430\twi.c: In function 'twi_init': \energia-0101E0009\hardware\msp430\cores\msp430\twi.c:122:5: error: 'P1SEL2' undeclared (first use in this function) \energia-0101E0009\hardware\msp430\cores\msp430\twi.c:122:5: note: each undeclared identifier is reported only once for each function it appears in But when i change this line in boards.txt: lpmsp430fr5739.build.mcu=msp430f2274 to lpmsp430fr5739.build.mcu=msp430g2553 It successfully compiles.So plz tell me wht m i doing wrong here.?
×