Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: Fanias; Keyword(s):

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    20,414

    Rotary encoder subroutine

    Hello,

    I have the following subroutine which reads a 2bit gray code rotary encoder.
    This encoder has also a push button I need to use for other functions.
    The idea is to built a menu system to...
  2. Re: Struggling again with SEROUT2 and numbers format

    Thank you both for your usefull comments.

    @ Richard,

    you are correct, I've done my self calculations and we are the same.
    The problem must be somewhere else or at PIC configuration (maybe ??)...
  3. Re: Struggling again with SEROUT2 and numbers format

    OMG !!!
    Thank you Richard, I couldn't see the obvious !!!
    I feel I have to post the solution you provided and I ended up with a smaller code that does the same.

    ...
  4. Now PIC hangs after 14 times of a subroutine execution

    Hello again,

    after solving my problems with serial port, I found that PIC (18F46K22) hangs after I send a command 14 times exactly.
    I'm using some code I found in the forum to remote control via...
  5. Re: Struggling again with SEROUT2 and numbers format

    Thank you both for your time and answers.

    I think I found a solution, not sure why is this happening but works...

    I tread the numbers I read from radio as BCD, I convert them to binary,...
  6. Struggling again with SEROUT2 and numbers format

    Hello all,
    I think I need your help to resolve this.

    I have a radio that accepts commands via its serial port.
    My project is to remote control it (wireless or infrared) to change memories,...
  7. Replies
    13
    Views
    8,586

    Re: 24LC256 wrong address at reading

    You make me feel stupid , but I forgive you :) it's always good to learn something new.
    My mistake is clear about the use of the STR modifier, however can you help me with the I2cwrite command ?
    ...
  8. Replies
    13
    Views
    8,586

    Re: 24LC256 wrong address at reading

    Hi Steve and thank you for your interest,
    I did what you suggested and it works, however it's still not working when "addr" is in a For-next loop.
    I get the same results, maybe I'm missing...
  9. Replies
    13
    Views
    8,586

    Re: 24LC256 wrong address at reading

    To help you more this is what my programmer shows.
    6759

    If i try to read addr 3 of EEPROM, I actually read addr 8 and so on....
    So the following command :

    I2CRead memSDA,memSCL,$A1,3,[text]...
  10. Replies
    13
    Views
    8,586

    Re: 24LC256 wrong address at reading

    6757

    I'm trying to upload here a blank hex file for 24LC256. Sorry if I post twice :o
    If someone can populate addresses 0-5 and 8-13 with data to test with my code, if there is an editing problem...
  11. Replies
    13
    Views
    8,586

    Re: 24LC256 wrong address at reading

    Thanks for your comments,

    right now I'm using the built in editor of my PICKIt2 programmer and I make changes.
    It's still the same result, looks to me that I cannot read the first 3 memory...
  12. Replies
    13
    Views
    8,586

    24LC256 wrong address at reading

    Hello all,
    I wonder if someone can help me with this problem.

    I'm storing manualy some values to 24LC256 with an external programmer and editor like this :

    :020000040000FA ...
  13. Re: Yet another SERIN2 problem - Conversion from Basic Stamp

    I'm trying all morning and still no good results.

    I tried your configs Robert and they do the same things as mine, at least I could't see any change.

    I had only to remove ANSELD = 0 because...
  14. Re: Yet another SERIN2 problem - Conversion from Basic Stamp

    Thank you very much for the configs. Still using the old style with underscores ? (Just kidding)...
    I'm not sure about all the config parameters, but in my situation it's worth to give a try first...
  15. Yet another SERIN2 problem - Conversion from Basic Stamp

    Hello all,
    i need your help to convert my code from basic stamp2 sx.

    I'm trying to read the frequency of an ICOM shortwave receiver.
    Here is my easy working basic stamp code :


    ' {$STAMP...
Results 1 to 15 of 15