EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / how to add ferhaneite scale

how to add ferhaneite scale

|

Microcontroller › 8051 › how to add ferhaneite scale

  • This topic has 1 reply, 1 voice, and was last updated 12 years, 4 months ago by Akram.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • March 5, 2013 at 5:47 am #2158
    Akram
    Participant

    hi the code given below shows only degree centigrate i want ferhaneite also in my project so please help me if you can add ferhaneite scale and symbol to this code

     

     

    #include<reg51.h>
    #define ldata P2
    #define temp P1
    sbit r= P3^3;  // Write pin. It is used to start the conversion. 
    sbit d= P3^4;  // Read pin. It is used to extract the data from internal register to the output pins of ADC.
    sbit rs = P3^0;  //register select pin
    sbit rw = P3^1;  // read write pin
    sbit en = P3^2;  //enable pin
    void lcdcmd (unsigned char value);
    void lcddata (unsigned char value);
    void lcddata1 (unsigned char value);
    void delay(unsigned int msec )  // The delay function provides delay in msec.
    {
    int i,j ;
    for(i=0;i<msec;i++)
      for(j=0; j<1275; j++);
    }
     
    void main()
    {  
    signed int a,b,c;     
    while(1)
    {
    d=1;     
    r=0;     
    delay(1);
    r=1;
    delay(1);
    d=0;
    delay(1);
    lcdcmd (0x38);
    delay (1);
    lcdcmd (0x0C);
    delay (1);
    lcdcmd (0x80);
    delay (1);
    lcddata (‘T’);
    delay (1);
    lcddata (‘E’);
    delay (1);
    lcddata (‘M’);
    delay (1);
    lcddata (‘P’);
    delay (1);
    lcddata (‘:’);
    delay (1);
    lcddata (‘-‘);
    delay (1);
    c=temp/100;
    lcddata1(c);
    delay (1);
    a=(temp/10)-(c*10);
    lcddata1(a);
    delay (1);
    b=temp%10;
    lcddata1(b);
    delay (1);
    }
    }
    void lcdcmd (unsigned char value)
    {
    ldata =value;
    rs=0;
    rw=0;
    en=1;
    delay (1);
    en=0;
    return;
    }
    void lcddata1 (unsigned char value)
    {
    value=value+0x30;
    ldata =value;
    rs=1;
    rw=0;
    en=1;
    delay (1);
    en=0;
    return;
    }
    void lcddata (unsigned char value)
    {
    ldata =value;
    rs=1;
    rw=0;
    en=1;
    delay (1);
    en=0;
    return;
    }
    March 5, 2013 at 4:23 pm #9250
    Akram
    Participant

    plz help……….

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • Fixing board, Easy question HEX SCHMITT July 9, 2025
  • Can I make two inputs from one?? July 9, 2025
  • The Analog Gods Hate Me July 9, 2025
  • How to make string LEDs? July 9, 2025
  • It's Amazing What A Buck And A Quarter.... July 8, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise