PIC18f4550 error


Results 1 to 2 of 2

Threaded View

  1. #2
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by williamlaw View Post
    the problem is that nothing happens at the portb pins.........
    #include <p18f4550.h>
    #include <PIC18f4550w.h>

    void main(void)
    {

    TRISD = 0;
    PORTD = 0xff;
    while (1)
    {
    }
    }
    Looks more like C than PicBasic to me, but to state the obvious, you want port B to go high, but you are telling port D to go high?

    Also, if using PicBasic, you can use Darrels handy dandy all digital to set up all your pins to be digital. This saves some time. But you will have to use basic commands that PicBasic will accept.

    See http://www.picbasic.co.uk/forum/showthread.php?t=11100
    Last edited by ScaleRobotics; - 14th May 2009 at 19:43.
    http://www.scalerobotics.com

Similar Threads

  1. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  2. Optimizing DIV
    By skimask in forum mel PIC BASIC Pro
    Replies: 41
    Last Post: - 22nd September 2008, 04:58
  3. pbp245 compliation error
    By Woodzy in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 25th July 2006, 05:59
  4. 16F88 Compile error
    By Toley00 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 2nd November 2005, 00:22
  5. Compiler/Assembler Error
    By LT_Pic in forum General
    Replies: 7
    Last Post: - 21st July 2005, 09:47

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