+ Post New Thread
Results 1 to 12 of 12
  1. #1
    Newbie level 6
    Points: 82, Level: 1

    Join Date
    Nov 2012
    Posts
    11
    Helped
    0 / 0
    Points
    82
    Level
    1

    Coding For PIC 18f4520

    i want to display different values from sensor through PIC18f4520 in lcd. im using embedded c language.plzz help me by sending the code

  2. #2
    Junior Member level 1
    Points: 296, Level: 3
    ganesh dvk's Avatar
    Join Date
    Oct 2012
    Location
    chennai
    Posts
    15
    Helped
    0 / 0
    Points
    296
    Level
    3

    Re: Coding For PIC 18f4520

    which compiler to be used ur project?...pls send to the full detail ....



    •   AltAdvertisment

        
       

  3. #3
    Member level 1
    Points: 508, Level: 4
    coolvasanth07's Avatar
    Join Date
    Sep 2012
    Posts
    37
    Helped
    0 / 0
    Points
    508
    Level
    4

    Re: Coding For PIC 18f4520

    Try this Code,,,,
    Code:
    void main()
    {
        TRISA=0x01;        // Configure RA0 as input pin
        LATA=0;
        TRISB=0;        // Configure Port B as output port
        LATB=0;
        TRISD=0;
        LATD=0;
        lcd_ini();        // LCD initialization
        while(data[i]!='\0')
        {
            lcddata(data[i]);      // Call lcddata function to send character one by from 'data' array
            i++;
        }
    
        adc_init();        //ADC Initialization
    
        while(1)
        {
            temp=0;
            for(i=0;i<10;i++)
            {
                ADCON0|=(1<
    



  4. #4
    Advanced Member level 5
    Points: 33,525, Level: 44
    Achievements:
    Created Album pictures Created Blog entry 7 years registered
    tpetar's Avatar
    Join Date
    Sep 2010
    Location
    Pancevo-Belgrade, Serbia
    Posts
    6,427
    Helped
    1732 / 1732
    Points
    33,525
    Level
    44

    Re: Coding For PIC 18f4520

    Quote Originally Posted by sudhag View Post
    i want to display different values from sensor through PIC18f4520 in lcd. im using embedded c language.plzz help me by sending the code

    For start try to give detail about sensor.
    “Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine.” Nikola Tesla



  5. #5
    Newbie level 6
    Points: 82, Level: 1

    Join Date
    Nov 2012
    Posts
    11
    Helped
    0 / 0
    Points
    82
    Level
    1

    Re: Coding For PIC 18f4520

    Quote Originally Posted by ganesh dvk View Post
    which compiler to be used ur project?...pls send to the full detail ....
    im using c18 compiler.i want to display output according to various input given to the pic 18f4520 from my sensor.



    •   AltAdvertisment

        
       

  6. #6
    Full Member level 3
    Points: 736, Level: 5

    Join Date
    Dec 2012
    Posts
    169
    Helped
    1 / 1
    Points
    736
    Level
    5

    Re: Coding For PIC 18f4520

    what sensor u using ? TC74 ?

    - - - Updated - - -

    http://ww1.microchip.com/downloads/en/devicedoc/mplab_c18_libraries_51297f.pdf
    use this link to learn I2C



  7. #7
    Newbie level 6
    Points: 82, Level: 1

    Join Date
    Nov 2012
    Posts
    11
    Helped
    0 / 0
    Points
    82
    Level
    1

    Re: Coding For PIC 18f4520

    Quote Originally Posted by InNeedOfHelp View Post
    what sensor u using ? TC74 ?

    - - - Updated - - -

    http://ww1.microchip.com/downloads/e...ies_51297f.pdf
    use this link to learn I2C


    I'm using pulse oximeter sensor sp1006.Its a ear lobe sensor with rs232 cable. In ear lobe photo detector and led.It measures the oxygen saturation level. now getting my sensor as voltage the maximum voltage is 25mV and minimum will be 1mV. if maximum voltage it should display as 99% according to all inputs from sensor it should display in percentage values. plz help me in coding...



  8. #8
    Full Member level 3
    Points: 736, Level: 5

    Join Date
    Dec 2012
    Posts
    169
    Helped
    1 / 1
    Points
    736
    Level
    5

    Re: Coding For PIC 18f4520

    do you have a schematic ? if have upload to the forum



  9. #9
    Newbie level 6
    Points: 82, Level: 1

    Join Date
    Nov 2012
    Posts
    11
    Helped
    0 / 0
    Points
    82
    Level
    1

    Re: Coding For PIC 18f4520

    Quote Originally Posted by InNeedOfHelp View Post
    do you have a schematic ? if have upload to the forum
    PIN 1 RESISTANCE(7.5kΩ)
    PIN 2 LED(negative)
    PIN 3 LED(positive)
    PIN 4 TRANSISTOR(positive)
    PIN 5 SENSOR(positive)
    PIN 6 INNER SHIELD RESISTANCE(7.5kΩ)
    PIN 7 OUTER SHIELD
    PIN 8 TRANSISTOR(negative)
    PIN 9 SENSOR(negative)



  10. #10
    Full Member level 3
    Points: 736, Level: 5

    Join Date
    Dec 2012
    Posts
    169
    Helped
    1 / 1
    Points
    736
    Level
    5

    Re: Coding For PIC 18f4520

    its very hard for the others users to see this kind.
    what u give was a pin assignment diagram..



  11. #11
    Newbie level 6
    Points: 82, Level: 1

    Join Date
    Nov 2012
    Posts
    11
    Helped
    0 / 0
    Points
    82
    Level
    1

    Re: Coding For PIC 18f4520

    Quote Originally Posted by InNeedOfHelp View Post
    its very hard for the others users to see this kind.
    what u give was a pin assignment diagram..

    i have this description only.. can u help me...



    •   AltAdvertisment

        
       

  12. #12
    Full Member level 3
    Points: 736, Level: 5

    Join Date
    Dec 2012
    Posts
    169
    Helped
    1 / 1
    Points
    736
    Level
    5

    Re: Coding For PIC 18f4520

    i will try my best to help ..

    as i am also using the same microchip as u



--[[ ]]--