Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    5
    Views
    269

    Re: IR temp sensor

    Yeah, when you do x= y // 50 it will do a divide by 50 and then give you the remainder which can't be more than 49, right?

    If you first multiply the raw value by 2 it means you can then divide by...
  2. Re: Weird problem with large(ish) array access

    The plot thickens...

    Long stort short, flashed the device with the PICKit3, could not reproduce the error. Reflashed the bootloader into it and now I can no longer reproduce the error at will -...
  3. Re: Weird problem with large(ish) array access

    Yes, PBP 3.1.2.4
    If I leave the CRC variable declared it puts it at 0x0026 and Buffer at 0x0029.


    _BTN1 _PORTD??7
    _BTN2 _PORTH??3...
  4. Re: Weird problem with large(ish) array access

    Thanks Richard!
    This one's got me stumped for sure. After posting yesterday I had to get on with what I was doing so I just left the PAUSE 5 in there and added the remaining pieces of code back in...
  5. Weird problem with large(ish) array access

    Guys, I need some help here. This is probably one of the strangest bugs I've tried to figure out and I'm starting to believe it's actually not me (for once) doing something wrong.

    From a much...
  6. Replies
    10
    Views
    856

    Re: 12F683 _CONFIG problem

    Try indenting the _CONFIG... lines between ASM and ENDASM.

    /Henrik.
  7. Re: WS2812b and similar LEDs - do we need all time running tight loop for control?

    You don't have to refresh them continously, it's enough to update the string of LEDs when you need/want something to change. Just realise that in order to change one of the LEDs in the string you...
  8. Replies
    41
    Views
    1,850

    Re: Digital touch Screen Combination lock

    Yes indeed. One problem is that you are potentially jumping out of a subroutine without somehow ending up at a matching RETURN.

    Specifically: You're GOSUBing chkey but then, if any of the first...
  9. Replies
    14
    Views
    1,609

    Re: 8-bit Bootloader from Microchip

    When using the MCSP bootloader you have to understand that it is the CONFIG of the bootloader .hex file that you initially flashed into into the PIC that's "in play" and not the CONFIG in your source...
  10. Replies
    19
    Views
    1,974

    Re: 12F683 Light Dimmer Problem (SOLVED)

    You might know exactly what you're doing and if so that's great but just in case you don't here are some comments meant in all friendlyness:

    You're dealing with mains voltages here so you need...
  11. Replies
    13
    Views
    1,470

    Re: Weirdness with 16F1705's eeprom and DAC

    1) This device doesn't have on board EEPROM. Instead it's using a specific section of "program memory" for the same purpose. I don't think I've played around with that feature but my guess would be...
  12. Replies
    19
    Views
    1,797

    Re: Unable to execute MPASMX

    Hands up those who'll throw $100 Charles way to support him.
    If we'd setup some sort of crowdfunding compain, how much do you guys think we'd raise? My guess - enough to cover a couple of hours...
  13. Replies
    19
    Views
    1,797

    Re: Unable to execute MPASMX

    Of course not. But now, just as tumbleweed says, new devices will not be supported by MPASM so unless MeLabs brings their A-game and somehow creates support for this new assembler we will forever be...
  14. Replies
    19
    Views
    1,797

    Re: Unable to execute MPASMX

    Yikes! From the 5.40 relese notes:
    This does not sound too promising for the future of our beloved compiler...or does it? Perhaps this will allow (or even push) MeLabs to make the needed changes...
  15. Re: "Variable already an alias" - is there a way to avoid this?

    Since you start your offset value (the FOR loop) at 1 it the first bit to be set will be "one away" from PortA.0, in other words PortA.1 and then contiune 32 bits "up from there", so you will write...
  16. Re: "Variable already an alias" - is there a way to avoid this?

    I don't mean to be rude or to offend anyone but do you actually read and/or try any of the solutions you are provided with - for free - here or is the purpose of your post simply to vent your ideas...
  17. Re: "Variable already an alias" - is there a way to avoid this?

    You have to understand that the "code" Y VAR PORTA.0 isn't something that is actually being executed on the PIC itself. It's simply a way to inform the compiler that you, in your code, want bit 0 of...
  18. Re: "Variable already an alias" - is there a way to avoid this?

    Variables, aliases and constants are allocated/defined/whatever at compiletime - not runtime. So when the compiler hits the DG2 subroutine it sees you want a variable/alias called AX but it can't do...
  19. Re: Can PBP read optical encoder damn fast? :)

    Yes, it's because your particular encoder has 4 counts per detent and, as you say, sometimes it will "overshoot" the detent slightly causing the code register one count before it "springs back" into...
  20. Re: Can PBP read optical encoder damn fast? :)

    Thanks, hadn't seen (or did not remember seeing, certainly can't take credit for it) that macro but that's pretty much what I did except I copied the value byte-by-byte instead of using the MOVE?WW...
  21. Re: Can PBP read optical encoder damn fast? :)

    I made that exact mistake initially, hence the comment where the DIR variable is declared - yet I missed it when looking at you code...

    I wonder why reading the pins individually doesn't work in...
  22. Re: Can PBP read optical encoder damn fast? :)

    I have it running on the bench, works perfectly fine with an optical encoder (Scancon 2RMHF-500, 500 lines / 2000 edges per rev) - IRL :-)
    Like I said previously I do not expect it to work reliably...
  23. Re: Can PBP read optical encoder damn fast? :)

    Same setup as before, 18F4520 @20MHz so not really that fast.
    I don't know why it seems faster than the 1x version from earlier, perhaps I made a mistake when measuring either one of them.
  24. Re: Can PBP read optical encoder damn fast? :)

    If not pissing away 3/4 of the encoder resolution is something worth doing here's a replacement routine that does 4x decoding. It might not be the most optimized or elegant way but is works....
  25. Re: Can PBP read optical encoder damn fast? :)

    I couldn't help myself, had to see what I could do with just some simple, basic (no pun intended) coding. No interrupts, no hardware assist, no inline assembly language, just 33 line loop of straight...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4