Search Results - MEL PICBASIC Forum

Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    18
    Views
    191

    Re: HTML and PIC communication

    It obviously isn’t PBP, but Microchip has an evaluation board and sample code that does exactly what you describe.
    It was later expanded by hobbyists to include Chan’s SD card library to host a web...
  2. Replies
    78
    Views
    5,481

    Re: GPS Project: PIC18F26K22 or PIC18F46K22

    I’ve little doubt you’d be right onto it Richard.

    I don’t regularly use PBP anymore, but usually come here bored looking for something useful to do, and most often come up empty.
    These days I’d...
  3. Replies
    78
    Views
    5,481

    Re: GPS Project: PIC18F26K22 or PIC18F46K22

    Is this still a thing, or did you give up, or have success?
    The first post states the objective is to parse NMEA from any GPS, but you’ll never achieve that with such rigid code.

    Richard is...
  4. Thread: Dave Houston

    by Art
    Replies
    2
    Views
    563

    Re: Dave Houston

    Gone to Arduino land. It’ll keep happening.
  5. Replies
    7
    Views
    1,645

    Re: MPLAB ICD Memory Usage Gauge Issues

    For the memory gauges, data is RAM, and it used to be labelled that way.
    Program used to be labelled flash, and is the sum of program, EEPROM, and configuration.
    The latter might be expressed...
  6. Thread: Not or Invert

    by Art
    Replies
    11
    Views
    570

    Re: Not or Invert

    That’s a tough ask :D

    I remember PBP used to disassemble BYTE = BYTE + 1 to a copy and add, which could be optimised in assembler,
    but later, I believe it was improved, and PBP will now...
  7. Thread: Not or Invert

    by Art
    Replies
    11
    Views
    570

    Re: Not or Invert

    incf operates on a byte. It’s ok if you have a whole byte to waste on a single bit.
    You can keep incrementing the byte, and it will toggle bit zero.

    To isolate a bit, I don’t think can be less...
  8. Replies
    5
    Views
    455

    Re: ADC input signal filter selection

    Depending on the application (if any latency is acceptable),
    you could take the mean of the last few readings and use that.
    Heart rate monitors typically do it. Things like speedometers, not such a...
  9. Thread: Not or Invert

    by Art
    Replies
    11
    Views
    570

    Re: Not or Invert

    Yeah, increment it.
    If the bit was zero it will increment to one.
    If the bit was one, it will overflow to zero.

    They will both probably end up the same in assembler though.
  10. Replies
    11
    Views
    579

    Re: Converting dec to hex, no built-in support?

    Yes the only time you need to “convert” between hex, dec,bin is to print something to display or send values out of a serial port for a Human to read.
  11. Replies
    7
    Views
    794

    Re: SD or MMC card as storage for logging

    Wow. I’d have loved to know about that at the time.
    Even if limited to FAT16, that should still be readable by any modern PC.
  12. Replies
    4
    Views
    354

    Re: digital integrator algo for bipolar sigs?

    Account has never replied. Certainly dodgy, but I’m real curious about what it’s supposed to achieve.
    Infiltrate now, SPAM later?
  13. Replies
    7
    Views
    794

    Re: SD or MMC card as storage for logging

    SD card filesystems are quite large. I’m not even sure one would fit on any PBP supported devices.

    This looks like a shrill account though, in any case.
  14. Replies
    1
    Views
    1,708

    Re: PIC16f877a ADC RESULT SHOING ON 7 SEGMENT

    It looks ok, but the ADRESH register wouldn’t be any kind of BCD. It’s just a binary value.
    So between ports B & D, it’s outputting the 10 bit binary value.
    The 7447 could display some values that...
  15. Replies
    18
    Views
    3,985

    Re: CHECKSUM CALCULATION, Please Help!

    Input arguments for PBP subroutines is probably the number 1 thing I’d be asking for too.
    It would probably mean a few more system variables consume a little more RAM, but the pay off is a lot of...
  16. Thread: Filling an array

    by Art
    Replies
    15
    Views
    1,307

    Re: Filling an array

    I’d have expected PBP to check it if the index was constant. It obviously has the information to do so.
    I’ve been caught out by mixing up dec & hex expression before, resulting in access out of...
  17. Replies
    7
    Views
    794

    Re: SD or MMC card as storage for logging

    Download what?

    I was aware of some raw data use of an SD card, which is basically using one as a large EEPROM.
    Has anything else happened? I’m sure PBP could do a FAT32 filesystem, but not sure...
  18. Replies
    18
    Views
    3,985

    Re: CHECKSUM CALCULATION, Please Help!

    Not really. A C function is a BASIC subroutine.
    C functions can have input arguments, but they are not needed for a function to work.




    counter var byte

    main:
    counter = 0
  19. Thread: Filling an array

    by Art
    Replies
    15
    Views
    1,307

    Re: Filling an array

    Ps.. I’d expect a C compiler error for using a constant index like this (expressed in BASIC) :


    var byte array [8]

    array[23] = 99
  20. Replies
    18
    Views
    3,985

    Re: CHECKSUM CALCULATION, Please Help!

    That is different syntax. Not a different way of thinking.
    It’s exactly the same routine.

    You’re not supposed to automatically know this, but it’s no harder (until it is real C specific...
  21. Thread: Filling an array

    by Art
    Replies
    15
    Views
    1,307

    Re: Filling an array

    C compilers only know the size of an array if it is explicitly declared (which it always is in BASIC),
    but XC16 certainly doesn’t give a warning or an error, no matter how the array is declared. It...
  22. Thread: Auto reset MCLR

    by Art
    Replies
    6
    Views
    690

    Re: Auto reset MCLR

    There is some benefit to timing out the watchdog in that some variables are not reset by it.
    If you aren’t using a timer, you could use a timer value as a flag to tell the program what to do the...
  23. Re: Modifying melabs sample code to set time to 24 hour for DS1302 ?

    There would be a number of ways.
    To drop bit 7 from a byte, where you know bit 7 will always be set (which you do:


    byte = byte - %10000000


    Or leave it as 12 hour, read the am/pm flag, and...
  24. Re: How to send number greater than 65535 to MAX7219 BCD decoder?

    This will effectively increment a 32 bit unsigned value.
    When both words contain the values you want, just send to the MAX7219 one after the other as a 32 bit value.



    wordlsb var word
    wordmsb...
  25. Replies
    6
    Views
    2,530

    Re: KS0108 glcd another look

    Also depends whether youíre already reading bits horizontally or vertically (which I havenít checked).



    // eighties style bold variable width character map
    const unsigned char charmapb[672] =...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4