Continue to Site

PBPdemo compiler problems with compilation

Status
Not open for further replies.

Navid T

Full Member level 3
Full Member level 3
Joined
Jan 21, 2005
Messages
186
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,296
Location
Iran
Activity points
1,385
about pic compiler

hello i use pbpdemo compiler but when i compile my program too hex and write it to chip program doesnt work properly i use epic for write hex file my basic program and my hex file are here, is it true compile for this basic program? i think my compiler doesent work properly.( i writ program for 16F84 or 16F84A )

'
'FIRST BASIC PROGRAM TO WINK TWO LED'S CONNECTED TO PORT B
LOOP:HIGH 0 'TURN ON LED CONNECTED TO PIN RB0
PAUSE 500 'DELAY FOR .5 SECONDS
LOW 0 'TURN OFF LED CONNECTED TO PIN RBO
PAUSE 500 'DELAY FOR .5 SECOND
GOTO LOOP 'GO BACK TO LOOP AND BLINK & WINK LED'S FOREVER
END

:1000000028288F018E00FF308E07031C8F07031CEA
:10001000232803308D00DF300F2003288D01E83EB8
:100020008C008D09FC30031C18288C070318152838
:100030008C0764008D0F15280C181E288C1C222894
:1000400000002228080083130313831264000800B1
:10005000061483160610831201308F00F43002203C
:10006000061083160610831201308F00F430022030
:0600700028286300392876
:02400E00FD3F74
:00000001FF

thank you
 

Re: about pic compiler

U have uploaded hex file, upoad basic file which u compiled.
 

Re: about pic compiler

He uploaded the basic source.
It looks ok to me as far as source and hex code are conserned.
Maybe u need to check u r hardware. What crystal do u use?
U r reset circuit works ok?
The LED is connected correctly?
Check these firtst...

By the way, I compiled the basic source and it gave me the same hex as u got.
 

Re: about pic compiler

i think you have to define first the io dirctions of portb,and also define the pin where the leds are connected,something like:

SYMBOL LEDS=PORTB.0
TRISB =0 ' portb as an output
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top