Reply by RAJU.K.N.N. RAJU.K.N.N April 4, 20062006-04-04
Hello,
    Thanks a lot for the immediate response.

with regards
Raju K N N


--- Anders Lindgren <Anders.lindgren@Ande...> wrote:

> RAJU.K.N.N. RAJU.K.N.N wrote:
> > Hello List,
> >  
> > Target porcessor used : MSP430F1611 
> > Tools Used : IAR embedded workbench Ver3.30A from
> IAR
> > systems.
> > 
> > My question is
> > 
> > 1. Can I do 32 bit math(+,-,*,/) on MSP430F1611
> > processor just simillar to 16 bit math?
> 
> Yes we support 32 bit operations. You can even do 64
> bit math using the 
> "long long" data type.
> 
> 
> > 2. Does IAR support 32 bit data type?
> 
> Yes, both integers, "long", and floating-point,
> "float".
> 
> 
> > 3. Do I need to do any extra data manipulation for
> > portign the 32 bit programs to run on MSP430F1611
> ?
> 
> If you have a program written for a 32 bit machine
> then you might need 
> to do some things. Mainly, the "int" data type for
> MSP430 is 16 bits. 
> This means that all variables that were declared as
> "int" but should be 
> able to take larger values have to be re-declared as
> "long".
> 
> I would recommend that you use the standard header
> file "stdint.h" and 
> use the types "int16_t", "uint32_t" etc.
> 
>      -- Anders Lindgren, IAR Systems
> -- 
> Disclaimer: Opinions expressed in this posting are
> strictly my own and
> not necessarily those of my employer.
> 
> 
> 
> .
> 
>  
> Yahoo! Groups Links
> 
> 
>     msp430-unsubscribe@msp4...
> 
>  
> 
> 
> 


Raju.K.N.N.
Bangalore

__________________________________________________
 

Beginning Microcontrollers with the MSP430

Reply by Anders Lindgren April 3, 20062006-04-03
RAJU.K.N.N. RAJU.K.N.N wrote:
> Hello List,
>  
> Target porcessor used : MSP430F1611 
> Tools Used : IAR embedded workbench Ver3.30A from IAR
> systems.
> 
> My question is
> 
> 1. Can I do 32 bit math(+,-,*,/) on MSP430F1611
> processor just simillar to 16 bit math?

Yes we support 32 bit operations. You can even do 64 bit math using the 
"long long" data type.


> 2. Does IAR support 32 bit data type?

Yes, both integers, "long", and floating-point, "float".


> 3. Do I need to do any extra data manipulation for
> portign the 32 bit programs to run on MSP430F1611 ?

If you have a program written for a 32 bit machine then you might need 
to do some things. Mainly, the "int" data type for MSP430 is 16 bits. 
This means that all variables that were declared as "int" but should
be 
able to take larger values have to be re-declared as "long".

I would recommend that you use the standard header file "stdint.h" and

use the types "int16_t", "uint32_t" etc.

     -- Anders Lindgren, IAR Systems
-- 
Disclaimer: Opinions expressed in this posting are strictly my own and
not necessarily those of my employer.


Reply by RAJU.K.N.N. RAJU.K.N.N April 3, 20062006-04-03
Hello List,
 
Target porcessor used : MSP430F1611 
Tools Used : IAR embedded workbench Ver3.30A from IAR
systems.

My question is

1. Can I do 32 bit math(+,-,*,/) on MSP430F1611
processor just simillar to 16 bit math?

2. Does IAR support 32 bit data type?

3. Do I need to do any extra data manipulation for
portign the 32 bit programs to run on MSP430F1611 ?

Thanks in advance for your kind inputs

with regards
Raju K N N


Raju.K.N.N.
Bangalore

__________________________________________________