EmbeddedRelated.com
Forums

real-time clock in code composer

Started by guus_hiddink January 20, 2016
I need to write a program that implements a real-time clock in code
composer studio. The LCD display shows hours , minutes and seconds . By
pressing a button you can enter / exit in setting mode which is
characterized by on / off LED. Pressing one of the other three keys in
setting mode you can set hours , minutes and seconds . Can someone help
me?


---------------------------------------
Posted through http://www.EmbeddedRelated.com
"guus_hiddink" <111331@EmbeddedRelated> writes:

> I need to write a program that implements a real-time clock in code > composer studio. The LCD display shows hours , minutes and seconds . By > pressing a button you can enter / exit in setting mode which is > characterized by on / off LED. Pressing one of the other three keys in > setting mode you can set hours , minutes and seconds . Can someone help > me?
Code Composer Studio is a development environment, not a processor. You need to first select one of TI's processors, MCUs, or SoCs. The MSP430F5438 Experimenter Board would be a good choice, in my opinion, and lacking further information: http://www.ti.com/tool/msp-exp430f5438?keyMatch=msp430f5438%20evaluation%20board&tisearch=Search-EN-Everything Good luck! -- Randy Yates, DSP/Embedded Firmware Developer Digital Signal Labs http://www.digitalsignallabs.com
Il giorno gioved&#4294967295; 21 gennaio 2016 06:04:16 UTC+1, Randy Yates ha scritto:
> "guus_hiddink" <111331@EmbeddedRelated> writes: > > > I need to write a program that implements a real-time clock in code > > composer studio. The LCD display shows hours , minutes and seconds . By > > pressing a button you can enter / exit in setting mode which is > > characterized by on / off LED. Pressing one of the other three keys in > > setting mode you can set hours , minutes and seconds . Can someone help > > me? > > Code Composer Studio is a development environment, not a processor. You > need to first select one of TI's processors, MCUs, or SoCs. > > The MSP430F5438 Experimenter Board would be a good choice, in my > opinion, and lacking further information:
I think it's his professor that decides the processor... Bye Jack
Jack <jack4747@gmail.com> writes:

> Il giorno gioved&igrave; 21 gennaio 2016 06:04:16 UTC+1, Randy Yates ha scritto: >> "guus_hiddink" <111331@EmbeddedRelated> writes: >> >> > I need to write a program that implements a real-time clock in code >> > composer studio. The LCD display shows hours , minutes and seconds . By >> > pressing a button you can enter / exit in setting mode which is >> > characterized by on / off LED. Pressing one of the other three keys in >> > setting mode you can set hours , minutes and seconds . Can someone help >> > me? >> >> Code Composer Studio is a development environment, not a processor. You >> need to first select one of TI's processors, MCUs, or SoCs. >> >> The MSP430F5438 Experimenter Board would be a good choice, in my >> opinion, and lacking further information: > > I think it's his professor that decides the processor...
Very possibly, if he has a professor. -- Randy Yates, DSP/Embedded Firmware Developer Digital Signal Labs http://www.digitalsignallabs.com
On Wed, 20 Jan 2016 17:45:44 -0600, guus_hiddink wrote:

> I need to write a program that implements a real-time clock in code > composer studio. The LCD display shows hours , minutes and seconds . By > pressing a button you can enter / exit in setting mode which is > characterized by on / off LED. Pressing one of the other three keys in > setting mode you can set hours , minutes and seconds . Can someone help > me?
It sounds like homework, and you're not giving enough detail. So -- no one's going to write code for you. The first thing you need is more detail, either to get answers or to do the project yourself. Do you have a schematic? Do you know what LCD you have? Do you know what processor pin is connected to the LED? Do you know whether that pin needs to be low or high to light the LED? Do you know what processor pins are connected to buttons? Do you know what the pin voltages are when the buttons are pressed vs. not pressed? Do you know how the various processor pins map to ports on the processor? If this is homework, you should have been given some pretty strong clues to this in your coursework, or in a prior course. -- Tim Wescott Wescott Design Services http://www.wescottdesign.com
On Thursday, January 21, 2016 at 8:46:40 PM UTC+1, Tim Wescott wrote:
> On Wed, 20 Jan 2016 17:45:44 -0600, guus_hiddink wrote: > > > I need to write a program that implements a real-time clock in code > > composer studio. The LCD display shows hours , minutes and seconds . By > > pressing a button you can enter / exit in setting mode which is > > characterized by on / off LED. Pressing one of the other three keys in > > setting mode you can set hours , minutes and seconds . Can someone help > > me? > > It sounds like homework, and you're not giving enough detail. > > So -- no one's going to write code for you. > > The first thing you need is more detail, either to get answers or to do > the project yourself. > > Do you have a schematic? Do you know what LCD you have? Do you know > what processor pin is connected to the LED? Do you know whether that pin > needs to be low or high to light the LED? Do you know what processor > pins are connected to buttons? Do you know what the pin voltages are > when the buttons are pressed vs. not pressed? Do you know how the > various processor pins map to ports on the processor? > > If this is homework, you should have been given some pretty strong clues > to this in your coursework, or in a prior course. > > -- > > Tim Wescott > Wescott Design Services > http://www.wescottdesign.com
I need to write code that works on development board RS MSP430F5438A, but I don't have board or any hardware to test code many times, so that is a problem. Only is specified that code works on development board RS MSP430F5438A. Any help would be precious to me. Thanks
On Tue, 26 Jan 2016 09:27:10 -0800, dzonikv93 wrote:

