I am not able to interface LCD16X2 with MS51FB9AE nuvoton MCU which is similar to N76E003, can anybody help me with that?.
my lcd pins connection is as follows:
RS - P04
EN - P03
D4 - P01
D3 - P00
D2 - P10
D1 - P11my lcd pins connection is as follows: RS - P04
D1 - P11
aXr amaR said:I am not able to interface LCD16X2
Why not - what have you tried? where are you stuck?
People have been successfully driving these 16x2 LCDs with microcontrollers way back into the last century - and there are many examples and tutorials on the interwebs.
Remember that the LCD neither knows nor cares what microcontroller you use - so you should be able to adapt any tutorial you find.
How To Interface Anything To Anything Else.
As with good comedy, the secret is timing ...
I am new to keil and till now I have used only Arduino IDE ,in arduino it is very easy to interface LCD, please help here.
my lcd pins connection to MS51FB9AE is as follows:
I want to run it in 4bit mode.
It has nothing to do with Keil.
The LCD neither knows nor cares what microcontroller you use - let alone what development tools!
Again, there is plenty available online - have you spent any time searching & studying ?
Trying to understand LCD commands, referring YouTube tutorials now.
www.nuvoton.com/resource-download.jsp
aXr amaR said: I have used only Arduino IDE
Arduino is open-source - so why not look at the Arduino source to see how Arduino does it?
Thanks for replying Andy, can you please Help me with the code, I tried and failed.
Again, what have you tried?
Where has it failed?
What investigation / testing / debugging have you done to find the problem ?
And again, none of this is new - there are plenty of guides & examples already out there.
Before diving into the LCD, have you done the basics first: Microcontroller Getting Started.
https://www.electronicwings.com/8051/lcd16x2-interfacing-in-4-bit-mode-with-8051#:~:text=16x2%20LCD%20Display-,4-bit%20Mode,-bit%20(nibble)%20format.&text=Only%204%20data%20(D4%20-%20D7,GPIO%20Pins%20of%20the%20controller.
Followed this tutorial, but here he has used P1 as data pins, but in my PCB I have used two different port pins how to write code for that ?
These are my pins, I am not getting any solution
Go on.
Toggling one pin is the same as toggling another.
Did you not prototype this before committing to a PCB design?
Seems a rather bizarre choice of pins
It's Working now, this is prototype PCB only
That's good.
So, for the benefit of others who may come along with the same question, please describe what you had to do to make it work.