Jump to content


  • Content Count

  • Joined

  • Last visited

Reputation Activity

  1. Like
    HannesBK got a reaction from AnthonyKl in Real-Time Clock (RTC) Library for the MSP430/LaunchPad   
    Hello Yannick,
    thank you for the RTC library. It's very useful for me.
    Is works fine with Energia 0005a.
    But with 0006 the clock is slow (~2 seconds per "Tick_Tac").
    Is it possible to fix that for 0006?
    Thank you
  2. Like
    HannesBK got a reaction from bluehash in LiquidCrystal + LCD problem   
    Hi Randy,
    I remember I also had some problems using a 3V3 LCD.
    Especially adjusting the contrast was very tricky.
    So I decided to use a 5V type.
    In the meantime I tried several displays and all worked well with the 3V5-logic of the lauchpad.
    If you do not read from the LCD (R/W wired to GND), you only need six output pins and no input can endanger the MSP chip.
    The 5V can be found at TP1 near the USB connector.
    Just to be safe, you can insert a diode in the 5V line to lower the voltage by 0.7V.
    All 5V displays run at 4.3V (4.3oh;-) and then a high level of 3.5V is more than enough.
    And another tip: Especially in the Arduino environment I often saw the data pins DB0..DB3 on the LCD left open.
    For 4-bit mode, these pins should be connected to GND!

    ================================= Pinout for a 5V LCD to Lauchpad +5V can be found at TP1 (near USB) on the Lauchpad ================================= LCD pin Connect to --------------------------------- 01 - GND GND, pot 02 - VCC +5V, pot 03 - Contrast Pot wiper 04 - RS Pin8 (P2.0) 05 - R/W GND 06 - EN Pin9 (P2.1) 07 - DB0 GND 08 - DB1 GND 09 - DB2 GND 10 - DB3 GND 11 - DB4 Pin10 (P2.2) 12 - DB5 Pin11 (P2.3) 13 - DB6 Pin12 (P2.4) 14 - DB7 Pin13 (P2.5) 15 - BL+ +5V 16 - BL- GND =================================
    The pinout above is from a (very basic) LCD lib I wrote from scratch.
    The standard libs have so much overhead I never use. And I wanted something simple to test timings etc.
    If you want to try, I can post it here.
    Good luck
    P.S.: I have to use the account of my neighbor (my co-) to post.
    I registered some time ago, but the account is blocked for posting.
  3. Like
    HannesBK reacted to energia in Real-Time Clock (RTC) Library for the MSP430/LaunchPad   
    Energia 0101E0006 sets the ACLK to internal VLO which is about 12KHz typical. The following patch should fix it:

    --- a/hardware/msp430/cores/msp430/wiring.c +++ b/hardware/msp430/cores/msp430/wiring.c @@ -78,7 +78,7 @@ void initClocks(void) /* SMCLK = DCO / DIVS = nMHz */ BCSCTL2 &= ~(DIVS_0); /* ACLK = VLO = ~ 12 KHz */ - BCSCTL3 |= LFXT1S_2; + //BCSCTL3 |= LFXT1S_2; } #define SMCLK_FREQUENCY F_CPU
  4. Like
    HannesBK reacted to xv4y in Real-Time Clock (RTC) Library for the MSP430/LaunchPad   
    On this page you can find the code for a simple C library using the RTC capabilities included in the MSP430g2553 shipped with the LaunchPad.
    I know TI already offer a nice RTC lib but it is in assembler and not easy to compile outisde of the given IDE.
    This one has been designed to work under Energia and should be easier to port.
  5. Like
    HannesBK reacted to Rickta59 in Energia (Arduino for msp430)   
    I came across the port of the Arduino IDE for the msp430 (it is called Energia) reading another post.
    Robert Wessels has made a great first stab at supporting the Arduino API for the launchpad boards. It already
    works on the MacOSX and Windows platforms. Edit: [i checked in the changes to git for the linux version
    [Linux isn't up to snuff yet, but I'll be helping him getting that working properly.] . It should be good to go.
    If you are running linux and have a working java, msp430-gcc and mspdebug. For a limited time you can try
    out an early snapshot by downloading this linux32 distribution.
    http://xxxxxxx It is large (~15MB) and will be changing so it will only
    available at that URL for a limited time.
    Download the tar file and unpack it. To launch, just run the energia shell script. In the Energia IDE, select the Tools menu
    pick one of the Launchpad boards. Set the Programmer to rf2500 and then pick your serial port. The picture below
    is a snapshot of the ASCIITable example found in the Communications section. The example uses the Hardware serial
    port of the msp430g2553 so make sure your TX/RX jumpers are set correctly. You can also find some msp430
    specific examples. I haven't tested all the examples so don't expect everything to work. This is a very early
    version of Energia.
    If you are a java weenie and want to checkout the source code, you can find it up on github:

  6. Like
    HannesBK reacted to Rickta59 in Energia (Arduino for msp430)   
    I haven't tried on windows so I can't say for sure. However, in the FIle/Preferences menu you can turn on verbose upload messages and it should tell you what is going on. One of the nice things about the msp430 is that it doesn't require a boot loader. The upload is handled by mspdebug or the MSP430Flasher.exe on windows. In fact, TX/RX pins are not used to upload. The TEST/RESET pins are used to upload using Spy-Bi-Wire protocol.
  • Create New...