Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] Newbie rcall question

2004-12-04 by Geert De Pecker

Andrew, Sami, Dave,

Thansk for the help. Works ok now. On to timer interrupts...

Geert

Andrew Lim wrote:
> Geert,
>  
> U need to initialise the stack pointer.
>  
> Add these few lines after ur MAIN.
>  
> ;==============================================
> Main:
>  
> ldi Temp,  Low(Ramend)
> out SPL, Temp
> ldi Temp, High(Ramend)
> out SPH, Temp
> ;==============================================
> These 4 lines of code will initialise ur stack pointer. U will be able 
> to use rcall now.

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.