| Home | Terms of Use | Site Map | Contact Us |
IndustryCommunity.com > Electrical and Electronic Community > Embedded Control Forum > Message
Main Menu
Find

[ List Subjects ][ Post Message ]
[ View Followups ][ Post Followup ]

Subject: Re: Interrupts on ATMEL AT9058535

Date: 08/07/03 at 11:49 AM
Posted by: Jem
E-mail: jemidar@rogers.com
Message Posted:

In Reply to: Interrupts on ATMEL AT9058535 posted by Lloydy on 08/01/03 at 4:45 PM:

Not having the code to look at, here is a general checklist of steps needed for a successful implementation of HW interrupts on the 8535.

1. Stack must be setup
2. Interrupt vectors must be setup.
3. All ISR's should (generally) return with RETI.
4. GIMSK, and MCUCR must be properly configured. (TIMsk for timers).

After all this, then you can enable global interrupts with SEI.

Also, did you initialize the UART, and enabled the Tx? Yes, you can dump the SREG to a register, and then out to the UART Tx register.

Hope that helps,

Jem


Follow Ups:


Post a Follow-up:

Name:
E-Mail:
Subject:

Message to Post:

 

1999-2001 Sunlit Technology Co., Ltd. All rights reserved.