16F628A - Stops if release power switch.


Closed Thread
Results 1 to 17 of 17

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    974


    Did you find this post helpful? Yes | No

    Default

    I'm not sure if this is what you're looking for. I think there should be an END statement just above the Delay routine or a GOTO loop if you want to repeat the sequence.

    Code:
    	movwf	LEDPORT	
    	call	Delay
    	call	Delay	
    	   bcf	    LEDPORTA0, LEDA0	                    ; RA0 off
                 
                 END  ; if you want to stop right here
                 GOTO loop   ; if you want to repeat some section of code.  Ofcourse you have to 
                                  ; put the label 'loop' where you want it.
    ;-------------------------------------------------------------------------------------
    
    Delay	movlw	d'250'			;delay 250 ms (4 MHz clock)
    	movwf	count1

  2. #2
    Join Date
    Feb 2009
    Posts
    4


    Did you find this post helpful? Yes | No

    Default

    So far, so good. We need a schematic to solve problem #1, however.

Similar Threads

  1. Switch mode power supply Pic Micro
    By iw2fvo in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 29th July 2009, 13:11
  2. Battery powered applications
    By NavMicroSystems in forum Off Topic
    Replies: 7
    Last Post: - 22nd June 2009, 07:12
  3. Replies: 3
    Last Post: - 29th April 2009, 00:45
  4. 'Soft' On/Off Power Switch
    By Art in forum General
    Replies: 19
    Last Post: - 14th November 2008, 01:54
  5. Newbie - 16F628A and switch latching
    By malc-c in forum mel PIC BASIC Pro
    Replies: 45
    Last Post: - 19th May 2006, 02:35

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts