PULSIN ON PORTF and PORTG ON 16F1947


Closed Thread
Results 1 to 26 of 26

Hybrid View

  1. #1
    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

  2. #2
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: PULSIN ON PORTF and PORTG ON 16F1947

    Well bummer, it appears Windows 7 can't run ICprog
    It has a free 16F disassembler, although outdated, it should still translate opcodes that it understands.

    So I bit the bullet and had a look at your asm file, but that isn't assembler,
    only some intermediate file between PBP and asm perhaps.
    All of the PBP instructions are present on the right, but the main text is some gibberish.

    This leads me to question how anyone is disassembling a PBP hex in this era.
    The defines for bank switching (all banks) are all there, and the include file
    certainly does appear to know all there is to know about the chip.

    Now it seems I have a problem of my own!
    I would not use PBP with a chip any later than 16F628, 16F877, etc.
    if you could not fully disassemble it.

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