> On Thursday, January 21, 2016 at 8:46:40 PM UTC+1, Tim Wescott wrote: >> On Wed, 20 Jan 2016 17:45:44 -0600, guus_hiddink wrote: >> >> > I need to write a program that implements a real-time clock in code >> > composer studio. The LCD display shows hours , minutes and seconds . >> > By pressing a button you can enter / exit in setting mode which is >> > characterized by on / off LED. Pressing one of the other three keys >> > in setting mode you can set hours , minutes and seconds . Can someone >> > help me? >> >> It sounds like homework, and you're not giving enough detail. >> >> So -- no one's going to write code for you. >> >> The first thing you need is more detail, either to get answers or to do >> the project yourself. >> >> Do you have a schematic? Do you know what LCD you have? Do you know >> what processor pin is connected to the LED? Do you know whether that >> pin needs to be low or high to light the LED? Do you know what >> processor pins are connected to buttons? Do you know what the pin >> voltages are when the buttons are pressed vs. not pressed? Do you know >> how the various processor pins map to ports on the processor? >> >> If this is homework, you should have been given some pretty strong >> clues to this in your coursework, or in a prior course. >> >> -- >> >> Tim Wescott Wescott Design Services http://www.wescottdesign.com > > I need to write code that works on development board RS MSP430F5438A, > but I don't have board or any hardware to test code many times, so that > is a problem. Only is specified that code works on development board RS > MSP430F5438A. Any help would be precious to me. Thanks
Start by using the documentation of the board to find the answers to all of the questions I gave you. Then chase down the documentation on the LCD, to figure out how to drive it. See if there is demo software for the board that you can look at to learn how it's done. It's unfortunate that you don't have a board to experiment on -- do you have the resources to get one for yourself? -- www.wescottdesign.com
On Tuesday, January 26, 2016 at 10:08:16 PM UTC+1, Tim Wescott wrote:
> On Tue, 26 Jan 2016 09:27:10 -0800, dzonikv93 wrote: > > > On Thursday, January 21, 2016 at 8:46:40 PM UTC+1, Tim Wescott wrote: > >> On Wed, 20 Jan 2016 17:45:44 -0600, guus_hiddink wrote: > >> > >> > I need to write a program that implements a real-time clock in code > >> > composer studio. The LCD display shows hours , minutes and seconds . > >> > By pressing a button you can enter / exit in setting mode which is > >> > characterized by on / off LED. Pressing one of the other three keys > >> > in setting mode you can set hours , minutes and seconds . Can someone > >> > help me? > >> > >> It sounds like homework, and you're not giving enough detail. > >> > >> So -- no one's going to write code for you. > >> > >> The first thing you need is more detail, either to get answers or to do > >> the project yourself. > >> > >> Do you have a schematic? Do you know what LCD you have? Do you know > >> what processor pin is connected to the LED? Do you know whether that > >> pin needs to be low or high to light the LED? Do you know what > >> processor pins are connected to buttons? Do you know what the pin > >> voltages are when the buttons are pressed vs. not pressed? Do you know > >> how the various processor pins map to ports on the processor? > >> > >> If this is homework, you should have been given some pretty strong > >> clues to this in your coursework, or in a prior course. > >> > >> -- > >> > >> Tim Wescott Wescott Design Services http://www.wescottdesign.com > > > > I need to write code that works on development board RS MSP430F5438A, > > but I don't have board or any hardware to test code many times, so that > > is a problem. Only is specified that code works on development board RS > > MSP430F5438A. Any help would be precious to me. Thanks > > Start by using the documentation of the board to find the answers to all > of the questions I gave you. > > Then chase down the documentation on the LCD, to figure out how to drive > it. > > See if there is demo software for the board that you can look at to learn > how it's done. > > It's unfortunate that you don't have a board to experiment on -- do you > have the resources to get one for yourself? > > -- > www.wescottdesign.com
Ok, thanks. I don't have resources.
On Tue, 26 Jan 2016 13:55:25 -0800, Nikola Gvozdenovic wrote:

