HI all, I am making a small project in which i am using a 3.7v li-ion 2600mah Battery, 20x4 LCD, step up converter, mosfet, 89S52 and a keypad. my concept is to just print a command on LCD. so for that i wrote a command like... Code: printscreen("HELLO WORLD, HOW ARE YOU"); i prints absolutely fine. but the problem is it prints giving spaces in between like.... HELLO WOR LD, HOW ARE Y OU. why is it happing. i have connected my 89s52 directly to the battery so it keeps it always on. on keypress from keypad the stepup converter gets activated using a mosfet and supplies 5v only to LCD. data pins of LCD are connected to port1 of 89S52.
it prints perfectly in proteus without giving any spaces..... but it creates problem while i try to run the same in my circuit.
i have even tried adding a capacitor (0.1uf) between pin 1 and 2 of lcd. but adding a capacitor increaese the spaces more
Maybe it is lower level code in printscreen. Sometimes the code might be using a buffer of a particular size and sending a buffer of data out. At which time it has enough characters it would printout. Then someone may have added a space to the output characters.
Assuming it is all 5V supply compatible, can you try the same code with the whole board and LCD running on regular 5V supply, without the MOSFET?