The purpose of this group is to foster exchange of information on the Texas Instruments MSP430 family of microcontrollers and related tools. Everyone welcome, all levels of familiarity/expertise.
IAR initial values - abufadel - Aug 4 19:52:11 2008
Reading sample code from TI's website, I realized that it is common
practice to assume that the initial value of a register is 0x00. For
example, P1OUT is only set to 1 for the pins that should be set as
outputs while the rest are not initialized (assuming that the initial
value of P1OUT = 0x00).
How safe is this practice? Is it the same in other compilers as well?
Thank you,
-- A
------------------------------------

(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )
RE: IAR initial values - Pablo Villaverde Padilla - Aug 4 20:12:08 2008
Hi,
In fact, all registers have predefined values after a PUC or POR. You can
find the default register values in the User's Guides of the various MSP430
families, so make no assumptions and find out about the default values that
the processor will have after the PUC or POR by reading the relevant
document.
Good luck!
Pablo
De: m...@yahoogroups.com [mailto:m...@yahoogroups.com] En nombre de
abufadel
Enviado el: Monday, August 04, 2008 6:52 PM
Para: m...@yahoogroups.com
Asunto: [msp430] IAR initial values
Reading sample code from TI's website, I realized that it is common
practice to assume that the initial value of a register is 0x00. For
example, P1OUT is only set to 1 for the pins that should be set as
outputs while the rest are not initialized (assuming that the initial
value of P1OUT = 0x00).
How safe is this practice? Is it the same in other compilers as well?
Thank you,
-- A
[Non-text portions of this message have been removed]
------------------------------------

(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )
Re: IAR initial values - old_cow_yellow - Aug 4 21:02:28 2008
Some of the register bits are 0 after POR. Some others are 1. Yet
others are "unchanged" (from who knows what). The are all listed in
the Users Guide.
P1OUT happens to be "unchanged".
--- In m...@yahoogroups.com, "abufadel"
wrote:
>
> Reading sample code from TI's website, I realized that it is common
> practice to assume that the initial value of a register is 0x00. For
> example, P1OUT is only set to 1 for the pins that should be set as
> outputs while the rest are not initialized (assuming that the initial
> value of P1OUT = 0x00).
>
> How safe is this practice? Is it the same in other compilers as well?
>
> Thank you,
>
> -- A
>
------------------------------------

(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )Re: IAR initial values - old_cow_yellow - Aug 4 21:34:17 2008
By the way, IAR has nothing to do with this. It is all in the MSP430
chip design.
--- In m...@yahoogroups.com, "old_cow_yellow"
wrote:
>
> Some of the register bits are 0 after POR. Some others are 1. Yet
> others are "unchanged" (from who knows what). The are all listed in
> the Users Guide.
>
> P1OUT happens to be "unchanged".
>
> --- In m...@yahoogroups.com, "abufadel" wrote:
> >
> > Reading sample code from TI's website, I realized that it is common
> > practice to assume that the initial value of a register is 0x00. For
> > example, P1OUT is only set to 1 for the pins that should be set as
> > outputs while the rest are not initialized (assuming that the initial
> > value of P1OUT = 0x00).
> >
> > How safe is this practice? Is it the same in other compilers as well?
> >
> > Thank you,
> >
> > -- A
>
------------------------------------

(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )