Count command


Closed Thread
Results 1 to 2 of 2

Thread: Count command

Hybrid View

  1. #1
    hawk72501's Avatar
    hawk72501 Guest

    Exclamation Count command

    1.Question: If i use the command
    A var Word
    COUNT PortB.0,1000,A
    will i get how many times PortB.0 changed its status for example from high to low (from 0V to 5V )? Did i understood ok?
    If for example changed it 1012 (from 0V to 5V ) times i will have 1012 in A variable?

    2.Question: Does anybody knows what are the values of volt
    that correspond to logic 0 and logic 1 to command count and PIC in general?
    For example if 2.3V happens in POrtB.0 pin will it think that it is logic 1 or logic 0 at PortB.0 ( in PIC) or will it count it like plus one pulse (in count command) in variable A.

    Thanks in advance and sorry for my silly questions.I start learning PICS now.

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    q1. You're right
    Q2. Datasheet, DC Characteristic. search for Vil and Vih
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. My code for TV remote and MIBAM for RGB control
    By idtat in forum Code Examples
    Replies: 4
    Last Post: - 12th January 2013, 20:52
  2. Active low input?
    By CosMecc in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 8th August 2010, 20:31
  3. COUNT is not counting again
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 33
    Last Post: - 19th June 2009, 04:52
  4. Can I do this???
    By noobie in forum mel PIC BASIC
    Replies: 2
    Last Post: - 10th June 2006, 18:57
  5. Question about the Count Command.
    By Tear in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 27th July 2005, 03:52

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