Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.11 seconds.

  1. Re: HSEROUT of array of data with termination on a null

    Jimbo,

    The pic can transmit at that rate but you might run into trouble receiving.
    921K is only 10us/byte, so you'll have to be able to handle incoming data at that rate.

    I've run 460K baud...
  2. Re: HSEROUT of array of data with termination on a null

    That's probably not too bad, considering you have to send packet requests to get data.

    Doing that's a good idea... I was worried you were just going to stream 256MB out the pic and expect the PC...
  3. Re: HSEROUT of array of data with termination on a null

    Most PC serial ports will run at 230400 baud.
    The J53 will... just set:
    BRG16=1
    BRGH=0
    SPBRGH=0
    SPBRG=5

    That might shave it down to under 4 hrs.
    Make sure the MAX232 (or whatever you're...
  4. Replies
    10
    Views
    1,446

    Re: Erroneous mathematical processing?

    The K83 has its SFR registers located at the top of ram, and the common ones are in bank 63 ($3F00).

    The MOVFF instruction only uses 12-bits of addressing, so the highest address it can reach is...
  5. Re: HSEROUT of array of data with termination on a null

    At 115K it takes ~22ms to send 256 bytes assuming back to back transfers. At 9600 it's over 10x longer than that.

    You could use background serial transfers while you do something to read that...
  6. Re: HSEROUT of array of data with termination on a null

    richard's code has some merits, but in almost all cases interrupts just add overhead... they rarely speed things up if that's what you're looking for.

    Here's another version of the code I posted...
  7. Re: HSEROUT of array of data with termination on a null

    If you're looking for more efficient then drop the formatting entirely and just send the binary data.
    If you format 256MB of data using HEX2 you end up with twice the number of bytes to transfer...
  8. Replies
    15
    Views
    1,764

    Re: Hersin quick question

    TRISB=%00000001 'Make RB0 input


    For the 16F628A you're setting the RX input (RB1) to output mode.
    The datasheet says to set both bits TRISB.2 (RB2/TX) and TRISB.1 (RB1/RX).
  9. Re: 2 didit up down counter using 16F628A program errors

    The simplest form of the mpasm 'include' directive has the form:


    include p16f628a.inc

    I think the angle brackets made part of the line drop out in richard's post, so if you try to copy that...
  10. Replies
    19
    Views
    2,715

    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...
  11. Replies
    19
    Views
    2,715

    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...
  12. Replies
    19
    Views
    2,715

    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...
  13. Replies
    19
    Views
    2,715

    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...
  14. Replies
    27
    Views
    3,180

    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...
  15. Replies
    27
    Views
    3,180

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

    Re: Reverse polarity in Direct serial data

    If you have the pins available you could run the RX through the comparator to invert it.
  17. Replies
    45
    Views
    12,892

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

    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.
  19. Replies
    31
    Views
    4,433

    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....
  20. 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
  21. Replies
    13
    Views
    2,378

    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...
  22. Replies
    13
    Views
    2,378

    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 '//'.
  23. Replies
    24
    Views
    4,967

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

    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.
  25. Replies
    24
    Views
    4,967

    Re: DT_INTS for K42

    The DT_INTS-18_K42b.bas file from post #9 won't work.
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4