Yahoo Groups archive

AVR-Chat

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

Message

Stack

2004-12-23 by Paul Maddox

Dear all,

  Daft question, I'm trying to setup a couple of IRQs (in assembly) and I'm
getting some odd results, here's the first part of my setup ;-

  LDI  Temp, Low(Ramend)
  OUT  SPL, Temp    ; setup stack pointer

  LDI  Temp, High(Ramend)
  OUT  SPH, Temp

  ; **** setup IRQs

  LDI  Temp, 0b00001010
  OUT  MCUCR,Temp    ; Setup MCUCR for falling edge interupts.

  LDI  Temp, 0b11000000   ; enable ext. INT1 and INT0
  OUT  GICR,Temp    ; by setting General Interupt Control Register

I assume the stack and IRQ setup is ok?
or is it shot to peices?

Paul

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.