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

    Re: Arrayread and DEC modifier issue

    It is OK, that jumps to that label.
    This sequence "+UUSORD: ",44 never arrive. All characters must be in sequence for single wait instruction.

    You can do it like this
    arrayread BufferTemp...
  2. Replies
    1
    Views
    2

    Re: HP-HIL Keyboard Design

    Use HIL to PS/2 converter. Then send data from pic using PS/2 protocol. I think you have example on somewhere forum.
    As far as I know HIL use dedicated IC for interfacing device MCU to HIL Bus.
  3. Re: Looking for info - functions built-into PBP3 for controlling HD44780 displays?

    Yes there is file. You can edit it. There is example on forum cale LCD-AnyPIn, or something like that. But always have backup if you edit it.
    You can find it in few places.
    in PBP3 instalation...
  4. Thread: exponent math

    by pedja089
    Replies
    4
    Views
    1,224

    Re: exponent math

    Just create lookup table, with linear interpolation.
    I found it to be simplest and fastest way.
    I successfully created this function https://en.wikipedia.org/wiki/Mean_kinetic_temperature (second...
  5. Re: Determining variable length (number of digits) possible?

    Look up DIG. It isolates single digit, as you need it, without IF...
  6. Re: Current sensor output modification. PIC or opamp or something else?

    Sorry for that...
  7. 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...
  8. 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...
  9. 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...
  10. Re: Can we have multiple 1-wire devices on single pin?

    You just add one device at time. And search after you add one.
  11. Replies
    2
    Views
    603

    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...
  12. Replies
    5
    Views
    824

    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.
  13. 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...
  14. 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.
  15. Replies
    17
    Views
    2,714

    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.
  16. Replies
    17
    Views
    2,714

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

    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...
  18. Replies
    17
    Views
    2,714

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

    Re: 40466 LCD help

    Maybe this will help
    8797
  20. Replies
    17
    Views
    2,714

    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...
  21. 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.
  22. 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
  23. Replies
    21
    Views
    2,733

    Re: Array error in Hserin

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

    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...
  25. Replies
    12
    Views
    4,618

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