Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.07 seconds.

  1. Replies
    11
    Views
    492

    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...
  2. Replies
    19
    Views
    1,318

    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...
  3. 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...
  4. Replies
    19
    Views
    1,183

    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...
  5. Replies
    19
    Views
    1,183

    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...
  6. Replies
    19
    Views
    1,183

    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...
  7. 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...
  8. 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...
  9. 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...
  10. 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...
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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.
  16. 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....
  17. 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...
  18. Re: Can PBP read optical encoder damn fast? :)

    Have you read the specs for that HackADay thing?
    Anything that sticks out?
  19. Re: Can PBP read optical encoder damn fast? :)

    If the encoder strip has 60 lines per cm then you can get a resolution of 240 counts per cm by counting all four edges of the quadrature cycle.

    If you're OK with 60 it makes it a lot easier...
  20. Re: Can PBP read optical encoder damn fast? :)

    Do you have hardware already on which this has to run? If that's the case then please tell us what that is which PIC and which pins are available.

    Having the encoder pins spread across two...
  21. Re: Can PBP read optical encoder damn fast? :)

    Yeah, 1200 counts per second really isn't THAT much. How to go about it depends - as always - on what else the PIC is supposed to do while keeping count (ie should it output to the AD9833 and if so,...
  22. Replies
    45
    Views
    9,247

    Re: Conway's Game Of Life

    On EEVBlog I stumbled across a link to an old (1979) issue of BYTE Magazine, in it there's an article on algorithms for this Game of Life thing. Thought it might be interesting:
    ...
  23. Replies
    45
    Views
    9,247

    Re: Conway's Game Of Life

    The array transform routine, as posted above executes in 4.66ms on my test hardware (18F46K42 @64MHz).
    It's a small improvement but I managed to reduce that to 4.28ms by changing it into two...
  24. Replies
    45
    Views
    9,247

    Re: Conway's Game Of Life

    This shaved another 4ms off here, instead of:

    IF population > 3 OR population < 2 THEN
    lednew[counter] = 0
    ENDIF

    Do:

    IF Population > 3 THEN LEDNew[Counter] = 0
    IF Population < 2 THEN...
  25. Replies
    45
    Views
    9,247

    Re: Conway's Game Of Life

    From 3 to 15 frames per second in a couple of hours, I call that improvement.
    At one place (at least) you first do IF LED[Counter] = 0 and then a couple of lines further down you do IF LED[Counter]...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4