Post Created date
Attiny84 and a disappearing global IE
Lee, So given the posted dis-assembly, where have I messed up? Thanks, A.
Tuesday, 4 March 2014 - 17:33
Attiny84 and a disappearing global IE
Cliff / Lee, I was stepping through the disassembled code not the "C". Here is the top of the lss file. 00000000 : 0: 10 c0 rjmp .+32 ; 0x22 2: 17 c0...
Tuesday, 4 March 2014 - 17:21
Attiny84 and a disappearing global IE
Cliff / Lee, I am at a loss to explain why this snippet does not set IE. I have checked the assembly and it just isn't there. #include #include volatile int a; int main(...
Tuesday, 4 March 2014 - 16:28
Attiny84 and a disappearing global IE
Lee, Will do. Cliff, I stripped the ISR. Same result. I will do as Lee suggests. Something I should have mentioned but I don't think it is relevant is that the project started out...
Tuesday, 4 March 2014 - 15:41
Attiny84 and a disappearing global IE
Cliff, If I understand you correctly, the code as posted in my previous post should result in IE being enabled after the return from the ISR. This does not happen. How am I making...
Tuesday, 4 March 2014 - 12:44
Attiny84 and a disappearing global IE
Steve, I understand the point you and others are making. reti() doesn't clean up the stack. At this point I am down to trying to figure out why this code resets IE on the ISR call...
Tuesday, 4 March 2014 - 12:08
Attiny84 and a disappearing global IE
Lee, In the simulator now but initially I was struggling with this over dwire. Quote: In any case, I don't believe that an AVR8 will execute an RETI and not have the I bit set an...
Monday, 3 March 2014 - 21:24
Attiny84 and a disappearing global IE
snigelen, I should have removed those before posting. My bad. A.
Monday, 3 March 2014 - 21:10
Attiny84 and a disappearing global IE
Lee, Quote: Again: How are you determining that? Using AS6 I am viewing the processor flags in the Processor window. I am sure there are 100 ways to skin this cat. I like to know...
Monday, 3 March 2014 - 21:09
Attiny84 and a disappearing global IE
Lee, Quote: If you have IE off in main() then the ISRs will never fire. "Problem" solved. I am enabling the interrupts. Triggering INT0 calls the int. The IE flag gets reset. I...
Monday, 3 March 2014 - 20:42
Attiny84 and a disappearing global IE
Lee, ENA_ints at the end of IO_setup() sets IE. ( I know its obfuscated.) Perhaps I am totally out to lunch on this. I have attached the source. High on PB2 triggers the int. If...
Monday, 3 March 2014 - 20:19
Attiny84 and a disappearing global IE
Lee, The program controls a proprietary high speed valve. It is critical that the on time of the valve be controlled within +/- an few micro seconds. Most importantly the on time...
Monday, 3 March 2014 - 19:48

Pages