Help for my project(16f877,2x16LCD,)


Closed Thread
Results 1 to 22 of 22

Hybrid View

  1. #1
    Join Date
    Mar 2008
    Posts
    13


    Did you find this post helpful? Yes | No

    Default

    By the way , i applied the codes from the " LCD BARgraphs" subject:
    ; Initialize your hardware and LCD first.

    DEFINE ADC_BITS 8 ' Number of bits in ADCIN result
    ADCON1.7 = 1 ' Right Justify AD result

    INCLUDE "LCDbar_INC.bas" ' Include the BARgraph routines

    Value VAR WORD ' Must be a WORD even though AD is 8bit

    LCDOUT $FE, 1 ' Clear Screen

    Loop1:
    ADCIN 0, Value
    LCDOUT $FE,2,"Value = ",DEC Value," "
    ; syntax- BARgraph Value, Row, Col, Width, Range, Style
    @ BARgraph _Value, 2, 0, 16, 255, lines
    GOTO Loop1
    It works but the lines change very fast and i can't recognize also the 'value' word changes ?
    In fact , i don't need value, i just need line bars.

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by karamastik View Post
    By the way , i applied the codes from the " LCD BARgraphs" subject: ?
    In fact , i don't need value, i just need line bars.
    If you can't get the value of your A/D to change....how do you expect to see changing bars?

    Small steps....

    I'm done....

  3. #3
    Join Date
    Mar 2008
    Posts
    13


    Did you find this post helpful? Yes | No

    Default

    Yes , you are wright ;it should read the analog value.
    I have cell phone detector , and whene there is no cell phone activity ; i have 5V at the output.When there is a phone activity , my circuit detects the electromagnetic wave thus the current increases at the output .
    As the current increases , the voltage drops from 5V to approximately 3.8V .
    I must see no bars at 5V , and must see full bars at appr. 3.8V .
    I wish i'm understood.
    Thank you for your helps.
    Can you explain , why the bars are appearing very fast ?
    I can't see them.They are like a ghost.
    I'm using 20MHz pic , does it differ ?
    I think it mustn't .
    I won't stop, will try.If i stop, my school stops me
    Thanks again

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