;********************************************************************* ; * ; PIC16C7X Tutorial 6: Reset * ; * ;********************************************************************* ;* TARGET PIC16C7X ;********************************************************************* ;* @version 0.1, 14 October 2001 ;* @author James Caska ;********************************************************************* ;* ;* Runs on Processors without change ;* ;* PIC16c71 ;* PIC16c715 ;* ;********************************************************************* #include list p=16C71 DELAYCOUNTER EQU .32 ORG .0 RESET ;========================================== ;Autogenerated configuration code PIC16C7X ;Config Wiz V0.1, www.virtualbreadboard.com ;========================================== ;======Begin PORT Configuration BSF STATUS,RP0 ;Set Bank1 ;======PORT B MOVLW .0 ;PORTB Configuration Bits MOVWF TRISB BCF STATUS,RP0 ;Restore Bank0 MOVLW .7 BTFSC STATUS,NOT_PD MOVWF PORTB ;Clear PORTB on PowerUp, is zero on wakeup from Sleep by Master Reset INCF PORTB,F SLEEP GOTO RESET ;Simulates a reset after sleep condition END