Help with code


Closed Thread
Results 1 to 28 of 28

Thread: Help with code

Hybrid View

  1. #1
    Join Date
    Jul 2007
    Posts
    48

    Default Help with code

    Hi this is my current code (all)
    I use MicroCode Studio Plus with PICBASIC PRO compiler.

    Code:
    loop:   high portb.1
            pause 500
            low portb.1
            pause 500
            goto loop
            end
    And when I transfer it to my PIC16F648A, my led connected to RB1 doesnt blink (the led is working)

    Its connected like this:



    Someone told me that I might be something with CONFIG Bits but he couldnt help me casue he use assembler..

    Versions:


    Programmer is Wisp628+xwisp2161

    Config fuses, no idea..
    Last edited by xobx; - 12th July 2007 at 15:13.

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

  3. #3
    Join Date
    Jul 2007
    Posts
    48


    Did you find this post helpful? Yes | No

    Default

    Is this better?

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by xobx View Post
    Is this better?
    A bit...
    Still don't know which version of PBP, MCS+, or MPLAB you are using...
    Don't know which programmer and/or version of software/firmware...
    Don't know which config fuses are set (or at least you THINK are set)...

  5. #5
    Join Date
    Jul 2007
    Posts
    48


    Did you find this post helpful? Yes | No

    Default

    Now then..

    And any help would be appreciate..

  6. #6
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by xobx View Post
    Now then..
    And any help would be appreciate..
    Ok, that's a fair bit better yet...
    Now then...What does the PBP manual say about oscillator selections?
    Also, do a readback of your 'config word' and match it up with the datasheet's explanations.
    What do you come up with?

Similar Threads

  1. Reading in Manchester code
    By brid0030 in forum Code Examples
    Replies: 0
    Last Post: - 10th March 2009, 21:55
  2. How much code space do PBP statements use.
    By Darrel Taylor in forum Code Examples
    Replies: 5
    Last Post: - 13th February 2009, 21:31
  3. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  4. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  5. Re-Writing IF-THEN-AND-ENDIF code?
    By jessey in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 18th August 2006, 17:23

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