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: why are we getting hit with all this spam?

    I was under the impression that when you sign up your first post(s) are being monitored and aproved by a moderator, yet most spam messages come from users with that specific spam message as their...
  2. Replies
    9
    Views
    329

    Re: When Driving An Indicator L.E.D.

    As before, Ohms law says that U=IxR, voltage = current x resistance. For a given current thru a given resistance there is a given voltage drop. The voltage drop across the LED is relatively constant...
  3. Replies
    9
    Views
    329

    Re: When Driving An Indicator L.E.D.

    That's what the resistor is there for, it's basic Ohms law (look it up if you don't know about it, it's fundamental in electronics)

    The PIC outputs 5V, the forward voltage of the LED is 1.5V at...
  4. Replies
    18
    Views
    729

    Re: 4 Wire SPI with Shiftin/Shiftout ?

    Yes, you're sending 3 bytes (four atually if you count the command byte ($03)) but what Richard is saying is that $100 does not fit within a byte and according to the manual it will then get...
  5. Replies
    18
    Views
    729

    Re: 4 Wire SPI with Shiftin/Shiftout ?

    One issue might be the fact that you have LCD datapins overlapping at least one of the pins that you're using with SHIFTIN/SHIFTOUT.
    This code does not match comment: TRISC=%00000000 'set half C...
  6. Replies
    18
    Views
    729

    Re: 4 Wire SPI with Shiftin/Shiftout ?

    I'd try mode 5 for SHIFTOUT and mode 6 for SHIFTIN.
    I would also add some code to make sure #CS is high for a while during startup. Then I would add a scope or logic analyzer to verify that what you...
  7. Replies
    18
    Views
    729

    Re: 4 Wire SPI with Shiftin/Shiftout ?

    The MAX7219 is not capable of outputting any data, therefor no data out pin.
    DS1302 might work with SHIFTIN/SHIFTOUT but its interface isn't really SPI.
  8. Replies
    3
    Views
    210

    Re: Background Pulse Counter

    TMR0 can be setup as a 8 or 16 bit counter clocked by your signal attached to the T0CKI-pin, you can choose rising or falling edge. It can also be set to interrupt on overflow so if you want to run...
  9. Replies
    18
    Views
    729

    Re: 4 Wire SPI with Shiftin/Shiftout ?

    Of course they have separate in/out pins, that's how SPI works.


    I think so. But for starters, looking at the image you posted you should send an 8 bit command followed by a 24 bit address...
  10. Replies
    27
    Views
    1,808

    Re: Multiplying with 11 using PIC

    The Si5351 looks cool and perhaps I'm missing something but banner specs for it says that the lowest frequency is 2.5kHz while requirements are 11Hz. You would need an extra output divider of 227:1...
  11. 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,...
  12. 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...
  13. Replies
    27
    Views
    1,808

    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...
  14. 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...
  15. Replies
    32
    Views
    3,178

    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...
  16. 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.
  17. Replies
    27
    Views
    1,808

    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...
  18. Replies
    14
    Views
    5,319

    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.
  19. Replies
    2
    Views
    317

    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. ...
  20. Replies
    32
    Views
    3,178

    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...
  21. Replies
    32
    Views
    3,178

    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...
  22. 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...
  23. 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
    ...
  24. 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)...
  25. 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...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4