;********************************************************************* ; * ; PIC16C5X Tutorial 6: Reset * ; * ;********************************************************************* ;* TARGET PIC16C5X ;********************************************************************* ;* @version 0.1, 10 October 2001 ;* @author James Caska ;********************************************************************* ;* ;* Runs on Processors without change ;* ;* PIC16c54 ;* PIC16c55 ;* PIC16c56 ;* PIC16c57 ;* ;********************************************************************* #include list p=16C54 DELAYCOUNTER EQU .8 ORG .0 INFINITE_LOOP GOTO INFINITE_LOOP START ;========================================== ;Autogenerated configuration code PIC16C5X ;Config Wiz V0.1, www.virtualbreadboard.com ;========================================== ;======Begin PORT Configuration ;======PORT B MOVLW .0 ;PORTB Configuration Bits TRIS PORTB 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 ;PIC16C54/55 Reset ORG 1FFH GOTO START ;PIC16C54/56 Reset ORG 3FFH GOTO START ;PIC16C54/57 Reset ORG 7FFH GOTO START END