+ Reply to Thread
Page 2 of 2
First 1 2
Results 16 to 18 of 18

Thread: 16f84 asm to 16f628

  1. #16
    eblc1388 Excellent eblc1388 Excellent eblc1388 Excellent eblc1388 Excellent eblc1388 Excellent
    Join Date
    Jan 2005
    Location
    UK
    Posts
    2,226

    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


  2. #17
    _ab
    _ab is offline
    _ab Newbie
    Join Date
    Oct 2005
    Posts
    16

    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

    :-)))

  3. #18
    lamusekeif Newbie
    Join Date
    Nov 2008
    Posts
    1

    Default

    how I can put the lcd in the pic16F628

+ Reply to Thread
Page 2 of 2
First 1 2

Similar Threads

  1. 16F628 projects?
    By epilot in forum Micro Controllers
    Replies: 15
    Latest: 16th April 2008, 03:58 AM
  2. 16F84 vs 16F628
    By Nigel Goodwin in forum Micro Controllers
    Replies: 18
    Latest: 24th October 2006, 07:25 PM
  3. code convertion 16F628 -> 16F84
    By patroclus in forum Micro Controllers
    Replies: 6
    Latest: 6th April 2006, 08:35 PM
  4. Proyect Board for 16F84 or 16F628 ???
    By terka in forum Electronic Projects Design/Ideas/Reviews
    Replies: 1
    Latest: 25th January 2005, 01:20 PM
  5. Can JDM program 16F628 ???
    By dy001 in forum Micro Controllers
    Replies: 3
    Latest: 25th September 2003, 03:06 PM

Tags for this Thread