Display on LCD

Thread Starter

RG23

Joined Dec 6, 2010
304
I want to count the number of incoming pulses and from that I need to detect the frequency and display it on the LCD.

I am using PIC 16F887

Can anyone please help me out?
 

Thread Starter

RG23

Joined Dec 6, 2010
304
I am using PIC 16F887 that will count the number of incoming pulses and from that I need to detect the frequency, convert it to ascii and display on LCD.

Below is a part of code I have tried

ISR:

BCF STATUS, RP0
BCF STATUS, RP1 ; select Register Bank 0
Loop1: btfsc PIR1,2
goto Freq_Int
movf Frequency,0
movwf PORTD
call SND_DTA
Freq_Int: incf Frequency,1
goto Loop1

Please let me know if you have any idea.

Thank you
 

thatoneguy

Joined Feb 19, 2009
6,359
Is this a personal project or a school project?

I'd recommend using C for this application, it typically generates better code than somebody new to assembly. LCD timing can be a bit picky.

Have you created functional PIC programs before? If so, have any of them either used a timer or written to an LCD?
 
Top