I did a clean install and was able to compile the sample programs which are configured for 16f877a. However, when I changed the #chip directive to 16f886, the assembler said it could not recognize the chip type. I checked and there is a file of 886 in the chiptype directory... I tried 883, but that did not work either. Thanks for any advice.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The version of gputils included with GCBASIC dates from 2006, if you download and install the newest version from http://gputils.sourceforge.net/ there should be no problems with the '886.
I mostly use GCBASIC's internal assembler.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
During the last couple weeks I Installed GCBASIC onto Ubuntu9.04.
Now My 16F886 does compile on the GCBASIC assembler.
When I was on Windows XP using GCBASIC from early 2008 the 16F886 woudn't assemble on the GCBASIC so I went to the Microchip assembler.. then it worked fine but extra steps.
Below is the first few lines of a program that runs.
Just thought I would let you know it does work on a 16F886 and I have made a couple projects with that chip and GCBASIC... thanks Hugh!
Mike
'General hardware configuration
#chip 16F886,4
'LCD connection settings
#define LCD_IO 4
#define LCD_DB4 PORTB.4
#define LCD_DB5 PORTB.5
#define LCD_DB6 PORTB.6
#define LCD_DB7 PORTB.7
#define LCD_RS PORTB.1
#define LCD_RW PORTB.2
#define LCD_Enable PORTB.3
#define RELAY PORTB.0
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I did a clean install and was able to compile the sample programs which are configured for 16f877a. However, when I changed the #chip directive to 16f886, the assembler said it could not recognize the chip type. I checked and there is a file of 886 in the chiptype directory... I tried 883, but that did not work either. Thanks for any advice.
There are three options - use MPASM, use GCBASIC's built in assembler, or update gputils.
Instructions on using MPASM or GCBASIC's assembler are at https://sourceforge.net/forum/forum.php?thread_id=1675925&forum_id=579126
The version of gputils included with GCBASIC dates from 2006, if you download and install the newest version from http://gputils.sourceforge.net/ there should be no problems with the '886.
I mostly use GCBASIC's internal assembler.
During the last couple weeks I Installed GCBASIC onto Ubuntu9.04.
Now My 16F886 does compile on the GCBASIC assembler.
When I was on Windows XP using GCBASIC from early 2008 the 16F886 woudn't assemble on the GCBASIC so I went to the Microchip assembler.. then it worked fine but extra steps.
Below is the first few lines of a program that runs.
Just thought I would let you know it does work on a 16F886 and I have made a couple projects with that chip and GCBASIC... thanks Hugh!
Mike
'General hardware configuration
#chip 16F886,4
'LCD connection settings
#define LCD_IO 4
#define LCD_DB4 PORTB.4
#define LCD_DB5 PORTB.5
#define LCD_DB6 PORTB.6
#define LCD_DB7 PORTB.7
#define LCD_RS PORTB.1
#define LCD_RW PORTB.2
#define LCD_Enable PORTB.3
#define RELAY PORTB.0