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
    11
    Views
    253

    Re: Serout2 question

    serout2 PORTB.1, 84, ["This is my value:", dec MyValue, 13,10]

    There's no "packet" created... bytes are streamed out the software UART as they are made ready.

    There may be a small delay between...
  2. Replies
    21
    Views
    727

    Re: Latest PICs - how to program them?

    Except that for the 8-bit chips Positron doesn't really support anything much newer that PBP does (see my previous posts).
    They've been promising an update "Real Soon Now" since 2022...

    There's...
  3. Replies
    19
    Views
    419

    Re: HW-179 8-Digit 7-Segment LED Display (MAX7219 Driver)

    With that many displays I assumed they would be multiplexed as in richard's post #17.
    Surely a lot less supply current, and you wouldn't need nearly as many pic's to drive them... maybe get away...
  4. Replies
    19
    Views
    419

    Re: HW-179 8-Digit 7-Segment LED Display (MAX7219 Driver)

    Wouldn't it be simpler with common cathode? That way you only have a single sink transistor/fet for each set of digits, making it easy to PWM.
  5. Replies
    21
    Views
    727

    Re: Latest PICs - how to program them?

    As Ioannis pointed out, PBP updates for new devices is pretty much over.
    PBP uses the assembler (mpasmx v5.87) from MPLABX v5.35, and mchip has replaced mpasm with a new assembler PIC-AS, which is...
  6. Replies
    21
    Views
    727

    Re: Latest PICs - how to program them?

    Support for the 16-bit pic24/dspic33 parts is one of the nice things about Positron.
    But, if you thought SF was a bit quirky Positron is possibly worse in that regard.
    As you say, each have there...
  7. Replies
    21
    Views
    727

    Re: Latest PICs - how to program them?

    A lot of it really depends on what your ISR is doing.

    Just like PBP you can choose to save just the pic registers or also include the BASIC system library variables.
    SF has the additional...
  8. Replies
    21
    Views
    727

    Re: Latest PICs - how to program them?

    No idea about that one... not familiar with HIDMaker, but if it produces code for PBP I would think its output could be massaged to work with SF.
    All of the SF libraries are in source code so you...
  9. Replies
    21
    Views
    727

    Re: Latest PICs - how to program them?

    Positron Basic has the same problem as PBP... no support for devices not included with MPASMX 5.87.
    That rules out a number of newer 18FxxQxx and 16F1xxxx parts.
  10. Replies
    21
    Views
    727

    Re: Latest PICs - how to program them?

    Not at all.

    Swordfish supports ALL the 18F family of devices, including the newer Q family... Q10, Q40, Q41, Q43, Q83, and Q84.
    Support for the Q20, Q24, and Q71 devices will be released shortly.
  11. Replies
    21
    Views
    727

    Re: Latest PICs - how to program them?

    ... or if you really want the latest PICs then checkout Mecanique's Swordfish BASIC, but that only supports PIC18F family.
  12. Replies
    14
    Views
    585

    Re: MCP3301 A/D converter SPI reading

    To convert a 2's compliment negative value to a positive number, invert all the bits (NOT) and add 1.

    For example 2's compliment -1 = FFFF
    invert = 0000, add 1 = 0001
  13. Replies
    14
    Views
    585

    Re: MCP3301 A/D converter SPI reading

    Keep reading. It's a 13-bit differential converter.

    From the datasheet section 5.1:


    So that's 12 bits of data + sign. See Section 6.1.
  14. Replies
    18
    Views
    762

    Re: Filtering noise from a wire

    That's the wire speed... you'll never get the code to run anywhere near that fast except for a single byte transaction.
    You won't get I2C to run that fast without active pullups, and getting the PIC...
  15. Replies
    18
    Views
    762

    Re: Filtering noise from a wire

    +1

    If you're trying to use an IO expander to do that good luck!
  16. Replies
    143
    Views
    22,325

    Re: New project - MSFS C++ USB interface

    You shouldn't leave the inputs of the HC14 floating... the outputs will be unknown.

    Also, an ST gate really won't debounce anything if that's what you're trying to do.
  17. Re: Using MPLABX 5.35 Assembler without PbPro

    Turn off "case-sensitive".

    If you have MPLABX 5.35, the version of mpasmx should be 5.87... that's the last released version.
    You should find it in the MPLABX install directory under the mpasmx...
  18. Re: SSD1306 OLED (72x40) I2C display from scratch

    Because this thread will be followed with "how can I speed up my OLED display routines?".

    The choice is obviously yours, but the 18F27Q43 has 128K of flash, 8K of ram, and runs at 64MHz.
    The only...
  19. Replies
    8
    Views
    2,453

    Re: I2C code to write the DAC MCP4725

    In fast mode (with the upper two bits 00) you only need two bytes.
    If you want to use the EEPROM function you need all three bytes.

    Of course, both modes need the address byte too.
  20. Replies
    8
    Views
    2,453

    Re: I2C code to write the DAC MCP4725

    addr var byte
    addr = $C0 ;$60 <<1

    writedac4725:
    I2CWRITE sda,scl,addr,[4000] '12 bit value
    PAUSE 10 ' Wait 10ms for write to complete

    That'll do a fast-mode write to the DAC register as long...
  21. Re: GOTO statement causing jitter in output frequency, can be this fixed?

    If you reduce the timebase of your analyzer so you can capture an entire set of the FOR-NEXT loop, you'll see that it's not jitter but the increased time when the FOR-NEXT loop exits and the GOTO...
  22. Re: GOTO statement causing jitter in output frequency, can be this fixed?

    If you replace the two loops with a single loop then the timing should be consistent...


    x = 0
    masfrk:
    a=x.0
    b=x.1
    c=x.2
    d=x.3
    pauseus 194
  23. Replies
    19
    Views
    4,456

    Re: PCF8575 Does not work with my code....

    That looks correct to me (an even number of bytes, one for each port), and matches the datasheet shown in post #4.
  24. Replies
    19
    Views
    4,456

    Re: PCF8575 Does not work with my code....

    Commands to the PCF should be an even number of bytes (one for each port), and you seem to be showing 3.
    What's the extra byte after the address?
  25. Replies
    7
    Views
    1,952

    Re: MCS vs MPLAB 8

    To do that you'll need to implement a bootloader and be able to transfer the program via a serial port link or some other method.
    Is that what you're after?
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4