> Hi there,
>
> I am fairly new to the PIC, however I have now
> designed 3 successful
> applications using the PIC12C508A
>
> I have now designed a far more complex application
> which will probably end
> up in a PIC16C505 - however I am developing it on a
> PIC16F84 to get it
> going.
>
> I burnt my first version in a PIC16F84 (NOT A
> version) this morning and
> NOTHING. I checked all my hardware and retried -
> still nothing. I then
> stripped everything out of the application so that
> it was just an LED
> flashing at 1Hz.
>
> I am running a 4.0 MHz crystal with 22pF caps. I
> have simply an LED
> connected to RB7, Pin4 (MCLR) and all unused inputs
> tied high.
>
> Can anybody see what I have done wrong? What have I
> missed?
>
> Regards,
>
> Sean
>
>
> LIST P= 16F84
> INCLUDE "P16F84.INC"
> RADIX DEC
> ORG 0X5
> AUX1_L EQU 0XC
> AUX1_H EQU 0XD
> AUX2_L EQU 0XE
> AUX2_H EQU 0XF
> AUX EQU 0X10
> S0 EQU 0X11
> __CONFIG _CP_OFF & _PWRTE_OFF & _WDT_OFF &
> _XT_OSC
> MOVLW B'1111'
> MOVWF TRISA
> MOVLW B'00000000'
> MOVWF TRISB
> STARTHERE
> MOVLW B'00000000'
> MOVWF PORTB
> PAGESEL (DELAY500)
> CALL DELAY500
> MOVLW B'10000000'
> MOVWF PORTB
> PAGESEL (DELAY500)
> CALL DELAY500
> PAGESEL (STARTHERE)
> GOTO STARTHERE
> DELAY500
> ; CREATE A DELAY OF 500MS
> MOVLW 9;*
> MOVWF AUX2_L
> DELAYLAB32
> MOVLW 169;*
> MOVWF AUX1_H;*
> DELAYLAB22
> MOVLW 81;*
> MOVWF AUX1_L;*
> DELAYLAB12
> CLRWDT
> DECFSZ AUX1_L, F;*
> PAGESEL (DELAYLAB12)
> GOTO DELAYLAB12
> CLRWDT
> DECFSZ AUX1_H, F;*
> PAGESEL (DELAYLAB22)
> GOTO DELAYLAB22
> CLRWDT
> DECFSZ AUX2_L, F;*
> PAGESEL (DELAYLAB32)
> GOTO DELAYLAB32
> RETURN
> END
>
> --
>
http://www.piclist.com hint: To leave the PICList
>
@spam@piclist-unsubscribe-requestKILLspam
mitvma.mit.edu
>
>