Sorry, completely overlooked it. OR won't work as Paul said. ----- Original Message ----- From: Paul Curtis To: msp430@msp4... Sent: Tuesday, August 10, 2004 6:49 AM Subject: RE: [msp430] Re: LED Blink Hi, > 1) I learnt how to set a digital I/O pin to be set as output (for > example: P6DIR |= 0x04). How do you set it as an input? > > Set 0 for those bits desired as input. If you want all input, > it is P6DIR |= 0x00 Actually not. P6DIR = 0 or P6DIR &= 0, but certainly not P6DIR |= 0. -- Paul. . ------ .
LED Blink
Started by ●August 9, 2004
Reply by ●August 10, 20042004-08-10
Reply by ●August 10, 20042004-08-10
Or for modifying only your target pin, you could type
P6DIR &= ~PIN2;
--Bruce
> Hi,
>
> > 1) I learnt how to set a digital I/O pin to be set as output (for
> > example: P6DIR |= 0x04). How do you set it as an input?
> >
> > Set 0 for those bits desired as input. If you want all input,
> > it is P6DIR |= 0x00
>
> Actually not. P6DIR = 0 or P6DIR &= 0, but certainly not P6DIR |= 0.
>
> -- Paul.
Reply by ●August 10, 20042004-08-10
On Tue, Aug 10, 2004 at 04:41:39AM -0000, josef104
wrote:
> 2) Does anyone have any example programs in C for the MSP430F413STK2
> kit? I am trying to learn to display stuff on the LCD on the board.
Download the codeexamples from ti (you find it under design resources).
Matthias
Reply by ●August 10, 20042004-08-10
>But if you want to have a look at the software I wrote for the LCD >anyway, let me know. Yes, please send me your files. It may help me to learn some simple stuff by cross referencing with the 449 kit's schematics. >Take one step at a time, like input/output/LED which is a good >start. Next you would want to take care of interrupts, timing and so >on. You can also ask this group if you are stuck on anything. That's what I've been trying to do. Just learn to exercise the digital I/O first, get on to the LCD next and then get into interrupts and ADC etc. I did buy the printed TI user guide and I think I will go ahead and print the IAR reference manuals too. But there are too many pages to print on that and I want to consider the cost of printing all that vs. buying some IDE like Crossworks which may have better help/tutorials than the PDF files. Thanks for everyone's help. This group is great. I tried posting in Olimex/sparkfun forum first with no responses. The example program they had on their site for the kit I bought has compile errors. I wish there were other vendors with some better value added services for their products, may be I ought to look at Softbaugh. Or may be one of you experts can start looking into selling a kit with a bunch of programs that go with the kit! Thanks, Joseph
Reply by ●August 10, 20042004-08-10
You'd better try out CrossWorks' free trial before counting on it
to help
you come up to speed. It's a great tool but it's definitely designed
for
the advanced user. The interface is nice looking but very complicated.
There is no manual, the help system is quite cursory, as is the single
tutorial. There is popup help but it is still in early stages: a great many
popups simply reiterate the button tags.
If you are very experienced you will most often be able to intuit how to get
it to do what you want and will likely be pleased with its performance. If
you are a beginner you should prepare for a steep learning curve. Having
said that, there is a Yahoo group for the tool and response time to
questions is typically good. I have yet to see a post from a beginner
though.
--Bruce
> That's what I've been trying to do.
Just learn to exercise the
> digital I/O first, get on to the LCD next and then get into
> interrupts and ADC etc. I did buy the printed TI user guide and I
> think I will go ahead and print the IAR reference manuals too. But
> there are too many pages to print on that and I want to consider the
> cost of printing all that vs. buying some IDE like Crossworks which
> may have better help/tutorials than the PDF files.