Re: Floating point calculations on 16 uC
- From: cbarn24050@xxxxxxx
- Date: 29 Aug 2005 06:47:22 -0700
db wrote:
> Hi,
>
> I'm doing floating point calculations on a Fujitsu MB90F474 16bit uC.
> All float calculations are done in the main loop context. Sometimes the
> result returns a garbage value. This seems to happen only when
> interrupts are enabled. Note that there are no globals or shared data
> involved.
>
> If anyone has had similar problems please let me know. Any advice when
> using floating point calculations would be appreciated.
>
> Regards
> Dieter
You dont say what kind of garbage your getting. Stack overruns are easy
to detect as it will trash your fixed variables starting from the
highest 1 (check your map file). Sometimes you can have problems with
far/near pointers. Compile useing the large model and see if your
problem dissapears. If all else fails disable each interrupt
individualy.
.
- Follow-Ups:
- Re: Floating point calculations on 16 uC
- From: db
- Re: Floating point calculations on 16 uC
- From: R Adsett
- Re: Floating point calculations on 16 uC
- References:
- Floating point calculations on 16 uC
- From: db
- Floating point calculations on 16 uC
- Prev by Date: Re: onboard EROM PXE programming in windows
- Next by Date: Using AD7890
- Previous by thread: Re: Floating point calculations on 16 uC
- Next by thread: Re: Floating point calculations on 16 uC
- Index(es):
Relevant Pages
|