Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Gues7

  • Rank

Profile Information

  • Gender
  • Location
  1. Many thanks Carlos, it is indeed working now, it appears the #define arguments for the lcd display must be included BEFORE the #include <lcd_driver.h>. Also, there is an error in my #define LCD_ARGS thingy Thanks Carlos!
  2. Anyone have any ideas? I've tried a load of things such as including the header files in the project, copying the template out into it... I cant find any significant difference between this and the example... Thanks in advance
  3. Serial Tx/Rx In Bitbanged and UART mode I2C Tx/Rx bitbanged (and in hw if available) 1 Wire Tx/Rx bitbanged (and hw if available) LCD Interface (HD44780 & Nokia) EEPROM (internal/external) I think they would be pretty cool... I know there is code there already for a lot of it, but I think some of the documentation could be improved on it... also, any other examples, maybe tying some of them together would be cool... I think a beneficial addition would be a site, or sub-section of the main sourceboost page in which people could showcase or describe their projects would allow for a lot of interesting code to be published and documented...
  4. I placed my opinion of BoostC and my future intentions on http://www.theobsolete.com, here is a quote...
  5. I have been trying to get the LCD Driver routines working on the PIC16F684 (Which is properly defined in the project file) however, when executing the lcd_setup(), lcd_clear() and lprintf() functions I get errors, the lcd_driver.h file is definitely included. I have also checked the lcd sample project to ensure I wasnt missing any other header or library files from the project, I dont believe I am... The code I am using is: /* BoostC HD44780 Interface */ #include <system.h> #include <lcd_driver.h> //#prgama CLOCK_FREQ 8000000 #pragma DATA _CONFIG, _BOD_OFF & _MCLRE_OFF & _PWRTE_ON & _WDT_OFF & 0x3FFC & _HS_OSC & _CP_OFF & _IESO_OFF & _FCMEN_OFF & _CPD_OFF /* 1 2 3 4 5 6 7 8 9 10 1: BROWNOUT DETECT DISABLED 2: MCLR DISABLED 3: POWER UP TIMER ENABLED 4: WATCH DOG TIMER DISABLED 5: INTERNAL OSC, NO OUTPUT 6: HIGH SPEED OSC 7: CODE PROTECT DISABLED 8: INTERNAL/EXTENRAL SWITCHOVER DISABLED 9: FAIL SAFE CLOCK MONITOR DISABLED 10: EEPROM CODE PROTECT DISABLED */ #define LCD_ARGS 2, 1, portc, trisc, porta, trisa, 0, 1, 2 /* 1 2 3 4 5 6 7 8 9 1: 4BIT INTERFACE MODE, NOW NIBBLE 2: USE BUSY SIGNAL, NOT DELAYS 3: USE PORTC FOR DATA REGISTER 4: THE TRIS ADDRESS FOR PORTC 5: USE PORTA FOR CONTROL REGISTER 6: THE TRISS ADDRESS FOR PORTA 7: BIT NUMBER OF CONTROL PORT FOR RS 8: BIT NUMBER OF CONTROL PORT FOR RW 9: BIT NUMBER OF CONTROL PORT FOR EN */ void main(void){ cmcon0 = 0; //DISABLE COMPARATORS adcon1 = 14; porta = 0; //CLEAR PORTA portc = 0; //CLEAR PORTC //char myString[5] = ['G', 'u', 'e', 's', '7']; //THE STRING TO BE OUTPUT int i; lcd_setup(); //ENSURE EVERYTHING IS READY FOR THE LCD lcd_clear(); //CLEAR THE LCD for(i=0; i<=4; i++) { //LOOP THROUGH THE ELEMENTS IN THE ARRAY lprintf("Gues7"); //AND PRINT THEM TO THE LCD }//rof while(1); }//naim And the errors I receive are: At the minute, I am just trying to learn all og the functions of the BoostC libraries so in the event of having to use them, I can do it in a snap, any help on the matter would be much appreciated. Thanks Also... just an FYI for Dave, I got an error regarding _INTRC_OSC_NOCLK when I was using it in my device configuration... so I read the value out of the header file and that works without a problem... it seems the compiler had not got _INTRC_OSC_NOCLK defined, although it IS in the header file, and it IS spelled correctly (first thing I checked)
  6. Im new to using BoostC, I recently bought a standard license copy from Maplin (Ireland), but I am having a few issues when trying to compile some code... /* SERIAL RGB LED CONTROLLER STEVEN MOUGHAN P: PIC12F675 C: 4MhZ DESIGNED USING SOURCEBOOST IDE COMPILE USING BOOSTC GPIO0: RED PWM : OP GPIO1: GRN PWM : OP GPIO2: BLU PWM : OP GPIO3: MCLR : IP GPIO: SERIAL TX : OP GPIO: SERIAL RX : IP 1ms xxxxxxxx xx xxxxxxxx p 2ms START BIT(1) -> ADDRESS -> FUNCTION -> VALUE -> STOP BIT(0) ADDRESS: 0x00 is reserved for broadcast FUNCTION: 0X00 RED, 0X01, GREEN, 0X02 BLUE, 0X03 SET ADDRESS VALUE: RANGES FROM 0X00 TO 0XFF USES EVEN PARITY PERIOD OF EACH BIT IS ?? HTTP://WWW.BUILDFUNSTUFF.COM */ // INCLUDE FILES #include <system.h> //#include <eeprom.h> //#include <PIC12F675.h> //PRAGMA'S #pragma OPTIMIZE "a" //AGGRESSIVE OPTIMIZATION #pragma CLOCK_FREQ 4000000 //INTERNAL OSC SPEED #pragma DATA _CONFIG, _CP_OFF & _BODEN_OFF & _MCLRE_ON & _WDT_OFF & _HS_OSC & _INTRC_OSC_NOCLKOUT & _PWRTE_ON & _CPD_OFF //CODE PROTECT OFF //BROWN OUT DETECT OFF //MCLR ON //WATCH DOG TIMER OFF //HIGH SPEED OSC //INTERNAL OSC, NO OUTPUT CLOCK //POWER UP TIMER ON //WTF IS CPD? #pragma DATA _EEPROM, 0b00000001 //DEFAULT ADDRESS: 0x01 //CUSTOM DEFINES #define EADDR 0 //FUNCTION PROTOTYOPES void setNewAddress(char newAddress); //GLOBAL VARIABLES char myAddress=0; void main(void) { myAddress = eeprom_read(EADDR); //READ THE ADDRESS OF THE UNIT FROM EEPROM trisio = 0b00010111; //SET THE I/O DIRECTIONS } void setNewAddress(char newAddress) { eeprom_write(newAddress, EADDR); myAddress = newAddress; } I receive the following errors... and when I uncomment the #include <eeprom.h> file I get the following errors... I have never encountered such errors using other compilers so Im kinda stumped... I have tried playing around with a few bits and pieces but to no solution. Thanks in advance for any replies I might get.
  • Create New...