Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20562

BASCOM-AVR : Atiny13 power down and wake up : NEWTOPIC

$
0
0
hello i have a problem with the wake up of a Tiny13. Config Powermode = Idle with idle the ext. interupt wake up correctly the Atiny but if i put the tiny in the: Config Powermode = Powerdown the interupts have no action to wake up the Atiny. Please where is the problem? thanks regards RP $regfile = "ATtiny13a.DAT" '$sim ' valeur du quartz $crystal = 8000000 ' oscillator 8 MHz (interne au ATtiny13) $hwstack = 12 ' stack pour interruptions $swstack = 12 ' stack pour les appels de fonctions $framesize = 16 ' pour les variables locales Config Dp = "." ' ------------------ Enable Interrupts Portb = &B00000 ' avec les 1 active R pull up sur les entrées Code Alias Portb.0 ' sortie code Alim Alias Portb.2 ' cde alim Val_inter Alias Pinb.4 'etat de l'inter poussoir Config Code = Output Config Alim = Output Config Val_inter = Input Set Alim Config Int0 = Falling On Int0 Int0_isr Enable Int0 Waitms 100 Debut: Do Set Code Wait 1 Reset Code Wait 1 Config Powermode = Idle Reset alim End Loop Int0_isr: Set Code Wait 1 Return [b:064b4fff0e][color=red:064b4fff0e](BASCOM-AVR version : 2.0.7.6 )[/b:064b4fff0e][/color:064b4fff0e]

Viewing all articles
Browse latest Browse all 20562

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>