Jump to content

chicken

Members
  • Content Count

    907
  • Joined

  • Last visited

  • Days Won

    85

Reputation Activity

  1. Like
    chicken reacted to greeeg in GPS logger for a local Beagle club   
    Got my enclosures today. That means I now have all the hardware parts for this batch.
     
    I've been playing around with Fusion 360 instead of Rhino, mainly due to the integrated CAM processor. Also it has easy to use rendering stuff out of the box too.
     
    This is the reason I love companies that provide 3d CAD files. I can define some simple stroke text, and Fusion 360 will project it over the 3d curvature of the part.

     
    My CNC setup is in dis-array. The setup is sub optimal.

     
    But I think the results speak for themselves.

     
    I want to experiment with filling the engravings with a paint to make them stand out.
  2. Like
    chicken reacted to greeeg in GPS logger for a local Beagle club   
    Went through and soldered up a batch of new PCBs


     
    Paneling PCBs made this process much fast.
    I'm still using my manual PnP which isn't very fast or accurate, especially after a few coffees.

  3. Like
    chicken got a reaction from tripwire in generate pulse with the help of timer   
    Your program doesn't make any sense as is. You have counter variables that are never counted up or down. I think you copied a program that you don't understand. Someone from a forum rewriting it for you won't help you achieve your goal.
     
    My suggestion is to either start from scratch and build the program step by step, or at least try to understand how the original is supposed to work before you change it:
    https://e2e.ti.com/support/microcontrollers/msp430/f/166/t/529768
     
    I see that Dennis tried to be really helpful on E2E but ultimately lost patience. Starting from scratch with Energia or a beginners tutorial might be your best bet.
  4. Like
    chicken got a reaction from tripwire in generate pulse with the help of timer   
    Then try to fix the warnings. The if statement I mentioned above probably does not what you expect. It will always set output_control to 1.
  5. Like
    chicken got a reaction from Frida in generate pulse with the help of timer   
    Your program doesn't make any sense as is. You have counter variables that are never counted up or down. I think you copied a program that you don't understand. Someone from a forum rewriting it for you won't help you achieve your goal.
     
    My suggestion is to either start from scratch and build the program step by step, or at least try to understand how the original is supposed to work before you change it:
    https://e2e.ti.com/support/microcontrollers/msp430/f/166/t/529768
     
    I see that Dennis tried to be really helpful on E2E but ultimately lost patience. Starting from scratch with Energia or a beginners tutorial might be your best bet.
  6. Like
    chicken got a reaction from yyrkoon in generate pulse with the help of timer   
    It might help if you try to explain in a bit more detail what your code is supposed to do. You won't get many answers if you expect people to parse 100+ lines of code.
     
    There are a few errors in the if/else in the ISRs. The compiler will probably tell you about these if you look at the warnings.
     
    E.g. :
     
    if ( output_control = 1 ) .. i
     
    and:
     
    else ( ouput_control == 0 )
     
    In the timer ISR.
  7. Like
    chicken got a reaction from abecedarian in Why is UART BSL not RXD/TXD?   
    Only when consumed socially. Back in the day (.com bubble) my theory was, that ideas from the Friday night pub crawl which you still remembered on Monday morning must have merit.
  8. Like
    chicken reacted to jazz in Why is UART BSL not RXD/TXD?   
    During development / testing original (TI USB) BSL was untouched. My BSL was placed in main flash, started by RESET vector and copied to RAM. Main flash was not used anymore and it was ready for user program. After downloading user program by RAM BSL, and device reset, user program was started.
  9. Like
    chicken got a reaction from spirilis in Why is UART BSL not RXD/TXD?   
    Only when consumed socially. Back in the day (.com bubble) my theory was, that ideas from the Friday night pub crawl which you still remembered on Monday morning must have merit.
  10. Like
    chicken reacted to jazz in Why is UART BSL not RXD/TXD?   
    When I was working on my BSL, all testing (with logs) is done by using main flash, without touching BSL flash area. (In any case) BSL was copied to RAM and executed from there. At the and it was relocated to BSL area, and flashed, after I was 100 % sure that everything is OK with generated (2 KByte) TI txt file.
  11. Like
    chicken reacted to Rei Vilo in DS3234 SPI problem with TM4C123   
    Have you tried a lower SPI speed, as the TM4C123 runs at 80 MHz?
     
    To do so, change SPI_CLOCK_DIV32 for SPI_CLOCK_DIV64 or SPI_CLOCK_DIV128.
  12. Like
    chicken got a reaction from altineller in DS3234 SPI problem with TM4C123   
    Do you set the chip select (CS or SS) pin?
  13. Like
    chicken got a reaction from tripwire in G2553 I2C SCL/INT combined?   
    In more detail, now that I looked at the MSP430G2553 datasheet:
     
    To use I2C, the TI library will set bit 5 and 6 in P1SEL and P1SEL2 to connect these pins with the USCB0 peripheral. See table 19.
     
    Looking at the schematic on the previous page, P1SEL and P1SEL2 are connected through an OR gate to the active low enable pin of the interrupt logic. I.e. if one of the two is high, there will be no interrupts.

     
    You could manually clear bit 6 in P1SEL and P1SEL2 when you are waiting for the INT signal, and set them again before start using I2C.
  14. Like
    chicken reacted to Lode in G2553 I2C SCL/INT combined?   
    @@fatihinanc
    Out of the millions of chips out there, you guessed correctly!
    Working on the same? Did you figure it out...
     
    @@chicken,
    i2c just uses P1.6 and P1.7 I believe?
    void i2c_init(unsigned char addr, unsigned char prescale){     //P1.6 SCL / P1.7 SDA     P1SEL  |= BIT6 | BIT7;     P1SEL2 |= BIT6 | BIT7;         //... } Isn't P1.5 just used for SPI?
    I will try your suggestion. Think the whole thing stranded when I do that.
     
    As a general note I'm trying to see the Interrupt on my little DSO202 oscilloscope, but not really getting around with that thing.
    Maybe the problem is that the pin is pulled high with 1.2kOhm resistor?
     
    Will return with more findings, thanks for thinking with me :-)
     
    EDIT:
     
    I got it working, due to your hints/ideas.
    For future reference this is quite simply it...
    void main(void){ //setup... for(;{        //issue i2c command...         //P1.6 SCL disable         P1SEL  &= ~BIT6;         P1SEL2 &= ~BIT6;         P1IE   |=  BIT6;                            // interrupt         P1IES  |=  BIT6;                            // falling edge (default)         P1IFG  &= ~BIT6;                            // flag clear         __bis_SR_register(LPM4_bits);      // sleep         //-----------------------------------------------------------/         P1IE   &= ~BIT6;                            // !interrupt         //P1.6 SCL re-enable         P1SEL  |= BIT6;         P1SEL2 |= BIT6;                 //read i2c data } } #pragma vector=PORT1_VECTOR __interrupt void ISR_P1(void){     if(P1IFG & BIT6){         P1IFG &= ~BIT6;                        // clear flag         __bic_SR_register_on_exit(LPM4_bits);  // clear LPM bits, returns to main after last LPMx     } } Thanks again!
     
    Now to make sense of the data
  15. Like
    chicken got a reaction from tripwire in Have feedback for TI? Please share here.   
    @@abecedarian No worries, the MSP430 USB peripherals and libraries handle that nicely. You can query the USB status (connected, suspended, enumerating etc.).
     
    The main request is, that TI offers more MSP430/432's with USB peripheral. I think right now USB is only available in the MSP430F55xx family. It seems that with all the IOT hype, some manufacturers assume that USB is becoming obsolete.
  16. Like
    chicken got a reaction from abecedarian in Have feedback for TI? Please share here.   
    @@abecedarian No worries, the MSP430 USB peripherals and libraries handle that nicely. You can query the USB status (connected, suspended, enumerating etc.).
     
    The main request is, that TI offers more MSP430/432's with USB peripheral. I think right now USB is only available in the MSP430F55xx family. It seems that with all the IOT hype, some manufacturers assume that USB is becoming obsolete.
  17. Like
    chicken reacted to energia in Energia 1.6.10E18B6 Beta available   
    UPDATED BETA AVAILABLE (7/15/2016)
     
    Hello all,
     
    A new beta build (1.6.10E18B7) is available for download. This release fixes some minor cosmetic issues as well as some bugs that were reported. Big thanks to those that reported the bugs.
     
    The new release can be downloaded from:
     
    Windows: https://s3.amazonaws.com/energiaUS/distributions/energia-1.6.10E18B7-windows.zip
    Mac OS X: https://s3.amazonaws.com/energiaUS/distributions/energia-1.6.10E18B7-macosx-signed.zip
    Linux64: https://s3.amazonaws.com/energiaUS/distributions/energia-1.6.10E18B7-linux64.tar.xz
     
    Please continue to report issues you encounter here:
     
    MSP430: https://github.com/energia/msp430-lg-core/issues
    MSP432: https://github.com/energia/msp432-core/issues
    TivaC: https://github.com/energia/tivac-core/issues
    CC3200: https://github.com/energia/cc3200-core/issues
    IDE: https://github.com/robertinant/EnergiaNG/issues
     
    Thanks and have a great weekend!!
     
    Robert 
     
    ------------------------------------------------------------
    Hello all,
     
    Wanted to let you know that I have a beta available of Energia 18 which is based on the latest and greatest Arduino IDE. If you would like to give it a spin, then the instructions for each OS are below. Would be great if you could post any issues you come across while you try it out.
     
    Please post general questions about this beta in this thread. Post issues for each part below on github. While you try it and find issues, please check the github issues pages to check if the bug has not already been reported before you file it.
     
    MSP430: https://github.com/energia/msp430-lg-core/issues
    MSP432: https://github.com/energia/msp432-core/issues
    TivaC: https://github.com/energia/tivac-core/issues
    CC3200: https://github.com/energia/cc3200-core/issues
    IDE: https://github.com/robertinant/EnergiaNG/issues
     
    If you have never used Energia, then you will need to install the drivers for your OS as per the guide posted here: http://energia.nu/guide/
     
    Energia 18 instructions:
     
    All previous beta
  18. Like
    chicken reacted to USWaterRockets in Have feedback for TI? Please share here.   
    USB and Low Power are indeed a very much desired set of coupled features. For example, making a portable device that runs from a small battery or solar cell that you want to configure or extract logged data from at the end of the day or something. Perhaps the battery recharges via a USB connection as well. So, having USB to communicate to the device when charging is a definite feature worth having. It can be low power when not connected to USB.
  19. Like
    chicken reacted to spirilis in LaunchFET: Tag connect for launchpad   
    eZFET Adapter board, updated to reflect the new pin locations (just ordered 6 from oshpark)-

     
    Gerbers: OSH_TC2030_eZFET_Adapter_v3_0.zip
    DipTrace footprints for TC2030 + SBW, optionally eZFET UART: TC2030-TI-SBW-eZFET.zip
  20. Like
    chicken got a reaction from Fmilburn in Is toneAC - push pull PMW tone - feasible on MSP430F5529   
    I just took a look at the Energia implementation of Tone and it does not use PWM but just a timer and toggling the pin manually in the interrupt routine.
    https://github.com/energia/Energia/blob/master/hardware/msp430/cores/msp430/Tone.cpp
     
    This should make implementing toneAC a lot simpler.
     
    ISR code:
    *tone_out[n] ^= tone_bit[n]; \   if ( tone_periods[n] == 0 ) stopTimer(n);\   else if ( tone_periods[n] > 0) tone_periods[n]--; \ ccr += tone_interval[n]; \ The tone_out array holds the port and tone_bit the pin to be toggled for a given tone n. All you will need to do is add tone_out_neg and tone_bit_neg arrays and initialize and toggle them together with the existing code for tone_out and tone_bit.
  21. Like
    chicken got a reaction from Fmilburn in How is Energia MT organized?   
    Mhhh, there are some interesting things starting to show in the Energia GitHub repositories:
    https://github.com/energia
     
    Including the Wiring source code for MSP432:
    https://github.com/energia/msp432-core/tree/master/cores/msp432/ti/runtime/wiring
  22. Like
    chicken got a reaction from abecedarian in How is Energia MT organized?   
    Mhhh, there are some interesting things starting to show in the Energia GitHub repositories:
    https://github.com/energia
     
    Including the Wiring source code for MSP432:
    https://github.com/energia/msp432-core/tree/master/cores/msp432/ti/runtime/wiring
  23. Like
    chicken got a reaction from OpalApps in How to protect your free code from companies predating on it ?   
    A wise man once told me, to stop worrying about things that I can't change. There will always be people copy&pasting or even claiming other's ideas as their own. No license will prevent that, and IMO it should not prevent you from publishing if free education or help to others is your intention.
  24. Like
    chicken reacted to RobOwen in Energia - Graphics for the Nokia 5110 LCD Display and the Tiva TM4C123 Launchpad.   
    I was trying to get the Tiva Launchpad TM4C123 working with the Nokia 5110 using Energia. Eventually I came across this page: http://www.clarenceho.net/2015/08/tm4c123-with-dht11-sensor.html
    You can follow the series of questions and answers through which Clarence Ho helped me get the combination working.
    You can see that he used a library originally by Rei Vilo, modified to add a contrast command. You can see also that Clarence has now added the jump-wire connections which are needed to link the Launchpad and LCD, near the top of the page.

    I then investigated graphics, and added Graphics commands to Rei Vilo's library - some were adapted from libraries designed to interface the 5110 to Arduinos. (I've quoted all sources in the file itself)

    You can see the result on this Youtube page:  https://youtu.be/wCwyDiEfO_c
    As you can see, also included is a simple Pacman-style game using the Graphics commands. You may want to jump over the part showing Pacman game, if you want to try it yourself first.
     
    I've also now added another Pacman-style game - but generated randomly. There's a choice of ten sets of games (A-J), each with a potentially infinite number of levels. Note that although the games are generated randomly, the starting point for the random number generator used in each set of games is the same. So, GamesA for instance always has exactly the same levels.

    The Library and games can be downloaded from:
    https://dl.dropboxusercontent.com/u/17759511/LCD5100_Graphics.zip
     
    ... and of course, the Energia code is easy to edit, so you can adapt the programmes for your own needs.

    I hope they are of some use to those who arrive at this page looking for help with connecting the Nokia 5110 to the Tiva Launchpad TM4C123.
  25. Like
    chicken reacted to Rickta59 in Program won't fit weirdness   
    cdecl.org is your friend here:
    http://cdecl.ridiculousfish.com/?q=const+char+*+const+command%5B%5D
×
×
  • Create New...