Friday, November 6, 2009

configuration of LCD RW pin in bascom

hi

we recently got stuck with a problem that would seem very normal and trivial but could blow the functioning of your bot if u were dependent on an lcd for some data or output.

The problem:
Bascom does not cater to the programming of the LCD RW pin which is in most cases shorted or soldiered in a way that we did not have issues with boards till now. but in our case it was not and we did not have it connected and we were not able to write to it ! ! !

The solutions:

we tried connecting lcd rw pin to another port and and giving it a signal.

we had no results to this , we tried all possible signals and pulses for it but it dint work.

We tried shorting the pin to the enable and other pins of the LCD again no output.

Finally we Decided to ground the pin directly. And then we got the out put.

hence solution:
If u need to only write to the lCD then ground the pin. If you need to read as well as write to the lcd then you must connect the rw pin to a circuit where if you give a certain input from a port then the lcd rw gets a ground and if you remove the input it gets a VCC. This works we tried it on an atmega 32l.

Or use AVR studio to program it ! !

but in my opinion the above solution is simpler and easier to achieve.

regards

aditya singh baghel
CEO workshop india
company site

No comments:

Post a Comment