Author Topic: Programming Texas Instruments Microprocessors  (Read 1591 times)

Offline catceefer

  • Jr. Member
  • **
  • Posts: 22
Programming Texas Instruments Microprocessors
« on: May 18, 2015, 01:26:59 PM »
I know that there are specialist forums for programming TI microprocessors, but I was wondering whether anyone on this site has any experience? I am trying to code and configure one, but I am struggling to understand some of the basic aspects of configuration. I also find that my questions seem a bit basic for the specialist sites and I do not properly follow the answers. I was hoping that someone on here may be able to help, but with a more simplistic approach.

To be more precise: I have been sent some code which triggers a solenoid once a minute, written in C, along with the set up details for the chip. I can follow the code and configure the chip following the instructions, but I wish to amend the code to add another solenoid, triggered each second. I am happy adapting some of the actual code, but not the aspects that triggers a different port, or configuring the second port.

Any help would be appreciated.

Regards,

James.

Offline John Rudd

  • Hero Member
  • *****
  • Posts: 2092
  • Country: gb
Re: Programming Texas Instruments Microprocessors
« Reply #1 on: May 18, 2015, 01:57:53 PM »
I think we need the chip in question to offer any help.....(I've a bit of experience with pic micros....and my son does C..... Together we sort things.... :zap: )
eccentric millionaire financed by 'er indoors
Location:  near Hull

Skype: chippiejnr

Offline catceefer

  • Jr. Member
  • **
  • Posts: 22
Re: Programming Texas Instruments Microprocessors
« Reply #2 on: May 18, 2015, 02:12:45 PM »
Thank you.

The chip is a MSP430G2211 and I am using the TI Launchpad, together with their Code Composer and Grace software to code and configure it. I can happily post the code and further details in the body of the post, but I have attached the source document, which is also on this link: http://carveshop.com/clocks/LazyClockElectronics.pdf

Thank you.

James.





Offline modeldozer

  • Sr. Member
  • ****
  • Posts: 298
  • Country: es
  • Valencia, Spain
    • AJs Truckmodeling
Re: Programming Texas Instruments Microprocessors
« Reply #3 on: May 18, 2015, 05:45:47 PM »

Offline catceefer

  • Jr. Member
  • **
  • Posts: 22
Re: Programming Texas Instruments Microprocessors
« Reply #4 on: May 19, 2015, 02:26:23 AM »
Abraham,

Thank you for this link. I have found no end of guides, tutorials and other information, but nothing simple or comprehensive enough to be useful to me. This looks ideal and even the first page has been useful. I shall read on............

Regards,

JAmes.

Offline John Rudd

  • Hero Member
  • *****
  • Posts: 2092
  • Country: gb
Re: Programming Texas Instruments Microprocessors
« Reply #5 on: May 20, 2015, 04:15:28 PM »
Not sure if this correct....but here goes anyway.....

Setup a second pin as an output.....look at the code that has the timing loop, where it triggers the original output pin at 1 min intervals....mod the code so that it triggers the 2nd pin at the 1 second interval, but triggers the first after 60 secs.....
Does this help you?
eccentric millionaire financed by 'er indoors
Location:  near Hull

Skype: chippiejnr

Offline catceefer

  • Jr. Member
  • **
  • Posts: 22
Re: Programming Texas Instruments Microprocessors
« Reply #6 on: May 20, 2015, 04:58:06 PM »
John,

Thank you for the suggestion which chimes with what I was thinking and reassures me. The big problem that I have, or had (I think) was knowing how to configure the second pin. I could not work out the logic in naming pins and identifying them on the physical chip. However, the blog to which Abraham referred me has clarified this a lot.

Regards,

James.