Jump to content

IceKold0

EstablishedMember
  • Content Count

    5
  • Joined

  • Last visited

Everything posted by IceKold0

  1. I'm going to be a complete pain in the butt here everyone - sorry! Firstly, I am absolutely loving using SourceBoost BoostC. The IDE is fantastic and the language is very clean and easy to understand. OK, to my situation! My project is to build a GPS NMEA signal to LCD using a microcontroller. I would (at minimum) like to take one of the standard $GPRMC or $GPGGA strings that is being output by a GPS device (a Garmin eTrex), extract the information (lat, long, date, time, number of satellites) and output them onto the LCD screen. As from my previous post (getting an output onto LCD from a 16F627) you can probably tell that I'm a "n00b" when it comes to PIC programming. I'm a web programmer by nature! I shalln't be transmitting any data TO the GPS device, simply receiving only. Reading a couple of the posts by other sourceboost forum users I am still very confused - well, my rugby sesh nickname is "Useless"!! I was wondering if anyone could help me with incorporating the 16F627 on-board USART so that I can get a HyperTerminal string that I type in (using Windows Xp Pro) and is then output onto the LCD. (To simulate the NMEA signal). I have already implemented the LCD using PORTB of the 16F672 and this works great. I shall assume I can use the PIC's PORTA to be my GPS input port using PORTA's pins as the USART TX and RX (although I'll only need RX)? I have a MAX232 IC - Will I need to use this if I'm simply using my PC serial port and then, ultimately, will be using a low powered GPS device in place of the PC RS232? I'm trying to not be too demanding - I've read soo many posts where people sound like they are "demanding" assistance. I don't roll like that, you're the specialists and you're doing us a favour. The only code I have is my basic "Hello World" that is printed to the LCD from the 16F627 so I have nothing to show you. Pointers in the right direction, basic code examples for the 16F627 would be an excellent help. Many Thanks IceKold0
  2. OK, I'm a plonker... The correct pragma configuration word might be helpful... *DOH* *DOH* *DOH* AND The negative voltage to supply the contrast pin? Now positive and working fine 'n' dandy... Sorry guys and girls! At least I'm finding and resolving the problem myself lol!
  3. Hi everyone, I'm having some 'reet problems getting any output to a 44780 16x2 LCD driven by a 16F627. I use BoostC with SourceBoost IDE and have also purchased the plug-ins pack. I have spent a good number of days trying to get even a basic "Hello World" output onto the LCD display on my breadboard circuit. My Schematic is as follows: Note: My schematic shows that the contrast pin of the 44780 is "not connected" - it IS connected using a 10K potentiometer that provides an approximate NEGATIVE 2V (-2V). The BoostC code for my 16F627 is as follows: #include <system.h> #define LCD_ARGS 2, /* Interface type: mode 0 = 8bit, 1 = 4bit(low nibble), 2 = 4bit(upper nibble) */ \ 0, /* Use busy signal: 1 = use busy, 0 = use time delays */\ PORTB, TRISB, /* Data port and data port tris register */ \ PORTB, TRISB, /* Control port and control port tris register */ \ 0, /* Bit number of control port is connected to RS */ \ 2, /* Bit number of control port is connected to RW */ \ 1 /* Bit number of control port is connected to Enable */ #include <lcd_driver.h> // include the LCD template code //Target PIC16F627 configuration word #pragma DATA _CONFIG, _PWRTE_ON & _WDT_OFF & _XT_OSC & _CP_OFF //Set clock frequency #pragma CLOCK_FREQ 4000000 void main() { //Configure port A trisa = 0x00; //Configure port B trisb = 0x00; //Initialize port A porta = 0x00; //Initialize port B portb = 0x00; cmcon = 7; //disable comparators //Endless loop while( 1 ){ lcd_setup(); lcd_gotoxy(0,0); lprintf( "First line" ); lcd_gotoxy(0,1); lprintf( "Second line" ); // Flash a LED to check program is running. set_bit( portb, 3 ); delay_ms( 250 ); clear_bit( portb, 3 ); delay_ms( 250 ); } } The program compiles and builds without errors and I then use my programmer to programme the 16F627. Powering on the circuit I ONLY get the flashing LED - this I have set to show that the program is running. The LCD shows 2 lines of solid squares. Now, when I debug the code using the SourceBoost IDE plug-ins (alphanumeric plug-in) I receieve the correct output of: First Line Second Line on the software LCD. I have played around with the contrast voltages from positive voltages (up to +5V), to tieing the contrast pin to 0V; and now I have tried it with negative voltages (down to -5V). All the include files are in the correct folders (otherwise it wouldn't compile). Any help would be fantastic... it's part of my final year university project! IceKold0
  4. The plugins need to be registered before they will work and give you exactly this error. Run preg.exe, select the plugins radio button and enter the name and key supplied on the plugin license. Regards Dave Aye, my bad I found it out just now and instantly thought to myself "DOH"! thank You anyway Dave
  5. Hi Guys & Girls, I have recently downloaded and installed SourceBoost IDE v6.84 as per the instructions on the sourceboost website. This was 100% successful. I then dowloaded and installed the plug-ins package (obviously I had closed down the main IDE program) After the plug-ins package had installed I ran the preg.exe program (both preg.exe and ide.exe are in the same directory). This ran successfully with my name, serial and choice of "SourceBoost IDE" radio button selected. -> resulted in a popup message saying that it had completed successfully. After clicking "Exit" on preg.exe this triggered SourceBoost IDE to load and open the workspace I had previously been working on. I would have expected the plug-ins to have loaded and been available (along with a success message at the output box)... no such luck I'm afraid! Ready... Loading plugins... Plugin 'Digital Volt Meter' needs to be registered and unlocked. Was not loaded. (For registration visit http://www.sourceboost.com) Plugin 'I2c EEprom' needs to be registered and unlocked. Was not loaded. (For registration visit http://www.sourceboost.com) Plugin 'LCD AlphaNumeric' needs to be registered and unlocked. Was not loaded. (For registration visit http://www.sourceboost.com) Plugin 'Signal Generator' needs to be registered and unlocked. Was not loaded. (For registration visit http://www.sourceboost.com) Plugin 'Logic Analyzer' needs to be registered and unlocked. Was not loaded. (For registration visit http://www.sourceboost.com) Plugin 'Stop Watch' needs to be registered and unlocked. Was not loaded. (For registration visit http://www.sourceboost.com) Ready... This is my output when I first run SourceBoost IDE. I assure you the plug-ins have been registered and unlocked... Any assistance in resolving this problem would be greatfully appreciated. Many Thanks Chris
×
×
  • Create New...