Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 12th February 2007, 09:49 AM   #16
Default

Quote:
Originally Posted by _ab
Why matters can you explain me?????
The code that I posted before last changes already worked but your way of connection of LED have given you a false impression that the output is reversed which if you connect it to a NPN transistor+relay will work correctly. If you connect a LED from +5V to RA2, then the pin need to be at 0V for the LED to light. Therefore your LED lights up when the pin is 0V. But 0V on the pin will not turn ON your relay so the relay will be OFF.

Your LED lights when in actual the relay is OFF. Got that now?

So forget about:
Code:
loopx   movlw  0x04     
        movwf PORTA
and use the previous code instead.
Code:
loopx	clrf PORTA ; clear output
__________________
L.Chung
eblc1388 is offline  
Old 12th February 2007, 01:53 PM   #17
Default

Thanks a lot my friend i appreciate what you have done for me!!!!!!!!!!!!As i said i am newbie and i wouldn't have done anything without your help......

Cheers

:-)))
_ab is offline  
Old 14th November 2008, 09:05 PM   #18
Default

how I can put the lcd in the pic16F628
lamusekeif is offline  
Reply

Tags
16f84, asm

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
16F628 projects? epilot Micro Controllers 15 16th April 2008 04:58 AM
16F84 vs 16F628 Nigel Goodwin Micro Controllers 18 24th October 2006 08:25 PM
code convertion 16F628 -> 16F84 patroclus Micro Controllers 6 6th April 2006 09:35 PM
Proyect Board for 16F84 or 16F628 ??? terka Electronic Projects Design/Ideas/Reviews 1 25th January 2005 02:20 PM
Can JDM program 16F628 ??? dy001 Micro Controllers 3 25th September 2003 04:06 PM



All times are GMT. The time now is 09:46 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker