Very raw to this, could someone please tell me where I have gone wrong, or maybe what I don't quite understand. My problem is that I get compiler errors like "Error in library lcd.h:SYSLCDTEMP.) is not a valid I/O pin or port. What I did was attempt a very simple "flash led" program. But as I can see in Hardware there is a box Device Settings "Liquid Crystal Display", what to do to compile without including reference to an LCD display, the drop down list other options but I am not sure how to use this configuration section as yet. Is there a more concise text that explains all the ins and outs of this rather clever software. I would appreciate the help of others somewhat more conversant than I, Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
That error usually means you've added an LCD icon without entering the appropriate hardware settings. I'm not sure why you'd get it for an LED flashing program though!
Could you please copy and paste your code here? To do this, click the View menu in GCGB, then View as Text. Then, you should be able to copy the whole program.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The cause of the trouble here is the "flash:" label. Flash is a constant inside the LCD routines, where it is used as an option for the cursor mode. This is a bit confusing and I would like to change this, but am not sure if doing so would cause problems for existing programs.
The easy way to fix it is to change the "flash:" label to something else.
Another option is to replace the label and the Goto with a Do loop, like this:
;Chip Settings
#chip 16F877A,4
#config OSC=XT
Do Forever
Set PORTA.0 On
Wait 1 s
Set PORTA.0 Off
Loop
The code that is sent to the chip will be identical, but this way the compiler will create the required label and goto for you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Simply fantastic, I completely understand now what is going on, it is about understanding what one can or can't use, not a problem so long as I can get a list of possible don'ts within the software.Have you created a list somewhere ?
Having said that, you have got to be kidding, there is no way I was expecting a reply as quick as this. Wish people like you where running the utility and phone companies I have had to deal with, service is not their area of expertise.
My very grateful thanks to you, congrats.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There isn't currently a list of words that the compiler uses. You can find out if a word is used with the search tool in Windows - in XP, go to the GCBASIC include folder (probably C:\Program Files\Great Cow Graphical BASIC\include if you're using GCGB). Click on the Search button, and then tell it to search all files and folders. Then, type the word you want to check in the "A word in the file or folder" box, and click search. If anything comes up, there's a chance that the word occurs.
However, it's generally pretty unusual to come across a word that you can use. Most of the time, things inside GCBASIC have a short prefix before them to indicate what they do - for example, in the USART code, nearly everything has "HSer" or "Ser" at the start of the name.
So basically, choose the name that seems most logical, and don't worry about it unless you get a weird error message!
(Also, reply time does tend to vary a lot, but if it's an easy question and I'm in front of the computer not doing anything at the time, I'll answer straight away!)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Very raw to this, could someone please tell me where I have gone wrong, or maybe what I don't quite understand. My problem is that I get compiler errors like "Error in library lcd.h:SYSLCDTEMP.) is not a valid I/O pin or port. What I did was attempt a very simple "flash led" program. But as I can see in Hardware there is a box Device Settings "Liquid Crystal Display", what to do to compile without including reference to an LCD display, the drop down list other options but I am not sure how to use this configuration section as yet. Is there a more concise text that explains all the ins and outs of this rather clever software. I would appreciate the help of others somewhat more conversant than I, Thanks.
That error usually means you've added an LCD icon without entering the appropriate hardware settings. I'm not sure why you'd get it for an LED flashing program though!
Could you please copy and paste your code here? To do this, click the View menu in GCGB, then View as Text. Then, you should be able to copy the whole program.
;Chip Settings
#chip 16F877A,4
#config OSC=XT
flash:
Set PORTA.0 On
Wait 1 s
Set PORTA.0 Off
Goto flash
Thank you for your very quick reply, fantastic ! Hope you can assist, thanks
The cause of the trouble here is the "flash:" label. Flash is a constant inside the LCD routines, where it is used as an option for the cursor mode. This is a bit confusing and I would like to change this, but am not sure if doing so would cause problems for existing programs.
The easy way to fix it is to change the "flash:" label to something else.
Another option is to replace the label and the Goto with a Do loop, like this:
;Chip Settings
#chip 16F877A,4
#config OSC=XT
Do Forever
Set PORTA.0 On
Wait 1 s
Set PORTA.0 Off
Loop
The code that is sent to the chip will be identical, but this way the compiler will create the required label and goto for you.
Simply fantastic, I completely understand now what is going on, it is about understanding what one can or can't use, not a problem so long as I can get a list of possible don'ts within the software.Have you created a list somewhere ?
Having said that, you have got to be kidding, there is no way I was expecting a reply as quick as this. Wish people like you where running the utility and phone companies I have had to deal with, service is not their area of expertise.
My very grateful thanks to you, congrats.
There isn't currently a list of words that the compiler uses. You can find out if a word is used with the search tool in Windows - in XP, go to the GCBASIC include folder (probably C:\Program Files\Great Cow Graphical BASIC\include if you're using GCGB). Click on the Search button, and then tell it to search all files and folders. Then, type the word you want to check in the "A word in the file or folder" box, and click search. If anything comes up, there's a chance that the word occurs.
However, it's generally pretty unusual to come across a word that you can use. Most of the time, things inside GCBASIC have a short prefix before them to indicate what they do - for example, in the USART code, nearly everything has "HSer" or "Ser" at the start of the name.
So basically, choose the name that seems most logical, and don't worry about it unless you get a weird error message!
(Also, reply time does tend to vary a lot, but if it's an easy question and I'm in front of the computer not doing anything at the time, I'll answer straight away!)
Again many thanks.