Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

RE: [AVR-Chat] Lack of enough stacks? (was: AVR Power Supply Noise)

2006-07-14 by Behrooz Hariri

Sure I will try to manipulate these settings.  I finally found where the bug comes from, but still have no idea on how to fix it.
These lines cause problem in my porg. :
Lux = 10 ^ Lux 
and:
Lux =Log10(r0)  

Just working with 'power' and 'logarithm' function, cause such unexpected behaviour of mictro!!  A big result to this time.

Maybe your theory applies here:  LOG(10)x  and 10^x  are working just fine in a small experimental program, even in infinite loop. But in combination of other codes in my prog, they ruin everything. Lack of stacks? 

Anyway, if this didn't help, I may need to find a replacement for log and power functions.

Behrooz




Larry Barello <yahoo@barello.net> wrote:                                  More likely your problem is a too small variable stack or hardware stack or
 frame size.  These are adjustable in Bascom under Options->Compiler->Chip.
 
 Bascom has buffers for the hardware serial ports that one enables with
 CONFIG SERIALIN/SERIALOUT compiler directives..
 
 -----------
 Larry Barello
 www.barello.net
 
 | -----Original Message-----
 | From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
 | Of Behrooz Hariri
 | Sent: Wednesday, July 12, 2006 10:49 PM
 | 
 | Interesting to know that evevn disabling interrupts didn't solved
 | unexpected behavior!  Also I get wrong characters on LCD, Not chinese, but
 | something like that, u know what I mean.
 | Anyway, how to use buffers in BASCOM? Bascom is supposed to be bug-free,
 | and if my codes are logically correct, it is expected to run with no
 | problem.  Dealing with those stacks and buffers is the task of BASCOM, or
 | in fact those who wrote compilers. Itsn't it? Should I mind it?
 
 
     
                       

 		
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2ยข/min or less.

[Non-text portions of this message have been removed]

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.