Is not correct for MPASAM.Code:@ device pic16F887, HS_OSC
Try
Code:@ __config _CONFIG1, _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_OFF & _LVP_OFF & _CP_OFF OSCCON = %01110000 '8 Mhz DEFINE OSC 8
Is not correct for MPASAM.Code:@ device pic16F887, HS_OSC
Try
Code:@ __config _CONFIG1, _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_OFF & _LVP_OFF & _CP_OFF OSCCON = %01110000 '8 Mhz DEFINE OSC 8
Last edited by mackrackit; - 30th November 2010 at 13:58. Reason: Setup for internal OSC
Dave
Always wear safety glasses while programming.
Hi,
thats the same line from the Inc file: 16F887.INC except for the oscillation.
Why doesn't it work in MPlab ??? does it read the INC files ??? maybe there a configuration that I need to point to that file ??
K
Because @ DEVICE is for PMWhy doesn't it work in MPlab ???
The inc file tells you that.
Dave
Always wear safety glasses while programming.
Ooo yes in the comment on topI will try this . I would rather learn MPlab then installing XP on my Win 7 machine.
You do not have to learn MPLAB. If you are using Micro Code Studio, or whatever for an editor, just tell it to use MPASM for the assembler.
Dave
Always wear safety glasses while programming.
HUmmm..
I am using Notepad++ as my editor and just use the command in Dos to complie. Iwould use MPLAB strictly to program my chip.
Now that I have Win7, I cannot compile in Dos and I found out how in MPLAB.
Why would I want to use MPASM for the assembler as you mention earlier ??
What is that going to give me more, any advantage ?
thanks
K
You can still use DOS.
Here is the guts of a *.bat file. Running Win7 64 bit.
Change the paths and file name as needed.
Code:cd c:\pbp\pbpw -e -s -ac:\C:\Program Files (x86)\Microchip\MPASM Suite -p16f676 C:\PICPROGS\T1\T1.bas cd C:\Program Files (x86)\Microchip\MPASM Suite MPASMWIN.exe /e C:\PICPROGS\T1\T1.ASM cd\Because you need it for the 18F parts and basically more advanced "stuff".Why would I want to use MPASM for the assembler as you mention earlier ??
Last edited by mackrackit; - 30th November 2010 at 18:55.
Dave
Always wear safety glasses while programming.
Bookmarks