Hallo zusammen, ich habe folgendens Problem. Der Timer1 soll einen Interrupt auslösen und den PIC aus seinem Sleep holen. INTCON,PEIE = 1 T1CON = 0x0F PIE,TMR1IE = 1 Wenn der µC schläft, ist er nicht mehr aufzuwecken. Was habe ich vergessen? Danke schonmal im voraus
Gast
#3025107
Haben wir das schon gelesen? Siehe Anhang
Doch was ist mit dem internen 32 kHz Oszillator? 6.4 Timer1 Oscillator A low-power 32.768 kHz crystal oscillator is built-in between pins OSC1 (input) and OSC2 (amplifier output). The oscillator is enabled by setting the T1OSCEN control bit of the T1CON register. The oscillator will continue to run during Sleep. The Timer1 oscillator is shared with the system LP oscillator. Thus, Timer1 can use this mode only when the primary system clock is derived from the internal oscillator or when in LP oscillator mode. The user must provide a software time delay to ensure proper oscillator start-up. TRISA5 and TRISA4 bits are set when the Timer1 oscillator is enabled. RA5 and RA4 bits read as ‘0’ and TRISA5 and TRISA4 bits read as ‘1’. Oder ist es so zu verstehen, dass ich dort einen Quarz anschließen muss?
Antwort schreiben
Bitte melde dich an, um einen Beitrag zu schreiben.