Lm35 + pic16f877a + fpga

Thread Starter

kuyu

Joined Feb 26, 2011
3
Hello..

Can someone give me an idea on my project..
I want to get the temperature value in 8 bit decimal value..
For example, if the temperature is 31..the PIC will give an 8 bit output 00011111..the 8 bit output correspond to the PIC output pin RB7-RB0.

Actually, for your information..i want to display the temperature value on my 7 segment Altera DE2 Board (FPGA).

Thank you.
 

Thread Starter

kuyu

Joined Feb 26, 2011
3
yes..you are right..
my question is, can PIC16F877A convert the temperature result to 8 bit binary?
if can, how?

i have done coding my FPGA..it will take 8 bit binary temperature result from PIC and then display it on it's on board 7 segment.

my biggest problem is..FPGA only can read data in binary..or bit..'1' or '0'..

i have done some experiment..i use lm35 + PIC16F877A + 7 segment..and its work!

but the experiment use 7 segment common cathode..my FPGA 7 segment is common anode..

hope you understand what i mean..i need some idea to solve my problem..
thank you..
 

atferrari

Joined Jan 6, 2004
4,770
If you ask such a basic question about the capabilities of that micro I hardly believe you could face the task of linking the FPGA and the micro.
 

t06afre

Joined May 11, 2009
5,934
I think this is school project...And yes you can use a 10 bit ADC in your PIC to convert the result to digital values. Then use your DE2 board as an (VERY) advanced display unit. The DB2 unit also have a LCD display.
 

Thread Starter

kuyu

Joined Feb 26, 2011
3
yes..this is my school project..
i have done almost 80%..
any example on converting the result to digital value?
 
Top