Posted: Mon Sep 26, 2022 11:59 am Post subject: Powerdown and wakeup withInt0
The following BASCOM program does not work and I don't know why.
I want to set the ATMEGA8 in Powerdown Mode and want to wake him up with Interrupt through button.
Can anybody help me and tell me why ?
Thanks
$regfile = "m8def.dat"
$crystal = 3686400
$hwstack = 10
$swstack = 0
$framesize = 24
Ddrb = &B00000101 'In/Out definieren
Config PORTB.1 =Input
Taster Alias Pinb.1
Portb.1 = 1 'Pullup
Posted: Mon Sep 26, 2022 2:54 pm Post subject: Re: Powerdown and wakeup withInt0
lukatsc wrote:
Code:
$hwstack=10 $swstack=0 $framesize=24
Your ISR uses up more bytes from $hwstack than you declare, colliding with $swstack and frame, increase all three values to 32.
But it's likely not the true culprit, as it seems you use the wrong pin:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum