18F4431 SSPCON.5 syntax error


Closed Thread
Results 1 to 1 of 1

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Brussels, Belgium
    Posts
    104

    Default 18F4431 SSPCON.5 syntax error

    Why would I get a syntax error with this line ?

    SSPCON.5=0

    I want to turn off the SSP module so I can use the external interrupt pins on PortC but when I compile I get a syntrax error.

    I've checked the 18FXX31 datasheet and SSPCON is the right control register and bit 5 disables the serial port and configures the pins as I/O port pins.

    Andrew

    Fixed: http://www.picbasic.co.uk/forum/showthread.php?t=7920
    Last edited by AndrewC; - 22nd March 2009 at 15:09. Reason: found solution

Similar Threads

  1. Using input from Switch to control a loop
    By MrRoboto in forum mel PIC BASIC
    Replies: 9
    Last Post: - 2nd February 2009, 05:02
  2. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  3. Optimizing DIV
    By skimask in forum mel PIC BASIC Pro
    Replies: 41
    Last Post: - 22nd September 2008, 04:58
  4. pbp245 compliation error
    By Woodzy in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 25th July 2006, 05:59
  5. 16F88 Compile error
    By Toley00 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 2nd November 2005, 00:22

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