??? 10/26/10 07:20 Modified: 10/26/10 09:04 Read: times |
#179341 - (back?) To basics Responding to: ???'s previous message |
You still seem to be struggling because you have not taken time to actually learn the 'C' programming language!
See: http://www.8052.com/forum/read/179148 If you wanted to learn to swim, you wouldn't do it by just diving off a ship in the middle of the ocean - would you? Vijay Singh said:
pl. can you help me in writing any character e.g 'A' on LCD in 'C' lang (SDCC Compiler). Remember that the LCD neither knows nor cares what language you write your source code in - it makes absolutely no difference whatsoever whether you use 'C', assembler, or anything else. Therefore, your 'C' program needs to do exactly the same that an assembler program would do - ie, it needs to use the same pins in the same ways and with the same timings. Are you sure that you actually understand how to do this in assembler? please tell me about the header files that are to be included. That will be described in the SDCC documentation Again, you need to spend time studying & familiarising yourself with the tools before you just dive in! i tried this code Did you actually write that code, or did you just find it somewhere? but its giving too many errors Dealing with build errors is an integral part of programming in any language! such as implicit declaration Does the SDCC documentation provide a list of error messages with explanations? It is a basic requirement of the 'C' programming language that everything must be declared before it is used; if you use something without having first declared it, the compiler may take that as an implicit declaration. Dictionary meaning of "implicit": http://dictionary.cambridge.org/dictionar...implicit_1 Again, this is a basic requirement of the 'C' programming language - which is why it is so important that you spend some time actually learning the language! too many parameters That one should be obvious! how to make delay_ms function. Do not attempt to write busy-loop delays in any high-level programming language - see: http://www.8052.com/forum/read/162556 #define rs P2_0 #define rw P2_1 #define enable P2_2 #define lcd_port P1 Are you sure that is the correct way to define port pins in SDCC? |
Topic | Author | Date |
lcd in C | 01/01/70 00:00 | |
Need some more information | 01/01/70 00:00 | |
JHD 162A | 01/01/70 00:00 | |
Number of pixels irrelevant | 01/01/70 00:00 | |
Also, ... | 01/01/70 00:00 | |
It is important to knwo the pixel size >>Per | 01/01/70 00:00 | |
Missed the point! | 01/01/70 00:00 | |
reg51.h | 01/01/70 00:00 | |
Pay attention to answers already given! | 01/01/70 00:00 | |
warning != error | 01/01/70 00:00 | |
(back?) To basics | 01/01/70 00:00 | |
How to post formatted source code | 01/01/70 00:00 | |
you can find some inspiration... | 01/01/70 00:00 |