Count RB0... on RB7


Closed Thread
Results 1 to 23 of 23

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Smile

    Hello mister_e

    As I can modify the value of the count using the eeprom and a lcd?.

    Thank you



    Quote Originally Posted by mister_e
    I tried to understand but and i'm still not sure of the question. BTW i did the following, let me know if it do what you're looking for. Case not, let me know in more details or with a drawing. Sometimes it help my single brain cell to figure out the question
    Code:
        TRISB=%00001111     ' Set RB0 to input, others to output
        
        OPTION_REG.7=0      ' Enable internal pull-up on PORTB
        
        LED     VAR PORTB.7 ' connected between RB7 and GND via resistor
        LED1    VAR PORTB.6
        BOT     VAR PORTB.1
        ClkIn   var PORTB.0 ' connected between RB0 and GND
        
        Apulse  VAR BYTE    ' store the amount of pulse
        Apulse1 var byte
    
        data @0,0,0    
        read 0,apulse
        read 1,apulse1
        
        led = 0
        led1= 0
    
    paso1:
        repeat
            if clkin=0 then
                while clkin=0 : wend
                pause 100
                apulse=apulse+1
                write 0,apulse
                endif
    
            if BOT=0 then
                while BOT=0 : wend
                pause 100
                apulse1=apulse1+1
                write 1,apulse1
                endif
    
            until (apulse=7) or (Apulse1=5)
        
        if apulse=7 then
            led=1
            else
                led1=1
            endif
    
        goto paso1

  2. #2


    Did you find this post helpful? Yes | No

    Smile

    Some suggestion


    As I can modify the value of the count using the eeprom and a lcd?.

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


    Did you find this post helpful? Yes | No

    Default

    Leonardo,

    i know it's really hard for you to write in english but can you provide much details. I try to understand what you say but i'm really lost.

    If you want, post your question in your language, probably someone else here can give us a hand and translate to english.

    I just know english(a few) and French. i'm really sorry Leonardo
    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

    Smile

    I understand, what I want is to be able to modify the value to count by means of a keyboard 4x4 and a lcd for not having to reprogram every time that the wants to modify the I number from maximum pulses to count.

    For example: to show in a lcd

    Push buttom RB0 to increase the value to count
    Push buttom RB1 to diminish the value to count
    Push buttom RB3 enter to record the value

    Thanks

  5. #5


    Did you find this post helpful? Yes | No

    Smile

    I understand, what I want is to be able to modify the value to count by means of a keyboard 4x4 and a lcd for not having to reprogram every time that the wants to modify the I number from maximum pulses to count.

    For example: to show in a lcd

    Push buttom RB0 to increase the value to count
    Push buttom RB1 to diminish the value to count
    Push buttom RB3 enter to record the value

    Thanks

  6. #6


    Did you find this post helpful? Yes | No

    Smile Help... Mister_e!

    I understand, what I want is to be able to modify the value to count by means of a keyboard 4x4 and a lcd for not having to reprogram every time that the wants to modify the I number from maximum pulses to count.

    For example: to show in a lcd

    Push buttom RB0 to increase the value to count
    Push buttom RB1 to diminish the value to count
    Push buttom RB3 enter to record the value

    Thanks

  7. #7


    Did you find this post helpful? Yes | No

    Talking Help... Mister_e!

    I understand, what I want is to be able to modify the value to count by means of a keyboard 4x4 and a lcd for not having to reprogram every time that the wants to modify the I number from maximum pulses to count.

    For example: to show in a lcd

    Push buttom RB0 to increase the value to count
    Push buttom RB1 to diminish the value to count
    Push buttom RB3 enter to record the value

    Thanks





    Quote Originally Posted by mister_e
    Leonardo,

    i know it's really hard for you to write in english but can you provide much details. I try to understand what you say but i'm really lost.

    If you want, post your question in your language, probably someone else here can give us a hand and translate to english.

    I just know english(a few) and French. i'm really sorry Leonardo

Similar Threads

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

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