Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8484601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:25:29+00:00 2026-06-10T20:25:29+00:00

I am working with a Winstar Display LCD ( WH2004A-YYK-CP ) and STM32 processor

  • 0

I am working with a Winstar Display LCD ( WH2004A-YYK-CP ) and STM32 processor and codes are written in C. I need to run it with 4-bit mode. I run it and wrote what I wanted.

As you know, 4-bit mode send 8-bit data as 2 times 4bit. The problem is, when I reset between 2 nibbles, it prints strange characters, and no matter how much I reset it, it is not working properly. The only solution I came up is resetting it several times.

To figure out what is going on, I added 2 second delay between 2 nibbles (4-bit each), and print a long sentence. therefore whenever I reset it, processor waiting to send second nibble.

I am resetting it, it prints something strange, after second reset it prints nothing, and after third one it prints again correctly. and 4th reset it again prints something strange, 5th one prints nothing and 6th one again prints correctly … and goes on like this.
Therefore I am now sure that problem is these divided bytes.

Similar code works perfectly fine with 8bit mode.

What I am asking is here:
How can I be sure that “when I reset STM32 processor, LCD is not waiting second nibble of some data whose first nibble is sent in the previous session.” by using C codes?

UPDATE:

I also send my code here: http://pastebin.com/kHQQEqjx

LCD commands are also here: https://i.stack.imgur.com/bVjIm.jpg

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T20:25:30+00:00Added an answer on June 10, 2026 at 8:25 pm

    Here is the flowchart that details all the steps required to initialize that LCD controller in 4 bit mode.

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Working on a website http://www.ArenaText.com written in asp.net with Microsoft AJAX control toolkit. iPad
Working with an API where I need to send a value over in an
Working on a project where I need to add points to an array. Here
Working on a project an need a specific effect on the homepage. When a
Working on a page where I create new instances of a usercontrol I wrote,
Working on a Flash iOS app and I need to utilize a couple Apple
Working an a Drupal 6 site that I inherited, and I'm having a bit
Working with python interactively, it's sometimes necessary to display a result which is some
Working scenario: When I run my app from xcode directly to my device I
Working in C#, I need to find all local peaks in a List of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.