Count RB0... on RB7


Closed Thread
Results 1 to 8 of 8
  1. #1

    Smile Count RB0... on RB7

    Hello,

    Do I use a PIC16F628 and do I want to count 15 pulses in RB0 and once finished the PORTB7 on can give me a guide of as making it?.

    Thank you

  2. #2
    Join Date
    Jul 2005
    Posts
    18


    Did you find this post helpful? Yes | No

    Default

    Hola Leo, yes you can use a 16f628 to do that. Let me get this straight, do you want to flash RB0 fifteen times and then on the 15th, RB7 comes on?

    Juan
    Last edited by Jųan; - 25th August 2005 at 01:50.

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


    Did you find this post helpful? Yes | No

    Default

    one way, use interrupt. once you're in the interrupt handler, increment a variable. once it reach 15, set a flag to confirm that you reach 15. In the main loop, just poll the Flag.

    Another way will be to use the internal counter with TIMER0 and RA4. just poll TMR0 to see if you reach 15.

    OR use TIMER0 interrupt overflow
    or
    or
    or
    Steve

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

  4. #4


    Did you find this post helpful? Yes | No

    Talking

    Hello Juan,

    If that is.

    You speak spanish?.

    Thanks




    Quote Originally Posted by Jųan
    Hola Leo, yes you can use a 16f628 to do that. Let me get this straight, do you want to flash RB0 fifteen times and then on the 15th, RB7 comes on?

    Juan

  5. #5


    Did you find this post helpful? Yes | No

    Talking

    Hello Mister And,

    Thanks, you can give an example me, is that not by where to begin.

    Again thanks



    Quote Originally Posted by mister_e
    one way, use interrupt. once you're in the interrupt handler, increment a variable. once it reach 15, set a flag to confirm that you reach 15. In the main loop, just poll the Flag.

    Another way will be to use the internal counter with TIMER0 and RA4. just poll TMR0 to see if you reach 15.

    OR use TIMER0 interrupt overflow
    or
    or
    or

  6. #6
    Join Date
    Jul 2005
    Posts
    18


    Did you find this post helpful? Yes | No

    Default

    Hi Leo, yes I do speak spanish but I dont think it would be fair for others for us to speak it in this forum :-) Im happy to speak spanish to you via email. Seems you are learning english, keep at it!

    Juan

  7. #7


    Did you find this post helpful? Yes | No

    Talking

    Juan,

    You can please give me an idea of the code.

    Thank you




    Quote Originally Posted by Jųan
    Hi Leo, yes I do speak spanish but I dont think it would be fair for others for us to speak it in this forum :-) Im happy to speak spanish to you via email. Seems you are learning english, keep at it!

    Juan

  8. #8


    Did you find this post helpful? Yes | No

    Default

    Juan,

    My mail is [email protected]

    Thanks



    Quote Originally Posted by Jųan
    Hi Leo, yes I do speak spanish but I dont think it would be fair for others for us to speak it in this forum :-) Im happy to speak spanish to you via email. Seems you are learning english, keep at it!

    Juan

Similar Threads

  1. COUNT is not counting again
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 33
    Last Post: - 19th June 2009, 04:52
  2. Can't get COUNT to count
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 23rd March 2009, 23:14
  3. Count RB0... on RB7
    By Leonardo in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 10th October 2005, 04:16
  4. Timer RB0...RB7 on RA1
    By Leonardo in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 26th September 2005, 00:38
  5. Count command
    By hawk72501 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 6th September 2005, 19:04

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