----- Original Message ----- From: Paul Maddox To: AVR-Chat@yahoogroups.com Sent: Thursday, December 23, 2004 1:40 PM Subject: [AVR-Chat] Stack 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? What is GICR??? You need to set the top two bits in GIMSK, then execute SEI. Make sure you have the vectors initialised correctly. Leon -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.4 - Release Date: 22/12/2004
Message
Re: [AVR-Chat] Stack
2004-12-23 by Leon Heller
Attachments
- No local attachments were found for this message.