PIC 18f25k80 & LCD Display

Thread Starter

Sai Shoby

Joined Oct 18, 2020
3
Hi all,
i am using pic18f25k80 to receive adc audio signal at pin 2(Adc Pin) and want to display the audio range in LCD Display(VU Meter).
I dont no how to start write a code for this. my VU dc ranges from 0-1.17,1.18 to 1.20.... please help me understand and write a code for that.

Thank you
 

MaxHeadRoom

Joined Jul 18, 2013
30,655
What language? C?
The basic code can be had off of the Nigel Goodwin tutorial site, although in assembly, someone has converted them to C available out on the web..
Max.
 

trebla

Joined Jun 29, 2019
599
Assumed you use the alphanumeric LCD for output:
First, get the ADC working and output ADC values to LCD. You can find some examples for ADC and LCD in examples folder and also in Mikroe Libstock.
Second, make a plan for your program:
a) ADC maximum and minimum values to be displayed, linear or logaritmic scale
b)based on a) calculate values for each segment and make ADC value to segment numbers lookup table (LUT) for this.
c)choose a character to be displayed at each segment
d)write a program which reads ADC value and using LUT writes choosen characters to LCD.

If you can make this code to work then you can choose different timings and visual effects if you want.
 

Djsarakar

Joined Jul 26, 2020
489
Hi all,
... please help me understand and write a code for that.

Thank you
Hi sai
Which LCD display do you have? Can you tell us part number of your display?

Do you understand how microcontroller send byte to display?

Can you write simple program that can display hello world message on your display screen?
 

Thread Starter

Sai Shoby

Joined Oct 18, 2020
3
Hi sai
Which LCD display do you have? Can you tell us part number of your display?

Do you understand how microcontroller send byte to display?

Can you write simple program that can display hello world message on your display screen?
I am using 20x2 oled display. I can able to write code for display..
 
Top