Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Re: "Variable already an alias" - is there a way to avoid this?

    Try
    PORTD.4=A.0
    PORTD.5=A.1
    PORTD.6=A.2
    PORTD.7=A.3
    Another way
    PORTD=A>>4
  2. Thread: USB Keyboard

    by pedja089
    Replies
    19
    Views
    5,556

    Re: USB Keyboard

    I think you can find some info in this series:
    https://www.youtube.com/watch?v=wdgULBpRoXk

    https://www.youtube.com/watch?v=2lPzTU-3ONI
    Look for nkey roll over descriptor...
  3. Thread: USB Keyboard

    by pedja089
    Replies
    19
    Views
    5,556

    Re: USB Keyboard

    Along buffer size, you need to change in hid_desc.bas:


    ReportDescriptor1
    retlw 0x05
    retlw 0x01 ; usage page (generic desktop)
    retlw 0x09
    retlw 0x06 ; usage (keyboard)...
  4. Thread: USB Keyboard

    by pedja089
    Replies
    19
    Views
    5,556

    Re: USB Keyboard

    It is not so easy to change buffer. You must change descriptor file, not just length(If I understand usb correctly).

    You can send one letter and modifier key at time.

    Use this


    For i = 0...
  5. Thread: USB Keyboard

    by pedja089
    Replies
    19
    Views
    5,556

    Re: USB Keyboard

    I used it on win7, and if I remember correctly on XP. It should work on win10.
    You have keys.PBP, with all defined keys, also in .doc document you have codes.

    Also USBSERVICE should be called...
  6. Thread: USB Keyboard

    by pedja089
    Replies
    19
    Views
    5,556

    Re: USB Keyboard

    I made keyboard to use as shortcuts for EAGLE. Should be exactly what you need. I used it on easypic dev board. Pic should be 18F4550.
    Here is complete project 9108

    I created that using many...
  7. Replies
    2
    Views
    3,226

    Re: AT+CPBW confusion

    You don't have comma after = when sending from PIC.
    In serial comm you have =,
    Anyway I think correct syntax is AT+CPBW=1,"+22222222222" for writing to location 1.
  8. Replies
    14
    Views
    3,867

    Re: Crystal oscillator variability between PICs?

    You should be using HS. Try it...
  9. Replies
    4
    Views
    4,334

    Re: HX711 driver code

    You can try this:


    Hx711Cnt var Word
    I var Byte
    GraM var word
    GraMM var word
    SigN var byte

    Symbol dataa = PORTB.2
  10. Replies
    29
    Views
    48,399

    Re: Better code check before compile?

    Same here :confused:
  11. Replies
    3
    Views
    1,475

    Re: If ... THEN @ NOP

    I expected that...
    Then you must press enter two more times :)
  12. Replies
    29
    Views
    48,399

    Re: Better code check before compile?

    From manual

    2.18 Line-Concatenation ( : )
    Multiple commands may be written on a single line using colon characters to tell PBP where to insert a "virtual" line break.
  13. Replies
    29
    Views
    48,399

    Re: Better code check before compile?

    Hehe. Read manual...
    This : replaces new row. Same as you press enter on your keyboard. So try to compile code from my code above. You will get same results.
    Only thing behind THEN depending on IF....
  14. Replies
    3
    Views
    1,475

    Re: If ... THEN @ NOP

    @ symbol is for replacing ASM ENDASM. It should be first charter on that line, so it will indicate that line is ASM.

    So try to write If ... THEN ASM NOP ENDASM
  15. Replies
    29
    Views
    48,399

    Re: Better code check before compile?

    That is not bug. That way should work. This : is same as new row.
    So this line

    if ticker>150 and ard<140 and atrig=0 then ticker=1: atrig=1

    is same as this


    if ticker>150 and ard<140 and...
  16. Replies
    7
    Views
    3,767

    Re: AT+CMGS hangs if command is misissued

    Started with sim300, then sim900D, now sim800C.
    I think simcom is best modem for price.
    There is at least 150 pcs in few different products, and I think that there is no failed modem in field....
  17. Replies
    7
    Views
    3,767

    Re: AT+CMGS hangs if command is misissued

    There is no universal solution for that. It depends on implementation of AT command parser and sometimes there is difference between modems FW versions.
    In my programs I repeat command 3 times, if...
  18. Replies
    5
    Views
    4,017

    Re: CALL instruction not working

    I assume that you had PIC18 connected with external flash.
    I totally missed your first sentence in first post. Sorry about that.
  19. Replies
    5
    Views
    4,017

    Re: CALL instruction not working

    Are you sure, that you set up correct offset?
    Try to add hard coded address instead label.
    As I assume that flash adr 0 is not PC adr 0. Or I missed something?
    I'm also interested in your HW setup.
  20. Replies
    28
    Views
    36,189

    Re: Battery power back-uped circuit

    Mosfet is easy. Chose one with low Vgsth and as low as possible Rdson. Current more than 4A for modem only.
    I usually use AO3401. To be safe I put 2 parallel. Also it is good idea to PIC have...
  21. Replies
    28
    Views
    36,189

    Re: Battery power back-uped circuit

    You shorted gate to GND in first schematic. So MOSFET are allways on.
    As you see in document anodes of LEDs are connected to positive input supply via diode. Not to GND.
    I overlooked D1 in second...
  22. Re: Unable to fit variable XXX in requested bank 0

    Same here. And you can confirm that looking at .LST file.
  23. Replies
    28
    Views
    36,189

    Re: Battery power back-uped circuit

    First schematic can work. But MOSFET have no purpose. There is no need for one.
    Second schematic doesn't allow battery discharge when charging.
    Don't know where you found that schematic, but look...
  24. Re: Unable to fit variable XXX in requested bank 0

    PBP variables are allocated in bank0. There is a lot of variables if you have complex IF AND OR THEN statement.
  25. Re: My first PBP bootloader (almost) working .. help

    Just spent half an hour reading your first post :D

    You can get block size from ASM.

    BlockSize VAR BYTE BANKA SYSTEM
    @ MovLW BLOCK_SIZE
    @ MovWF BlockSize
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4