PULSIN ON PORTF and PORTG ON 16F1947


Results 1 to 26 of 26

Threaded View

  1. #12
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838


    Did you find this post helpful? Yes | No

    Default Re: PULSIN ON PORTF and PORTG ON 16F1947

    OK ART ,
    please see attached - code 2 is portE.4 working - see hex

    code 3 port F.0 not working - see hex





    Code:
    '----------- main program ---------------
     Main:
      
    ' code 2 test 
    '   '================= PORT E upper ================
    @ nop
    @ nop
    @ nop
    
       pulsin PORTE.4,1,lEADER 
    @ nop
    @ nop
    @ nop
        iF lEADER >0  THEN 
         WRITE $A8,lEADER.HIGHBYTE
         WRITE $A9,lEADER.LOWBYTE 
       ENDIF 
      
      
      
      Goto main
    
    '------------------------------------------



    Code:
    '----------- main program ---------------
     Main:
      
    ' code ver 3 test
    '   '================= PORT E upper ================
    @ nop
    @ nop
    @ nop
    
       pulsin PORTF.0,1,lEADER 
    @ nop
    @ nop
    @ nop
        iF lEADER >0  THEN 
         WRITE $A8,lEADER.HIGHBYTE
         WRITE $A9,lEADER.LOWBYTE 
       ENDIF 
      
      
      
      Goto main
    Attached Files Attached Files

Similar Threads

  1. Replies: 10
    Last Post: - 26th November 2013, 09:38
  2. 18F8722 PortF Problem
    By shawn in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 27th May 2011, 03:30
  3. 18f4550 USB and pulsin or pulsin alternative
    By vacpress in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th January 2009, 14:14
  4. Strange behavior - PORTG.2, 18F8720
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 12th January 2009, 00:30
  5. Pulsin
    By droptail in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 6th March 2006, 18:03

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