> On Tuesday, January 26, 2016 at 10:08:16 PM UTC+1, Tim Wescott wrote: >> On Tue, 26 Jan 2016 09:27:10 -0800, dzonikv93 wrote: >> >> > On Thursday, January 21, 2016 at 8:46:40 PM UTC+1, Tim Wescott wrote: >> >> On Wed, 20 Jan 2016 17:45:44 -0600, guus_hiddink wrote: >> >> >> >> > I need to write a program that implements a real-time clock in >> >> > code composer studio. The LCD display shows hours , minutes and >> >> > seconds . By pressing a button you can enter / exit in setting >> >> > mode which is characterized by on / off LED. Pressing one of the >> >> > other three keys in setting mode you can set hours , minutes and >> >> > seconds . Can someone help me? >> >> >> >> It sounds like homework, and you're not giving enough detail. >> >> >> >> So -- no one's going to write code for you. >> >> >> >> The first thing you need is more detail, either to get answers or to >> >> do the project yourself. >> >> >> >> Do you have a schematic? Do you know what LCD you have? Do you >> >> know what processor pin is connected to the LED? Do you know >> >> whether that pin needs to be low or high to light the LED? Do you >> >> know what processor pins are connected to buttons? Do you know what >> >> the pin voltages are when the buttons are pressed vs. not pressed? >> >> Do you know how the various processor pins map to ports on the >> >> processor? >> >> >> >> If this is homework, you should have been given some pretty strong >> >> clues to this in your coursework, or in a prior course. >> >> >> >> -- >> >> >> >> Tim Wescott Wescott Design Services http://www.wescottdesign.com >> > >> > I need to write code that works on development board RS MSP430F5438A, >> > but I don't have board or any hardware to test code many times, so >> > that is a problem. Only is specified that code works on development >> > board RS MSP430F5438A. Any help would be precious to me. Thanks >> >> Start by using the documentation of the board to find the answers to >> all of the questions I gave you. >> >> Then chase down the documentation on the LCD, to figure out how to >> drive it. >> >> See if there is demo software for the board that you can look at to >> learn how it's done. >> >> It's unfortunate that you don't have a board to experiment on -- do you >> have the resources to get one for yourself? >> >> -- >> www.wescottdesign.com > > Ok, thanks. I don't have resources.
If you change your screen name one more time in this thread I'm not going to answer, and I suspect that no one else will, either. Look up "rude" in the dictionary if you don't understand. If you have access to the web you can certainly look at the board documentation. You'll get exactly nowhere if you don't do your homework. -- Tim Wescott Wescott Design Services http://www.wescottdesign.com
On Tuesday, January 26, 2016 at 11:23:19 PM UTC+1, Tim Wescott wrote:
> On Tue, 26 Jan 2016 13:55:25 -0800, Nikola Gvozdenovic wrote: > > > On Tuesday, January 26, 2016 at 10:08:16 PM UTC+1, Tim Wescott wrote: > >> On Tue, 26 Jan 2016 09:27:10 -0800, dzonikv93 wrote: > >> > >> > On Thursday, January 21, 2016 at 8:46:40 PM UTC+1, Tim Wescott wrote: > >> >> On Wed, 20 Jan 2016 17:45:44 -0600, guus_hiddink wrote: > >> >> > >> >> > I need to write a program that implements a real-time clock in > >> >> > code composer studio. The LCD display shows hours , minutes and > >> >> > seconds . By pressing a button you can enter / exit in setting > >> >> > mode which is characterized by on / off LED. Pressing one of the > >> >> > other three keys in setting mode you can set hours , minutes and > >> >> > seconds . Can someone help me? > >> >> > >> >> It sounds like homework, and you're not giving enough detail. > >> >> > >> >> So -- no one's going to write code for you. > >> >> > >> >> The first thing you need is more detail, either to get answers or to > >> >> do the project yourself. > >> >> > >> >> Do you have a schematic? Do you know what LCD you have? Do you > >> >> know what processor pin is connected to the LED? Do you know > >> >> whether that pin needs to be low or high to light the LED? Do you > >> >> know what processor pins are connected to buttons? Do you know what > >> >> the pin voltages are when the buttons are pressed vs. not pressed? > >> >> Do you know how the various processor pins map to ports on the > >> >> processor? > >> >> > >> >> If this is homework, you should have been given some pretty strong > >> >> clues to this in your coursework, or in a prior course. > >> >> > >> >> -- > >> >> > >> >> Tim Wescott Wescott Design Services http://www.wescottdesign.com > >> > > >> > I need to write code that works on development board RS MSP430F5438A, > >> > but I don't have board or any hardware to test code many times, so > >> > that is a problem. Only is specified that code works on development > >> > board RS MSP430F5438A. Any help would be precious to me. Thanks > >> > >> Start by using the documentation of the board to find the answers to > >> all of the questions I gave you. > >> > >> Then chase down the documentation on the LCD, to figure out how to > >> drive it. > >> > >> See if there is demo software for the board that you can look at to > >> learn how it's done. > >> > >> It's unfortunate that you don't have a board to experiment on -- do you > >> have the resources to get one for yourself? > >> > >> -- > >> www.wescottdesign.com > > > > Ok, thanks. I don't have resources. > > If you change your screen name one more time in this thread I'm not going > to answer, and I suspect that no one else will, either. Look up "rude" > in the dictionary if you don't understand. > > If you have access to the web you can certainly look at the board > documentation. You'll get exactly nowhere if you don't do your homework. > > -- > > Tim Wescott > Wescott Design Services > http://www.wescottdesign.com
I understood that you think to get or buy the board. I changed the screan name accidentally, sorry.