Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.03 seconds.

  1. Re: Arraywrite converts all letters to uppercase?

    Yes, because - as we've discussed before - your beloved old ZX Spectrum (RIP Sr.Clive) ran a BASIC interpreter so it COULD check such things at runtime.

    With PBP there is no interpreter running,...
  2. Re: Arraywrite converts all letters to uppercase?

    I don't have that chip handy but I did compile the code for it and looked at the .lst file. Needless to say I can't see anything strange

    movlw low (low (_topline))
    movwf R5
    clrf (R5) + 1...
  3. Replies
    13
    Views
    326

    Re: Multiplying with 11 using PIC

    Off list I tried to get Mike to put some sort of number on the needed frequency resolution and allowable jitter. I got neither. I tried to explain how the NCO works and he determined it wasn't up to...
  4. Re: Arraywrite converts all letters to uppercase?

    What device are you running this on?

    Here it works fine (18F57Q43)

    Start:
    HSEROUT["Start", 10,13]

    arraywrite topline, ["ABCabc"]
    FOR X=0 TO 6
    HSEROUT [DEC...
  5. Replies
    32
    Views
    2,574

    Re: How exactly LCDOUT statement works?

    At the very beginning of this thread we went over how LCDOUT works, how it determines if what you give it should be sent as data or as commands, ie the $FE prefix. Now, a couple of weeks later you...
  6. Re: How to do bitwise shift across several variables/array members?

    No, there is no "one command way" to shift or rotate bits spanning multiple members of an an array. You will have to write some code to do that.
  7. Replies
    13
    Views
    326

    Re: Multiplying with 11 using PIC

    What sort of resolution are we talking about and how much jitter can you tolerate (ie how "clean" must the output signal be)?

    I would think that your best bet is to use a PIC that has a 20bit...
  8. Replies
    14
    Views
    5,026

    Re: Random PBP

    That line of code will scale the WORD sized Randvar variable (0 to 65535) to a value ranging from 1 to 7.

    Bascially it's the same as doing Result = Randvar * 7 / 65536 + 1

    /Henrik.
  9. Replies
    2
    Views
    183

    Re: 10F206 not running code

    Can't say I know what makes it run when you manually fiddle with the OSCCAL value but please repeat after me: I shall always check if analog functions are available on the pins I'm about to use. ...
  10. Replies
    32
    Views
    2,574

    Re: How exactly LCDOUT statement works?

    Sure, interfacing the chip is simple I2C or SPI but there's some quite heavy math involved in order to go from the raw values you get out of the chip to actual "units". Just look at the datasheet. If...
  11. Replies
    32
    Views
    2,574

    Re: How exactly LCDOUT statement works?

    As far as I know (correct me if I'm wrong) Arduinos support for NeoPixels is not part of the Arduino language itself. It's an add-in library that you have to download, install and include into your...
  12. Re: Handling a lot of text data, any simple and practical ways?

    Haha, yeah, wow :-)
    You post a snippet and you get complaints about it not working because someone can't be bothered to clear TRIS and ANSEL by them them selves. So, next time you post a fully...
  13. Re: Handling a lot of text data, any simple and practical ways?

    Thanks for stepping in Richard, I should've mentioned my example was for 18F series of course. Yeah, the padding... It's a tradeoff, either waste memory or waste some time :-)

    In your code I see
    ...
  14. Re: Handling a lot of text data, any simple and practical ways?

    LCDOUT $FE,D,$14 'Display char and move cursor to next char
    That line of code does NOT do what the comment says.

    You're telling it to interpret whatever you read from EEPROM (into the D variable)...
  15. Re: Handling a lot of text data, any simple and practical ways?

    Here's one way, a bit wasteful on FLASH with the fixed length but compared to individual HSEROUT (or LCDOUT) statements I'd imagine it's quite a bit smaller.


    Strings CON EXT

    i VAR BYTE
    Char...
  16. Replies
    5
    Views
    800

    Re: Driving SK6812 LEDs

    Hi Richard,
    If you mean the hardware assisted (CLC) version, then yes, I've seen it but have not tried it nor have I tried to understand exactly how it works.
    I think that sort of approach would...
  17. Replies
    5
    Views
    800

    Re: Driving SK6812 LEDs

    The article is now online:
    http://www.picbasic.co.uk/forum/content.php?r=560-Driving-SK6812-RGBW-LEDs
  18. Replies
    4
    Views
    490

    Re: Starting Pickit3 from MCS

    So what does your paramter
    For ipecmd.exe the -w parameter sets the voltage supplied by the programmer, -w3.3 for example.
    On my machine I have MPLABX v5.2, there's a docs folder in which there's...
  19. Replies
    4
    Views
    490

    Re: Starting Pickit3 from MCS

    You should call the command line executable, not the GUI application (which is what you're doing).
    The correct executable is PK3CMD.exe and your parameter format looks a bit strange. Please see:
    ...
  20. Replies
    32
    Views
    2,574

    Re: How exactly LCDOUT statement works?

    Well, LCDOUT is designed for 44780 compatible controllers. A quick look at the ST7920 datasheet seems to indicate that it's sort of compatible but with extended functionallity. It may or may not work...
  21. Replies
    5
    Views
    800

    Re: Driving SK6812 LEDs

    Sorry about that. I can't even see it myself anymore, I hope it's not vanished. Apparently a mod has to approve it before it goes "live" so to speak so hopefully it's "just" that.

    I'll post a link...
  22. Replies
    32
    Views
    2,574

    Re: How exactly LCDOUT statement works?

    Again, $FE is the "signal" to the compiler that the next byte should be sent to the LCD as a command and not as data.

    LCDOUT $FE, 0, 1 will send the value 0 to the instruction register and then...
  23. Replies
    5
    Views
    800

    Driving SK6812 LEDs

    Any suggestions, questions or discussions regarding the Wiki article on driving SK6812 LEDs can be handled in this thread.
  24. Replies
    32
    Views
    2,574

    Re: How exactly LCDOUT statement works?

    $FE is the "signal" to the compiler that the next byte should be sent to the LCD as a command and not as data. The fact that it's $FE and not something else is most likely because $FE in the...
  25. Replies
    29
    Views
    31,496

    Re: 12F683 2 x PWM Outputs

    Which program, exactly are you talking about? There are several ones in this thread - is it one of them?
    And what PIC are you aiming to use and have you selected that particular one in...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4