Automatic control and display of Room temperature


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    afterdate's Avatar
    afterdate Guest


    Did you find this post helpful? Yes | No

    Default

    hello
    sougata

    which program this one , and do u know how i do my project by your code.

    DEFINE OSC 4

    DEFINE ADC_BITS 8 'Number of bits in ADCIN result
    DEFINE ADC_CLOCK 3 'ADC clock source (rc = 3)
    DEFINE ADC_SAMPLEUS 50 'ADC sampling time in microseconds

    DEFINE LCD_DREG PORTB ' Set LCD Data port
    DEFINE LCD_DBIT 4 ' Set starting Data bit (0 or 4) if 4-bit bus i.e, Portb.4-PORTb.7
    DEFINE LCD_RSREG PORTB ' Set LCD Register Select port
    DEFINE LCD_RSBIT 2 ' Set LCD Register Select bit i.e, PORTC.5
    DEFINE LCD_EREG PORTB ' Set LCD Enable port
    DEFINE LCD_EBIT 3 ' Set LCD Enable bit i.e, PORTB.3
    DEFINE LCD_BITS 4 ' Set LCD bus size ot 4 bit Upper Nibble (4 or 8 bits)
    DEFINE LCD_LINES 2 ' Set number of lines on LCD to 4 Lines
    DEFINE LCD_COMMANDUS 2000 ' Set command delay time in us
    DEFINE LCD_DATAUS 50 ' Set data delay time in us

    VOLT VAR BYTE ' VOLT AS A VARIABLE

    TRISA.0 = 1 ' SETUP PORTA.1 AS AN INPUT
    TRISB = 0 '


    Input PORTA.0
    ADCON1 = %10000000

    LCDOUT $FE,1 : PAUSE 100
    main:
    ADCIN 0, VOLT
    LCDOUT $FE,$80, DEC VOLT , " "
    goto main


    thank you very much

    all the best

  2. #2
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Default I converted the code into PBP

    Hi,

    The code example that you posted was in Proton PIC Basic and I converted it into PBP ( PicBasicPro).

    In this forum we share codes and problems but you have to walk your own way. You may find somebody to give you code examples to sort out problems but you should have the understanding of what you are doing. Otherwise it would be impossible for you to upgrade/maintain/troubleshoot your program. As I have been a hobbyyist I always have the intention to help hobbyist but with a micro you cannot simply expect to do a copy/paste sort of experiment.
    Send me what you want to do exactly, what features you want and what PIC you want to use. I will try to post some examples if possible.
    Regards

    Sougata

  3. #3
    afterdate's Avatar
    afterdate Guest


    Did you find this post helpful? Yes | No

    Default

    hello Dear SIR ;

    thank you very much Sougata

    all the best

Similar Threads

  1. Replies: 2
    Last Post: - 14th July 2008, 23:11
  2. Need idea hove to..?
    By phoenix_1 in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 14th May 2008, 19:41
  3. ISD4003 & 16F877 Interface
    By sayzer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 26th December 2006, 18:50
  4. Automatic control and display of Room temperature
    By afterdate in forum Off Topic
    Replies: 1
    Last Post: - 23rd March 2006, 16:24
  5. select case question
    By ronjodu in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 12th March 2006, 11:01

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts