Lm35 + pic16f877a + fpga

Discussion in 'The Projects Forum' started by kuyu, Mar 17, 2011.

  1. kuyu

    Thread Starter New Member

    Feb 26, 2011
    3
    0
    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.
     
  2. guitarguy12387

    Active Member

    Apr 10, 2008
    359
    12
    Probably the hardest part will be talking between the FPGA and uC.

    What is your question?
     
  3. kuyu

    Thread Starter New Member

    Feb 26, 2011
    3
    0
    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..
     
  4. atferrari

    AAC Fanatic!

    Jan 6, 2004
    2,648
    764
    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.
     
  5. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    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.
     
  6. kuyu

    Thread Starter New Member

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

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    Which language. Your PICs datasheet will also cover this.
     
Loading...