Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.02 seconds.

  1. Re: Can we have multiple 1-wire devices on single pin?

    You can read address, without searching, if it is only one device present at bus. Just write command $33, and collect next 64bit. Do this 3 time, one for each sensor.
    Connect all DS to bus.
    Write...
  2. Re: Can we have multiple 1-wire devices on single pin?

    You just add one device at time. And search after you add one.
  3. Replies
    2
    Views
    375

    Re: Bluetooth HC-05 Question

    Look at command set:
    https://www.itead.cc/wiki/Serial_Port_Bluetooth_Module_(Master/Slave)_:_HC-05
    Be aware that there is several fw for HC-05. I have build programmer for them that worked on...
  4. Replies
    5
    Views
    505

    Re: IR temp sensor

    Can you display raw register data?
    So you can compare result of your calculation with register value. Maybe sensor have some drift issues.
  5. Re: How to trap incoming Calls/SMS when no RING pin is available

    That would be most reliable way to go.
    Also you can call every ms something like this:

    Hserin 2,NoData,[WAIT(13,10),STR RecBuffer\100\10]
    This will capture date betwen two CRLF, and modem send...
  6. Re: 2G, 3G and 4G - how do I determine what my module is capable of?

    It support GSM and GPRS. So no 3 or 4g.
  7. Replies
    17
    Views
    2,292

    Re: jumping out of a gosub reminder

    You could just goto error handler if you found error. Then make just one exit of it, and exit with @ Reset.
    This will reset PIC and clear stack. Same way as if you power off then on.
  8. Replies
    17
    Views
    2,292

    Re: jumping out of a gosub reminder

    When compiler gosub, it will always return. Unless you use ISR to modify stack, which I wouldn't recommend.
  9. Replies
    17
    Views
    2,292

    Re: jumping out of a gosub reminder

    Not necessarlly, Lot of hi level programing language have this already implemented. eg in .net: On Error GoTo, Try, catch, etc...
    Same could be done for HW. If something external happened then you...
  10. Replies
    17
    Views
    2,292

    Re: jumping out of a gosub reminder

    But if I understand correctly he want to goto and never return.
    So you need to pop stack to prevent overflow.
  11. Replies
    3
    Views
    727

    Re: 40466 LCD help

    Maybe this will help
    8797
  12. Replies
    17
    Views
    2,292

    Re: jumping out of a gosub reminder

    I had similar ideas, but give up on them. I use something like this:

    Gosub xx : If err=1 then goto yy

    XX:
    if something to triger going to err sub then
    err=1 ' goto in different sub after...
  13. Re: Need to drive 4 rgb leds, but have only 1 pin available...

    You missed the point...
    Use same RC circuit to drive APA LED. Apa have Data and Clock pin and you have one pin free.
  14. Re: Need to drive 4 rgb leds, but have only 1 pin available...

    Not necessary, you can create clock and data using only one pin.
    eg
    https://www.romanblack.com/shift1.htm
  15. Replies
    21
    Views
    2,260

    Re: Array error in Hserin

    You need _ before PBP name, when used in ASM.
  16. Replies
    12
    Views
    3,927

    Re: Ability to pay per MCU License.

    Then declare variable in BANKA. And use it.
    I have one of best compilers for pic. It iscalled PicBasic Pro :)
    And pbp have very good optimization. And wouln't benefit in program size from adding...
  17. Replies
    12
    Views
    3,927

    Re: Ability to pay per MCU License.

    I use TmpB1... TmpW1... TmpL1 etc...
    Passing values to sub cant make nothing for better code efficiently.
    It can make it just look better. Behind curtain, ASM code is same, or worse if compiler...
  18. Replies
    4
    Views
    1,923

    Re: large preload includes

    It can be done with #IF ....
    Look manual for conditional compile in manual.
    I would suggest to you that you download data using serial port, or similar. So you don't have need to load multiple hex...
  19. Replies
    19
    Views
    7,922

    Re: 10-Bit PWM using PIC16F1509

    Take look at SPWM from DT. Or better MIBAM.
  20. Replies
    14
    Views
    3,480

    Re: Better code check before compile?

    That is exactly what I have on my mind in post #8.
    Maybe it will be useful if compiler give just warning about missing RETUN.
    But That wouldn't prevent bad stuff from happening same as it throwing...
  21. Replies
    14
    Views
    3,480

    Re: Better code check before compile?

    Then 80% of my programs wouldn't compile. I often use multiple entry point in same sub. And have only one return at end.
  22. Replies
    14
    Views
    3,480

    Re: Better code check before compile?

    If your code can start fire, you are doing something really wrong.
    For first run, always use PSU with limited power(at least current limiting) with no load at output. Move actuators if you have...
  23. Replies
    28
    Views
    8,682

    Re: Error when compiling with DT_INTS_3_4b"

    I didn't use K40. But it shouldn't be too hard to implement that.
    As you have only one INT source. TMR2 INT should be disabled. As you need timer 2 only for PWM.
  24. Replies
    28
    Views
    8,682

    Re: Error when compiling with DT_INTS_3_4b"

    I'll just guess, but probably interrupt flag isn't reset in ISR.
    So after exiting ISR, it will jump straight back into ISR.
  25. Replies
    14
    Views
    5,055

    Re: IOC on the 27k40

    For same reason I stick to PBP+MPLAB X. And in more than one case I compared very similar programs in C(and microC) and PBP, and PBP is by far smallest. So you can do more in smaller IC.
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4