Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    19
    Views
    1,297

    Re: Unable to execute MPASMX

    Yes they do, but since it's only for the PIC18F series it's a little easier for them.

    I understand they'll be extending the existing MPASM to deal with new chips for a while, at least until mchip...
  2. Replies
    19
    Views
    1,297

    Re: Unable to execute MPASMX

    I don't think they give a ****.

    All of this was brought to their attention a while back and the response was basically "sucks to be you".
    It was "too hard" to convert mpasmx to 64-bit, and they...
  3. Replies
    19
    Views
    1,297

    Re: Unable to execute MPASMX

    Unfortunately there's more to it than just a name change.

    Assembly code written for MPASM will not work with pic-as (which is part of the XC8 V2.20 package), and has to be re-written to be...
  4. Replies
    19
    Views
    1,297

    Re: Unable to execute MPASMX

    Microchip have dropped MPASM/MPASMX as of MPLABX 5.40. It's no longer included.
    MPLABX is 64-bit only now, and MPASM is/was a 32-bit program.

    They have a new 8-bit assembler, pic-as.exe and it's...
  5. Replies
    27
    Views
    1,413

    Re: How to prevent variable going below zero?

    That's his problem... he DOES want to use a byte but as he adds or subtracts to the byte value it wraps and gives false operation.

    The way I usually handle this sort of thing is to have a routine...
  6. Replies
    27
    Views
    1,413

    Re: How to prevent variable going below zero?

    In your original code, change
    IF Z<100 THEN I=I-5 to this
    IF Z<100 AND I>=5 THEN I=I-5
  7. Replies
    2
    Views
    365

    Re: Reverse polarity in Direct serial data

    If you have the pins available you could run the RX through the comparator to invert it.
  8. Replies
    45
    Views
    9,540

    Re: Conway's Game Of Life

    To expand a little more on Henrick's last post, this gets it down to 3.51ms:


    tLED VAR BYTE

    FOR Row = 0 to 31 ' Cycle thru 32 rows

    TempW = ROW * 32 ' Precalculate...
  9. Replies
    2
    Views
    363

    Re: Assembly Interrupts for PIC 18F27K42

    You should never manipulate the GIE bit inside the ISR. That is handled automatically when you get the intr, and then RETFIE restores it on exit.
    Remove those two instructions.
  10. Replies
    31
    Views
    2,264

    Re: Asm sleep - pbp sleep

    That part is true. All GIE determines is if you'll wake up and go to the ISR vs just continuing on where you left off.

    What wakes you up is the RCIF that occurs when the 00 "break byte" comes in....
  11. Re: Controlling OG-4 Decathron with PBP in an efficient way.

    One simple thing you can do is to combine commonly occurring sequences into a sub, for example


    hl2:
    pause x
    high two
    low one
    return
  12. Replies
    13
    Views
    1,429

    Re: Speeding up a loop?

    16Fxx isn't the best choice

    For comparison:
    16Fxx @ 20MHz executes instructions at 5 MIPS,
    16F1xxxx @ 32MHz -> 8 MIPS,
    18F @ 64MHz -> 16 MIPS

    Looking back at your original pseudo code with...
  13. Replies
    13
    Views
    1,429

    Re: Speeding up a loop?

    There is no way that's anywhere near as fast as a lookup table.

    In your post on the MPELABS forum you had:


    lookbyte=timebyte // 32
    ampvar=SINB[lookbyte]

    The killer there is the '//'.
  14. Replies
    24
    Views
    3,862

    Re: DT_INTS for K42

    Same problem in asm, so if you can figure out how an isr works you can do it in pbp as well
  15. Replies
    24
    Views
    3,862

    Re: DT_INTS for K42

    It's more than just a simple interrupt register issue. The asm instructions are wrong for the K42.

    See posts #4 and #6.
  16. Replies
    24
    Views
    3,862

    Re: DT_INTS for K42

    The DT_INTS-18_K42b.bas file from post #9 won't work.
  17. Re: 18f4431 PORT.5 Problem Large automated machine

    CONFIG PWM4MX = RB5 ; PWM4 output is multiplexed with RB5
  18. Re: Confirm 18f47k40 MSSP setting and allocation using PSS

    I see now what you're doing.

    You're right, no SS needed. Sorry about the noise.
  19. Re: Confirm 18f47k40 MSSP setting and allocation using PSS

    Yes, it works fine without it until it doesn't.

    The SPI slave counts 8 clocks on SCLK in order to set BF to let you know you have a byte.
    When the slave uses the SS input, that bit counter is...
  20. Re: Confirm 18f47k40 MSSP setting and allocation using PSS

    I strongly recommend that you rethink those connections and use the SS input on the slave.

    Without it, if there's ever a single glitch on the SCK (like might happen when you're initializing...
  21. Replies
    12
    Views
    2,897

    Re: Ability to pay per MCU License.

    That's not necessarily true... it all depends on how the compiler allocates variables, how much your program uses, and the device.

    If "passed" variables are allocated in access memory vs banked...
  22. Replies
    19
    Views
    7,200

    Re: 10-Bit PWM using PIC16F1509

    Plus, I would think having the led off 2/3 of the time would decrease the brightness quite a bit.
  23. Replies
    19
    Views
    7,200

    Re: 10-Bit PWM using PIC16F1509

    Maybe I'm missing something here.

    What does LED1 do while the signal goes out to LED2 and then LED3?
  24. Replies
    28
    Views
    7,423

    Re: Error when compiling with DT_INTS_3_4b"

    That's odd... I don't see anything different about TMR0 or TMR1 in the file I have.

    There's no point in trying to clear RCxIF... that bit is read-only and will be set as long as there's a...
  25. Replies
    28
    Views
    7,423

    Re: Error when compiling with DT_INTS_3_4b"

    IOC is different from the other interrupts in that there are individual flags in the IOCxF registers that you have to clear manually.

    The DT-INTs routine doesn't know which of these you're using,...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4