3414 views|24 replies

86

Posts

0

Resources
The OP
 

I would like to ask about the LCD display problem. Pictures are attached. [Copy link]

 

Please help, thank you.

)$3D6A9DY`R5$6~%U53(0N7.png (53.06 KB, downloads: 4)

)$3D6A9DY`R5$6~%U53(0N7.png
This post is from 51mcu

Latest reply

https://blog.csdn.net/chuangwu2009/article/details/30472153 I haven't used this chip either. If you have any questions, please look for more information.   Details Published on 2019-10-16 10:28
 

650

Posts

8

Resources
2
 

?What's the question? There's no word yet, are you asking everyone to guess the question?

This post is from 51mcu

Comments

Sorry, sorry. The problem is that I don't know how to make this LCD display something. For example, there are 4 common terminals and 12 segment selections. How to light up the parts that need to be lit?  Details Published on 2019-10-15 14:35
 
 
 

2146

Posts

8

Resources
3
 

If I could guess what your problem is, I would go to a fortune teller.

This post is from 51mcu

Comments

Sorry, sorry.  Details Published on 2019-10-15 14:38
 
Personal signature坐而言不如起而行
 
 

86

Posts

0

Resources
4
 
29447945 posted on 2019-10-15 13:34 ?What's the question? There's no word, are you asking everyone to guess the question?

Sorry, sorry. The meaning is that I don't know how to make this LCD display something. For example, there are 4 common terminals and 12 segment selections. How to light up the parts that should be lit?

This post is from 51mcu

Comments

Are you asking about the software? I thought you had a hardware problem? You can figure it out based on the display's segment diagram. For example, if you have a common anode, then to light up the letter A, COM2 should be high and pin 18 should be low [attachimg]438129[/attachimg]  Details Published on 2019-10-15 14:41
 
 
 

86

Posts

0

Resources
5
 
wsmysyn posted on 2019-10-15 14:05 If I could guess what your problem is, I would go to a fortune teller.

Sorry, sorry. The meaning is that I don't know how to make this LCD display something. For example, there are 4 common terminals and 12 segment selections. How to light up the parts that should be lit?

This post is from 51mcu
 
 
 

86

Posts

0

Resources
6
 

For example, if I want to highlight the two words in the middle, I have to select all the paragraphs. How should I write it???

This post is from 51mcu
 
 
 

86

Posts

0

Resources
7
 
wsmysyn posted on 2019-10-15 14:05 If I could guess what your problem is, I would go to a fortune teller.

Sorry, sorry.

This post is from 51mcu

Comments

This is to control the high and low levels of the segments. The program LCD interface is also similar to the read and write operation mapped to a memory. Directly read and write display data to a certain address, and you can control the high and low levels of each segment code IO.   Details Published on 2019-10-15 15:11
 
 
 

650

Posts

8

Resources
8
 
Posted by Myself One Hundred Years Later on 2019-10-15 14:35 Sorry, sorry. The meaning is that I don’t know how to make this LCD display something. For example, there are 4 common terminals and 12 segment selectors. How to click...

Are you asking about the software? I thought you had a hardware problem? You can figure it out based on the display's segment diagram. For example, if you have a common anode, then to light up the letter A, COM2 should be high and pin 18 should be low

This post is from 51mcu

Comments

Yes. It's software. For example, if I light up the word 2, then writing it like this should also be a problem.  Details Published on 2019-10-15 14:53
 
 
 

86

Posts

0

Resources
9
 
29447945 Published on 2019-10-15 14:41 Are you asking about the software? I thought you had a hardware problem? You can figure it out based on the display's segment diagram. For example, if you have a common anode, then you need to light up the words...

Yes. It is software. For example, I light up the word 2.

Then there should be a problem with writing it this way.

This post is from 51mcu

Comments

You need to control it according to the description of the display chapter of the chip SH79F, it is not enough to simply pull the IO high or low  Details Published on 2019-10-15 15:01
 
 
 

1792

Posts

0

Resources
10
 

From a software perspective, lighting up the LCD using this type of MCU with built-in LCD driver is not necessarily the same as lighting up the digital tube.

Many of the COM registers do not need to be taken care of after they are configured, and seg has a fixed address. Writing a value to the corresponding address will light up the corresponding field.

For details, please refer to the LCD routine of this MCU.

This post is from 51mcu

Comments

Great, thanks, I'll check the chip manual  Details Published on 2019-10-15 15:03
 
 
 

650

Posts

8

Resources
11
 
Myself a Hundred Years Later posted on 2019-10-15 14:53 Yes. It is software. For example, if I light up the word 2, then there should be no problem writing it this way

You need to control it according to the description of the display chapter of the chip SH79F, it is not enough to simply pull the IO high or low

This post is from 51mcu

Comments

OK, I'll check the chip manual.  Details Published on 2019-10-15 15:03
 
 
 

86

Posts

0

Resources
12
 
sint27 posted on 2019-10-15 14:58 From a software perspective, lighting up the LCD with an MCU with built-in LCD driver is not necessarily the same as lighting up the digital tube. Many of them are not needed after the COM register is configured...

Great, thanks, I'll check the chip manual

This post is from 51mcu
 
 
 

86

Posts

0

Resources
13
 
29447945 Published on 2019-10-15 15:01 You need to control it according to the description of the display section of the chip SH79F. It is not enough to simply pull the IO high or low

OK, I'll check the chip manual.

This post is from 51mcu

Comments

Data link: http://www.sinowealth.com/ftp//8051%20mcu/8bit%20flash%20mcu/ss388a_sh79f166a/SH79F166A%20CV2.2.pdf Please read the contents of 8.1 of the manual, configure the relevant registers, and then write the contents to the registers. 8.1 LCD related contents  Details Published on 2019-10-15 17:40
 
 
 

2146

Posts

8

Resources
14
 

This controls the high and low levels of the segment.

The program LCD interface is also similar to the read and write operation mapped to a memory. By directly reading and writing display data to a certain address, you can control the high and low IO of each segment code.

This post is from 51mcu

Comments

[attachimg]438161[/attachimg]Then I wrote it wrong.  Details Published on 2019-10-15 15:36
 
Personal signature坐而言不如起而行
 
 

86

Posts

0

Resources
15
 
wsmysyn posted on 2019-10-15 15:11 This is to control the high and low levels of the segment, and that's it. The program LCD interface is also similar to the read and write operation mapped to a memory. Directly...

Write display data directly? For example, IIC, you need to create a write data function. Then write address 09H, and then light up the corresponding segment. It can light up. This is like the microcontroller is connected to LCD COM, seg is connected, how to do read and write operations?

This post is from 51mcu
 
 
 

86

Posts

0

Resources
16
 
wsmysyn posted on 2019-10-15 15:11 This is to control the high and low levels of the segment, and that's it. The program LCD interface is also similar to the read and write operation mapped to a memory. Directly...

Then I wrote it wrong.

This post is from 51mcu

Comments

The above is right. This is not a simple manual control of IO status. Otherwise, this LCD controller is meaningless. The efficiency is no different from pure IO control. You can't just write it according to your own understanding without reading the information. Referencing the routines can save you a lot of detours. Even if you can't find a one-to-one correspondence,  Details Published on 2019-10-15 16:45
 
 
 

2146

Posts

8

Resources
17
 

The above is right, this is not a simple manual control of IO status, otherwise this LCD controller is meaningless. The efficiency is no different from pure IO control.

You can't just start writing according to your own understanding without reading the information. Referencing the routines can help you avoid many detours. Even if you can't find a manual that corresponds to it one by one, you can look for the information of other chips with the same function.

This post is from 51mcu
 
Personal signature坐而言不如起而行
 
 

650

Posts

8

Resources
18
 
Myself a hundred years later posted on 2019-10-15 15:03 OK, I'll go check out the chip manual

Data link: http://www.sinowealth.com/ftp//8051%20mcu/8bit%20flash%20mcu/ss388a_sh79f166a/SH79F166A%20CV2.2.pdf

Please read the contents of 8.1 in the manual, configure the relevant registers, and then write the contents to the registers.

8.1 LCD related content

Write related registers to control display content

This post is from 51mcu

Comments

[attachimg]438258[/attachimg][attachimg]438261[/attachimg]These are the registers I assigned. But I cleared the addresses one by one. But some parts still have entanglement. Why is this?  Details Published on 2019-10-16 09:29
 
 
 

5791

Posts

44

Resources
19
 
There should be a logic table, I remember
This post is from 51mcu

Comments

It's the one above, but I matched it and it's still a little wrong  Details Published on 2019-10-16 09:30
 
 
 

86

Posts

0

Resources
20
 
29447945 Published on 2019-10-15 17:40 Data link: http://www.sinowealth.com/ftp//8051%20mcu/8bit%20flash%20mcu/ss388a_sh79f166a/SH79F166A% ...

These are the registers I assigned. But I cleared the addresses one by one. But some parts still have entanglement. Why is this?

image.png (23.76 KB, downloads: 0)

image.png
This post is from 51mcu

Comments

Try changing the previous register configuration. It is best to find a reference routine for the chip, or try changing the configuration to see if it can be controlled normally.  Details Published on 2019-10-16 09:50
 
 
 

Guess Your Favourite
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list