Hi everyone,
I am trying to use PicBasic Pro to set up SPI communication on an 18F4431 and am having the following problem: whenever I try to set the SSPCON register (one of the control registers used by the SSP module), the compiler seems to have problems recognizing the name.
Has anyone been able to successfully set up SPI communication using PicBasic Pro?
Anyway, this is the code:
SSPCON = %0011000 ;this is line 31.
;WCOL clear word collision indicator
;SSPOV overflow indicator
;SSP enabled
;idle state for clock is high
;SPI master mode, clock is Fosc/4.
This is the error I get:
Executing: "C:\PBP\PBPW.EXE" -ampasmwin -oq -z -p18F4431 "mstr.bas"
PicBasic Pro Compiler 2.46, (c) 1998, 2005 microEngineering Labs, Inc.
All Rights Reserved.
C:\SPI TEST PLATFORM\MASTER\MSTR.BAS ERROR Line 31: Syntax error.Skipping link step. Not all sources built successfully.
BUILD FAILED: Mon Jan 21 18:18:31 2008
Regards,
Steve
Bookmarks