I use pic16f628a with the code below.This code works.
I want to change the code , so the pic after 10 seconds to wake up for .1 sec and after go again to sleep
Code:TRISB = %11110000 TRISA = %00000000 CMCON = 7 OPTION_REG.7=0 ' 0 = Enable PORTB Pull Ups @ Device wdt_off ' Disable the WatchDog Timer INTCON.3=1 ' Interrupt Control Register PORTB = 0 PORTA = 0 loop: PORTA.0 = 1 ' Turn LED On for 1 second pause 1000 PORTA.0 = 0 INTCON.0=0 @ SLEEP INTCON.0=0 goto loop
Bookmarks