Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

pic programming help !!!

Status
Not open for further replies.

mihir08

Member level 4
Joined
Dec 28, 2009
Messages
70
Helped
7
Reputation
14
Reaction score
6
Trophy points
1,288
Location
India
Activity points
1,787
hey guys i just started with pic16f84a . i tried an led blinking program in assembly language ,compiled it using mplab ide and worked good .

i tried the same program using pic basic pro and i am not getting any result .
are there any modifications recuqired while using pic basic pro ..

please reply . ]


heres the link to asm program : **broken link removed**

and hers the pic basic pro program :

trisa=%00000000
again: porta.0=%00000001
pause 1000
porta.0=%00000000
goto again
end
 

delay ????
isnt 1sec delay sufficient .
 

You need another "pause 1000" after "porta.0=%00000000" line. Otherwise, PIC will turn on the LED again before you can see it's off.
 

You need another "pause 1000" after "porta.0=%00000000" line. Otherwise, PIC will turn on the LED again before you can see it's off.
Exactly! So your code should be:
Code:
trisa=%00000000
again: porta.0=%00000001
pause 1000
porta.0=%00000000
pause 1000
goto again
end
Hope this helps.
Tahmid.
 

ohkay thanks for that.i will check dat and reply here again


regards
mihir
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top