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: Current sensor output modification. PIC or opamp or something else?

    You got most of circuit. I added one more buffer, so input to rest of circuit is low impedance. If you know your sensor output, you can omit first buffer.
    Second OPAMP create comparator with...
  2. Re: Current sensor output modification. PIC or opamp or something else?

    If you use your signal for regulation of something, ADC/DAC solution act like first order hold
    https://en.wikipedia.org/wiki/First-order_hold
    And it can cause instability in regulation.
    So my...
  3. 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...
  4. Re: Can we have multiple 1-wire devices on single pin?

    You just add one device at time. And search after you add one.
  5. Replies
    2
    Views
    544

    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...
  6. Replies
    5
    Views
    717

    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.
  7. 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...
  8. 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.
  9. Replies
    17
    Views
    2,604

    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.
  10. Replies
    17
    Views
    2,604

    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.
  11. Replies
    17
    Views
    2,604

    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...
  12. Replies
    17
    Views
    2,604

    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.
  13. Replies
    3
    Views
    841

    Re: 40466 LCD help

    Maybe this will help
    8797
  14. Replies
    17
    Views
    2,604

    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...
  15. 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.
  16. 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
  17. Replies
    21
    Views
    2,626

    Re: Array error in Hserin

    You need _ before PBP name, when used in ASM.
  18. Replies
    12
    Views
    4,471

    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...
  19. Replies
    12
    Views
    4,471

    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...
  20. Replies
    4
    Views
    2,080

    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...
  21. Replies
    19
    Views
    8,364

    Re: 10-Bit PWM using PIC16F1509

    Take look at SPWM from DT. Or better MIBAM.
  22. Replies
    21
    Views
    4,571

    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...
  23. Replies
    21
    Views
    4,571

    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.
  24. Replies
    21
    Views
    4,571

    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...
  25. Replies
    28
    Views
    9,368

    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.
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4