Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Lcd shows wrong misaligned values

Rajeshtr

Newbie level 5
Newbie level 5
Joined
Jan 1, 2023
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
72
Hi
this is a 6 adc channel reading program and we have to set the reference value using micro switches ..display all the values in lcd...the problem is after entering in to the settings menu lcd values changes misaligned in display..otherwise the program is fine..please help
 

Attachments

  • fourteentwo(three conditions ok).txt
    18.3 KB · Views: 28

Rajeshtr

Newbie level 5
Newbie level 5
Joined
Jan 1, 2023
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
72
values are displayed one by one..up to 3 switch cases in settings menu everything is fine..
but goes to the 4th case error occurs

Screenshot (81).png


Screenshot (80).png
 

SWRmeter

Member level 1
Member level 1
Joined
Dec 24, 2019
Messages
34
Helped
5
Reputation
10
Reaction score
8
Trophy points
8
Activity points
173
I suspect there's a mishandling of your data array indexed my 'GasIndex'
Check your array sizes vs the index used to access. Especially the case for vacuum, since this is handled differently.
Your code is too detailed for me to cross-check everything, but I suspect the error is related to the above.

If your Lcd output routine accesses some 'bad' memory locations, then anything can happen on the display
 

LaTeX Commands Quick-Menu:

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top