> -----Ursprüngliche Nachricht-----
> Von: ti-lau...@googlegroups.com [mailto:ti-lau...@googlegroups.com]
> Im Auftrag von Sk3ptic
> Gesendet: Freitag, 24. Dezember 2010 05:16
> An: TI Launchpad
> Betreff: Understanding P1DIR |= 0x01
I'm using the include file that came with Code Composer Studio 4.0,
which are you using? What complier and what GUI are you using?
On Dec 28 2010, 10:33 pm, Old_Cow_Yellow
<lichen.wang.acti...@gmail.com> wrote:
> I do not know which file is "the" include file you are refereeing to.
> There are hundreds of include files, each with hundreds of lines.
>
> I got one called <msp430g2211.h>. Line number 331 says:
> #define P1DIR_ (0x0022u) /* port 1 direction */
>
> --OCY
>
> -----Ursprüngliche Nachricht-----
> Von: ti-lau...@googlegroups.com [mailto:ti-lau...@googlegroups.com]
> Im Auftrag von Old_Cow_Yellow
> Gesendet: Dienstag, 4. Januar 2011 17:17
> An: TI Launchpad
> Betreff: Re: Understanding P1DIR |= 0x01
--
You received this message because you are subscribed to the Google Groups "TI Launchpad" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ti-launchpad...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Just in case you are still looking for an explanation, the "P1DIR |= 0X22u is just saying make bit 1 and bit 5 high ('1'). 0x22u is just hexadecimal for 0%00100010b
--
Oh.... My bad.... The #define statement sets P1dir_ like a pointer to the memory location of P1DIR