Did you comment the lines in the 16F690.inc file that is in the PBP directory? Like the config thread pointed out.
In MCS do you have the box checked to use MPASM?
Did you comment the lines in the 16F690.inc file that is in the PBP directory? Like the config thread pointed out.
In MCS do you have the box checked to use MPASM?
Dave
Always wear safety glasses while programming.
The default install of Pic Basic Pro is in C:\PBP. That is where you will find all of the *.inc files for PBP.
Dave
Always wear safety glasses while programming.
I cant do it because I have the demo version of PBP,is other way to do that?
I have not had the demo version for a long time. I think the only thing you cannot do with the demo for the chips it supports is write code over a certain size.
The install directory might be named something else though, so you will have to look around.
Dave
Always wear safety glasses while programming.
Results:Code:;**************************************************************** ;* 16F690.INC * ;* * ;* Notice : Copyright (c) 2006 microEngineering Labs, Inc. * ;* All Rights Reserved * ;* Date : 05/23/06 * ;* Version : Demo * ;* Notes : * ;**************************************************************** NOLIST __config _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_ON & _CP_OFF NOLIST endif LIST '16F690 DEMO_2 ' DEFINE OSC 8 'Comment the 4Mhz and uncomment these for 8Mhz ' OSCCON=%01110000 DEFINE OSC 4 'This is the default setting OSCCON=%01100000 @ __config _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_ON & _CP_OFF TRISC = %00000000 '0 will make the pins an output, 1 will make them inputs START: PORTC = %00000001 PAUSE 250 PORTC = %00000010 GOTO START
ERROR Line 12: Syntax error.(16F690.INC)
ERROR Line 13: Redefinition of LABEL NOLIST.(16F690.INC)
ERROR Line 14: ENDIF without a matching IF..THEN.(16F690.INC)
Did it again.I opened from the open file-16F690.INC and paste your code plus another file where past your code
First is 16F690.INC second is the code I paste it from youCode:;**************************************************************** ;* 16F690.INC * ;* * ;* Notice : Copyright (c) 2006 microEngineering Labs, Inc. * ;* All Rights Reserved * ;* Date : 05/23/06 * ;* Version : Demo * ;* Notes : * ;**************************************************************** NOLIST __config _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_ON & _CP_OFF NOLIST endif LIST '16F690 DEMO_2 ' DEFINE OSC 8 'Comment the 4Mhz and uncomment these for 8Mhz ' OSCCON=%01110000 DEFINE OSC 4 'This is the default setting OSCCON=%01100000 @ __config _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLR_ON & _CPD_OFF TRISC = %00000000 '0 will make the pins an output, 1 will make them inputs START: PORTC = %00000001 PAUSE 250 PORTC = %00000010 GOTO START
Results:Code:'**************************************************************** '* Name : UNTITLED.BAS * '* Author : [select VIEW...EDITOR OPTIONS] * '* Notice : Copyright (c) 2009 [select VIEW...EDITOR OPTIONS] * '* : All Rights Reserved * '* Date : 23/08/2009 * '* Version : 1.0 * '* Notes : * '* : * '**************************************************************** '16F690 DEMO_2 ' DEFINE OSC 8 'Comment the 4Mhz and uncomment these for 8Mhz ' OSCCON=%01110000 DEFINE OSC 4 'This is the default setting OSCCON=%01100000 __config _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_ON & _CP_OFF TRISC = %00000000 '0 will make the pins an output, 1 will make them inputs START: PORTC = %00000001 PAUSE 250 PORTC = %00000010 GOTO START
ERROR Line 17 : Syntax error.(led.pbp)
I dont understand nothing,so hard is it to create a code?!?...or I am really dumb?
Bookmarks