Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    422

    Re: Sleep does not really sleep...

    Not too difficult to check for key release to act on.

    Right now you are checking a keypress when the portb value is different from $78

    Key release is simply getting the transition from (Not...
  2. Replies
    8
    Views
    422

    Re: Sleep does not really sleep...

    Couple of things that caught my attention

    1 - in keyscan, this lne should ensure the rows are high
    portb=~dcd ix 'invert polarity
    So, I guess, you should add
    portb=~(dcd ix) +...
  3. Replies
    3
    Views
    370

    Re: Pulse train capture

    The HCS301 is a KEELOQ encoder device and what you are possibly asking is for the decoder code.

    Have you seen AN744? It gives a decoder in C. Should not be too far away from implementation in...
  4. Replies
    14
    Views
    4,508

    Re: BH1750FVI sample code available?

    You ought to be sending this way



    Assuming ADDR pin is low

    i2cwrite ldta, lclk, $46, adr, dat

    and read by
  5. Replies
    14
    Views
    4,508

    Re: BH1750FVI sample code available?

    1 - use the appropriate I2C address for the device based on the hardware pin state
    2) Slave Address
    Slave Address is 2 types, it is determined by ADDR Terminal
    ADDR = H ( ADDR ≧ 0.7VCC ) →...
  6. Replies
    7
    Views
    735

    Re: Matrix keyboard with State Machine

    If you're able to understand arduino C, look at the arduino matrix keyboard example. Nice FSM implementation https://domoticx.com/arduino-library-keypad/
  7. Thread: Season wishes

    by Jerson
    Replies
    2
    Views
    616

    Re: Season wishes

    Thank you Ioannis. I wish you and yours a Merry Christmas and a bright New Year
  8. Thread: USB Keyboard

    by Jerson
    Replies
    19
    Views
    5,482

    Re: USB Keyboard

    very nice instructive videos
  9. Thread: USB Keyboard

    by Jerson
    Replies
    19
    Views
    5,482

    Re: USB Keyboard

    If you follow the HID descriptor fields, you will notice you need to change the report count for the report which has to carry more data. The endpoint buffer is just a holding place for the in/out...
  10. Replies
    19
    Views
    3,010

    Re: What does this error message mean?

    A lot has transpired while I was asleep in my TimeZone. I think you found your answer.
  11. Replies
    19
    Views
    3,010

    Re: What does this error message mean?

    Post your code. It is easier for experienced members to help you as they might be able to try out the code to see the issue you have.
  12. Replies
    19
    Views
    3,010

    Re: What does this error message mean?

    Since you haven't shown the relevant code fragment, I suspect you are getting an error at a branch instruction that is branching past the 2048 bytes page size.
  13. Thread: USB Keyboard

    by Jerson
    Replies
    19
    Views
    5,482

    Re: USB Keyboard

    The easy part is to first verify the mouse code emulates correctly when connected to the PC. This ensures the skeleton is a working one.

    The not so easy thing to do is to get the Descriptor...
  14. Replies
    14
    Views
    2,059

    Re: why are we getting hit with all this spam?

    I am seeing many spammers have taken a liking to this site.. Either the work from home has given them more time on hands or the site has a vulnerability that they've found.

    First post approval...
  15. Thread: Audio player

    by Jerson
    Replies
    13
    Views
    1,766

    Re: Audio player

    Hi Ioannis

    Not sure how you can order Aplus where you are. Perhaps you may need to buy direct from the manufacturer in Taiwan. I used to source mine locally from a distributor in tiny...
  16. Thread: Audio player

    by Jerson
    Replies
    13
    Views
    1,766

    Re: Audio player

    The APR and ISD chips are basically meant for human voice and not high fidelity. They're inteded for TAM (answering machines) use.
  17. Thread: Audio player

    by Jerson
    Replies
    13
    Views
    1,766

    Re: Audio player

    I just remembered. There are these series of chips from Aplus that do exactly what you want. They are available in various capacities and can be segmented. So, you could record a few segments and...
  18. Thread: Audio player

    by Jerson
    Replies
    13
    Views
    1,766

    Re: Audio player

    Depending on the samples and quality, you may find that you need quite a bit of storage (SD card with SDIO interface). The power of the PIC to handle raw samples may be severely short to get a...
  19. Thread: Read from pic?

    by Jerson
    Replies
    1
    Views
    971

    Re: Read from pic?

    I am not aware of any tool that can reverse a HEX code to a high level code. The minimum is possible HEX to ASM
  20. Replies
    27
    Views
    4,580

    Re: Is there a wise way to debug a large code?

    If you want goto premakro to run when ticker>=150, perhaps you need to reframe that part with the else....endif

    I wouldn't mind looking over the code if you want.
  21. Replies
    26
    Views
    10,002

    Re: Graphical Displays with PBP3

    You've done an excellent job. Would you consider posting a small video demo to visualize the results?

    Warm wishes
  22. Replies
    3
    Views
    3,699

    Re: Merry Christmas to all...

    Merry Christmas to all who read this message - Thank you Dave.
  23. Re: Variables change depending on a SEROUT2 command placement in code

    Your Key_Cnt variable increments inside the IF condition and therefore, placing the SEROUT statement before the IF works correctly.

    You need to investigate that IF statement with this in mind.
  24. Re: Determining variable length (number of digits) possible?

    What you're looking for is commonly known as leading zero blanking. You could continue with filling blanks to digits after the value is zero. That is how you will achieve it.
  25. Re: Determining variable length (number of digits) possible?

    I will give a generic answer as my PICBasic skills are weak at the moment

    Assume your variable x contains 1000

    You can strip out digits like this from Right to left with position 0 at the right...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4