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. Replies
    1
    Views
    82

    Re: Slave transmits data to master?

    No.
    With SPI the master is responsible for generating the clock. A slave can have a dedicted interrupt signal that tells the master it's ready to transfer data but it can not transfer data on its...
  2. Re: Another attempt for I2C eeprom, this time - 25C256.

    Not directly and the following isn't a hex editor but if it's intended purpose is to create "content" for LCDs then https://www.mikroe.com/glcd-font-creator might be what you're looking for.
    Here's...
  3. Re: Another attempt for I2C eeprom, this time - 25C256.

    Yeah, you really should spend some time getting that logic analyzer working and understand what it does. It's NOT an oscilloscope and although newer versions of the software does allow it to...
  4. Re: Another attempt for I2C eeprom, this time - 25C256.

    The 25C265 as mentioned in the title is a SPI EEPROM. That won't ever work with the I2C command.
    If, on the other hand, it's the 24C256 then the state of the A0-A2 pins will have an effect on the...
  5. Re: Arraywrite can't write word variables?

    Hmm, I can't test this right now but I think, perhaps, that particular line of example code is in error - which would be unfortunate, it being in the manual and all...
    If you look at section 5.5...
  6. Re: My code for ADC button handling, it works, but can it be slimmed down?

    If you have many inputs scattered around various ports and you want to "gather them" in one consecutive block so you can iterate over them using a loop then sure, why not. Otherwise I must say I...
  7. Re: 1Wire serial EEPROM, DS28EC20 and similar, any experience?

    I don't know, haven't checked but I did not say EEPROM, I said FLASH. You can store things in the program memory, after all that's how the program is held in there right.


    Allright, post your...
  8. Re: 1Wire serial EEPROM, DS28EC20 and similar, any experience?

    I would:
    1) Use a PIC with enough FLASH to store what needs to be stored (if possible).
    2) Use a FLASH-chip with SPI-interface (easier and faster than I2C IMHO)
    3) Use a FLASH/EEPROM with I2C...
  9. Re: My code for ADC button handling, it works, but can it be slimmed down?

    With 10 or 20 keys, how do you handle the event of more than one key being pressed at the same time?
  10. Re: PIC18F25Q43 serial combiner - possible?

    I agree with mpgmike, 100%.
    Really, the only three PBP commands I can think of that targets hardware peripherals are ADCIN, HPWM and HSERxxx (well, the EEPROM and READ/WRITECODE too of course). For...
  11. Re: PIC18F25Q43 serial combiner - possible?

    On the Melabs forum, see this thread:
    https://support.melabs.com/forum/picbasic-pro-compiler-3-0-and-later/pbp-wish-list/8018-18fxxq43-support

    Specifically post #32 where there's a download link...
  12. Replies
    4
    Views
    766

    Re: issue PBP compile with win10

    Reinstalling PBP is not what I'm suggesting.
    Simply moving the folder where the source files are located should be enough.

    If you've switched computers and restored your source files from a...
  13. Replies
    4
    Views
    766

    Re: issue PBP compile with win10

    Of all the things you've tried, have you tried moving the source folder? If not, try putting it in your documents folder.
  14. Replies
    19
    Views
    2,149

    Re: USB Keyboard

    I have some code (based on something found on the forum I'm sure) that does USB keyboard emulation.
    Letters and numbers I know works but I don't think I implemented F1-F12 etc. I'll dig it out and...
  15. 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...
  16. Replies
    9
    Views
    690

    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...
  17. Replies
    9
    Views
    690

    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...
  18. Replies
    18
    Views
    1,204

    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...
  19. Replies
    18
    Views
    1,204

    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...
  20. Replies
    18
    Views
    1,204

    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...
  21. Replies
    18
    Views
    1,204

    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.
  22. Replies
    3
    Views
    416

    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...
  23. Replies
    18
    Views
    1,204

    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...
  24. Replies
    27
    Views
    2,363

    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...
  25. 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,...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4