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
    14
    Views
    4,156

    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
  2. Replies
    14
    Views
    4,156

    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 ) →...
  3. Replies
    7
    Views
    570

    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/
  4. Thread: Season wishes

    by Jerson
    Replies
    2
    Views
    520

    Re: Season wishes

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

    by Jerson
    Replies
    19
    Views
    4,510

    Re: USB Keyboard

    very nice instructive videos
  6. Thread: USB Keyboard

    by Jerson
    Replies
    19
    Views
    4,510

    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...
  7. Replies
    19
    Views
    2,658

    Re: What does this error message mean?

    A lot has transpired while I was asleep in my TimeZone. I think you found your answer.
  8. Replies
    19
    Views
    2,658

    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.
  9. Replies
    19
    Views
    2,658

    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.
  10. Thread: USB Keyboard

    by Jerson
    Replies
    19
    Views
    4,510

    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...
  11. Replies
    14
    Views
    1,878

    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...
  12. Thread: Audio player

    by Jerson
    Replies
    13
    Views
    1,575

    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...
  13. Thread: Audio player

    by Jerson
    Replies
    13
    Views
    1,575

    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.
  14. Thread: Audio player

    by Jerson
    Replies
    13
    Views
    1,575

    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...
  15. Thread: Audio player

    by Jerson
    Replies
    13
    Views
    1,575

    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...
  16. Thread: Read from pic?

    by Jerson
    Replies
    1
    Views
    905

    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
  17. Replies
    27
    Views
    4,262

    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.
  18. Replies
    26
    Views
    9,452

    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
  19. Replies
    3
    Views
    3,260

    Re: Merry Christmas to all...

    Merry Christmas to all who read this message - Thank you Dave.
  20. 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.
  21. 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.
  22. 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...
  23. Re: How is this data being formed from the values given?

    Hi Peter

    Let us walk through this as per what I suggested

    (100V-10)*126 = 11340 = $2C4C
    (150V-10)*126 = 17640 = $44E8

    Now suppose we drop the last nibble( divide by 16), you get $24C and...
  24. Replies
    11
    Views
    10,487

    Re: Sample code for USB - MIDI

    You probably didn't see this in the OM. Moreover, I wonder what being supermod got to do with helping someone
  25. Replies
    11
    Views
    10,487

    Re: Sample code for USB - MIDI

    Since you're looking for plain communication with the PC via USB, I can suggest you look up the USB CDC descriptor. This will turn your PIC into a USB comm port visible to your PC. You then just...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4