Wavelength
New Member
Hi again...Now got through the simulation part and I want to start testing a simple circuit, push and a LED will go on. I use MPLAB to assamble the code and EPICWIN to burn it to the pic.I manage to burn the hex file into the pic.I know this when a confirmation popup say "Program verify and completed".But the problem is when I tried on hardware nothing happened, the LED just will still on and pushing the button at the input will do nothing.Do I need to configure anything first on EPICWIN or MPLAB, then burn or will Epic software configure it automatically.
This what I have checked:
1. Power supply using 2 x 9v bat. No problem here cause the programmer is able to burn the code into the pic.
2. I connected the PIC directly to the IC socket. I have a ZIF adapter but the instruction on the adapter said that I can't use it with 18 pin PIC.I also tested it with the adapter and got an error massage.
3. I'm using a 25 pin cable to connect to the parallel port of my laptop. I think there's no problem here cause I can communicat with the EPIC hardware with no problem.(Noticed some 25 pin has diffrent type of connection)
4. The code has no error when I compiled it.here are the codes
List P = 16F84
#include <p16F84.inc>
__CONFIG 1Bh ;_CP_OFF & _PWRTE_ON & _WDT_OFF & _RC_OSC
ORG 0
SetUp BSF 03,5
CLRF 06
MOVLW 01
MOVWF 05
BCF 03,5
CLRF 06
Main BTFSS 05,0
GOTO Main2
BSF 06,0
GOTO Main
BCF 06,0
GOTO Main
Main2 BCF 06,0
GOTO Main
END
Guys sorry for the long whining
. Thnx.
This what I have checked:
1. Power supply using 2 x 9v bat. No problem here cause the programmer is able to burn the code into the pic.
2. I connected the PIC directly to the IC socket. I have a ZIF adapter but the instruction on the adapter said that I can't use it with 18 pin PIC.I also tested it with the adapter and got an error massage.
3. I'm using a 25 pin cable to connect to the parallel port of my laptop. I think there's no problem here cause I can communicat with the EPIC hardware with no problem.(Noticed some 25 pin has diffrent type of connection)
4. The code has no error when I compiled it.here are the codes
List P = 16F84
#include <p16F84.inc>
__CONFIG 1Bh ;_CP_OFF & _PWRTE_ON & _WDT_OFF & _RC_OSC
ORG 0
SetUp BSF 03,5
CLRF 06
MOVLW 01
MOVWF 05
BCF 03,5
CLRF 06
Main BTFSS 05,0
GOTO Main2
BSF 06,0
GOTO Main
BCF 06,0
GOTO Main
Main2 BCF 06,0
GOTO Main
END
Guys sorry for the long whining