Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    19
    Views
    3,889

    Re: 10-Bit PWM using PIC16F1509

    it won't do for room lighting, it's still useful though

    mp4 attached
  2. Re: Confirm 18f47k40 MSSP setting and allocation using PSS

    if you caught my post on p10 outdoor rgb before the forum shit itself and lost a years worth of posts you would see it actually needs
    6 streams. can't repost pbp ver, it got lost when my laptop...
  3. Re: Confirm 18f47k40 MSSP setting and allocation using PSS

    a spi port without sdi would not be a spi port it would be something else.

    not sure what you mean by ssp . ss=slave select,its an input pin.
    a spi master port has no ss pin there is no such...
  4. Re: Confirm 18f47k40 MSSP setting and allocation using PSS

    its not noise, it was an issue that i initially considered and worth a mention.

    the main issue for me was that mcc insists on a ss pin whether you configure to use it or not on that chip . i have...
  5. Re: Confirm 18f47k40 MSSP setting and allocation using PSS

    @tumbleweed
    although its sheldon's project the code is mine


    neither spi port reads in any data . the purpose is to send two simultaneous bit streams synced by the same clock.
    p10 led modules...
  6. Re: Confirm 18f47k40 MSSP setting and allocation using PSS

    thats the question
    the other question is , if you don't set a pin will spi2 still function
  7. Re: Confirm 18f47k40 MSSP setting and allocation using PSS

    in my original drafts of this code [p10 dual colour led panel] i did use cs/ss signals to sync transmission.
    it turned out that the time taken to clear/set cs pin and the impost of two extra pins...
  8. Replies
    3
    Views
    212

    Re: DT Interrupts and HSERIN / HSEROUT

    hserout could never be affected by interrupts in any normal sort of asynchronous use
    hserin will not be affected by interrupts in any normal sort of asynchronous use provided the isr does not take...
  9. Replies
    3
    Views
    212

    Re: DT Interrupts and HSERIN / HSEROUT

    seems no one else wants to comment
    reading the thread you linked it seems that using hserin/out rather than serin/out was the solution for serial comms when a usb int was used.
    if you disable usb...
  10. Re: pass pic basic pro pic from pic 16f877a to pic 16f887

    so
    a xtal osc freq unknown
    no OSC statement in pbp code
    and still not a clue about the config settings used
    no idea of how osc is treated in proteus
    and a cropped schematic thats barely...
  11. Re: pass pic basic pro pic from pic 16f877a to pic 16f887

    thats not even a close description of what i see in the vid


    i see an
    incompletely described pgm with no config settings
    performing an undescribed task
    in an unspecified circuit
    that when...
  12. Re: pass pic basic pro pic from pic 16f877a to pic 16f887

    you have been asking this question since 2018.
    what have you tried ?
    what are you measuring ?
    where is your schematic ?
    your code is incomplete what is in your config section ?
    why do think fp...
  13. Replies
    2
    Views
    241

    Re: Victron , VE.Direct

    if you don't understand then you are unlikely to need to


    https://www.victronenergy.com/live/vedirect_protocol:faq
  14. Replies
    2
    Views
    241

    Victron , VE.Direct

    i have a pic based C code i/f up and running and a wemos d1 /nodemcu/esp8266 udp interface too
    anybody interested ?
  15. Replies
    12
    Views
    495

    Re: Snap programmer

    http://support.melabs.com/forum/picbasic-pro-compiler-3-0-and-later/microcode-studio-ide/1017-curiosity-board-pkob

    i had issues with curiosity boards with cmdline from mcs , it worked ok using the...
  16. Re: pass pic basic pro pic from pic 16f877a to pic 16f887

    an adc result is only accurate to 2 places anyway so why not just use

    B1**25097


    result is (b1 *2000/52224 )*100

    eg
    b1 = 1023
    B1**25097=391
  17. Replies
    17
    Views
    728

    Re: jumping out of a gosub reminder

    hmm, in python at least a sub with a "try" still returns , even if the processing aborts and executes an "try" error routine.
    i see no goto or stack popping going on.

    a couple of python subs...
  18. Replies
    17
    Views
    728

    Re: jumping out of a gosub reminder

    using goto to control program flow = spaghetti code [hard to unravel ,hard to modify ]

    spaghetti code with stack popping to undo dead subs ?

    franken code ? [as in Frankenstein ]
    you would need...
  19. Replies
    6
    Views
    971

    Re: Effect of DT_INT14 on Serin2 or DebugIn

    no , thats pretty right any software timed function is compromised

    if you use an asm timer interrupt to set a flag to be processed in main code when needed and your serial baud rate is not too...
  20. Replies
    21
    Views
    794

    Re: Array error in Hserin

    UPDATE METHODS


    array var word[2]inx var byte
    ;UNCOMMENT FOR METHOD 8
    ADRESHi VAR BYTE ;BANK0 SYSTEM
    ADRESLO VAR BYTE ; BANK0 SYSTEM
    ;METHOD 0
    word_temp var word
  21. Replies
    21
    Views
    794

    Re: Array error in Hserin

    might need glasses






    there is none i know of but its pretty simple
    A = wreg
    B= byte
  22. Replies
    21
    Views
    794

    Re: Array error in Hserin

    not much on today so i tried a few options with pic16f877 and 16f1825 with no other complications code wise
    resultant code sizes are commented



    array var word[2]
    ADRESLO VAR BYTE
    inx var...
  23. Replies
    21
    Views
    794

    Re: Array error in Hserin

    makes no difference , did you notice that i had removed the math from the array indexing for the better method ?
  24. Replies
    21
    Views
    794

    Re: Array error in Hserin

    this way makes ext method 18 words less


    array var word[2]
    array_asbyte var byte ext
    @array_asbyte=_array
    inx var byte
    i var byte
    ADRESLO VAR BYTE
    ADRESHi VAR BYTE
  25. Replies
    21
    Views
    794

    Re: Array error in Hserin

    array[i]=(adresh<<8)|adresl


    or
    using ext modifier
    array_asbyte[i*2]=adresl
    array_asbyte[i*2+1]=adresh
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4