Code works on 16F84A but not on 16F88?


Results 1 to 8 of 8

Threaded View

  1. #4


    Did you find this post helpful? Yes | No

    Default

    Definitely getting somewhere. I have the PIC working, but it's blinking the wrong pin! As far as I can tell, it SHOULD be blinking RB4, pin 10, but it is actually blinking RB0, pin 6. It's also not blinking as fast as it should - it should change states every 5 ms, but it's changing about every 1 s. Is there some reason RB0 would hop up and down? It's the same on two different chips as well.

    Code:
    @ DEVICE PIC16F88, MCLR_ON, HS_OSC, WDT_OFF, LVP_OFF, BOD_OFF, PWRT_ON, PROTECT_OFF
    
    ANSEL = 0
    CMCON = 7
    
    TRISB.4 = 0
    
    LED var	PORTB.4
    
    blink:	LED = 1
    	Pause 5
    	LED = 0
    	Pause 5
    	goto blink
    End
    This is encouraging but I've got a long way to go if I can't even get the 'F88 to blink the right port pin...
    Last edited by pharaohamps; - 6th November 2009 at 16:40.

Similar Threads

  1. Can't get a 16F88 to do anything.
    By ccowley in forum General
    Replies: 14
    Last Post: - 26th August 2008, 00:42
  2. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 09:26
  3. Error code [112]/[113]
    By Dj tempo in forum General
    Replies: 3
    Last Post: - 17th June 2007, 17:15
  4. Code: Why is this code greater than 2000 words?
    By DrDreas in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 1st June 2007, 20:51
  5. Replies: 1
    Last Post: - 31st August 2005, 21:00

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