Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    2
    Views
    3

    Re: Serin with 16F876

    its all guesswork with no config word setting offered;

    it's more than likely the osc won't function reliably @20mhz with the default pbp xt osc config

    can you even flash a led ?
  2. Re: 2nd Set of Eyes - with my Config settings for PIC16F1825 - running internal 32mhz

    the x4pll only works for intosc = 8mhz or suitable ext osc
    with no pll intosc from datasheet :-
    9004
  3. Re: 2nd Set of Eyes - with my Config settings for PIC16F1825 - running internal 32mhz

    config looks ok while that osccon setting will work

    osccon bit 7 SPLLEN: Software PLL Enable bit
    If PLLEN in Configuration Word 2 = 1: ie & _PLLEN_ON
    SPLLEN bit is ignored. 4xPLL is always...
  4. Re: Make PIC simulate binary up/down counter - how to calculate how fast can it count

    every edge [transition] is a decodable step for the encoder
    9003

    you catch each step with an edge triggered pin interrupt, you need a better chip , 16f1825 or something useful
  5. Re: Make PIC simulate binary up/down counter - how to calculate how fast can it count

    some thoughts, in my experience decoding quadrature signals that way usually miscounts when small back forward movements and or freq direction
    changes occur. plus you only get a quarter of the...
  6. Re: Joining 5 bit variables and splitting them into 8 bit ones later?

    a minimal, complete and verifiable example MCVE
    https://stackoverflow.com/help/minimal-reproducible-example


    here is one that shows no problem at all pbp3, examination of lst file confirms...
  7. Re: Joining 5 bit variables and splitting them into 8 bit ones later?

    basically this , modded slightly for the 4x8 font
    http://www.picbasic.co.uk/forum/showthread.php?t=24171
  8. Re: Joining 5 bit variables and splitting them into 8 bit ones later?

    proof of concept
    btw i like your font it looks better than my 6x5 one

    sorry for shaky vid , was trying to use mouse while steering phone , failed both accounts
    https://youtu.be/DanYYBoVOBU
  9. Re: Joining 5 bit variables and splitting them into 8 bit ones later?

    thats what happens with snippets ,there is no context

    SCREEN32 var bit[32] would have made it clear



    good luck
  10. Re: Joining 5 bit variables and splitting them into 8 bit ones later?

    after some thought ,



    i assume SCREEN32 is your 32 bit array ,
    SCREEN32[Y+8] is then a complete nonsense as the only valid locations are 0 to 3

    similarly wtf is char2 ? if its a byte...
  11. Re: Joining 5 bit variables and splitting them into 8 bit ones later?

    yes don't use shiftout, on a chip that has a mssp module it's an order of magnitude or two slower than spi
    its like having a dog and barking yourself



    yet characters persist over 8 lines and...
  12. Re: Joining 5 bit variables and splitting them into 8 bit ones later?

    you are dealing with a matrix that fills like this


    9001
    its not a particularly easy format to leverage font images that traverse cells , and you cannot read back the data from the matrix
    to...
  13. Replies
    1
    Views
    2

    Re: discriminating bird feeder

    it failed to stand up to the environment, two plastic gear servos now non responsive
    one 3mm brass tube axle broken off lever, time for a rethink i think



    https://youtu.be/T41AQhXlymM
  14. Replies
    10
    Views
    11

    Re: Apparent 2k limit with 4k 16F88

    hmmm
    mine is , as i say pristine ...
    '* Name : DT_INTS-14.bas *
    '* Author : Darrel Taylor *...
  15. Replies
    10
    Views
    11

    Re: Apparent 2k limit with 4k 16F88

    my dt-ints is in pristine condition
  16. Replies
    10
    Views
    11

    Re: Apparent 2k limit with 4k 16F88

    if you mean
    debug " ",10,13 '


    then it still complies and size goes to 2077
  17. Replies
    10
    Views
    11

    Re: Apparent 2k limit with 4k 16F88

    compiles just fine, its only 2059 words by my system



    can you be more specific , i don't see anything there to un comment
  18. Thread: exponent math

    by richard
    Replies
    4
    Views
    1,224

    Re: exponent math

    its a double precision 64 bit float too boot
  19. Replies
    10
    Views
    11

    Re: Apparent 2k limit with 4k 16F88

    i don't see anything in the errors that indicates a code size problem .
    i only have experienced those errors when using dt ints or similar with coff generation on or with duplicate includes
    ...
  20. Re: 16F690 and 24LC16B memory - can't WRITE 8 different bytes in a row

    the control word to address an individual memory cell is 16 bits long for that eeprom
    made up as ->
    $a0 + block <<1 + r/rw [0 for pbp] + eeaddress [0-255]
    for example block=5,cell 0x38
    0xA0 +...
  21. Re: 16F690 and 24LC16B memory - can't WRITE 8 different bytes in a row

    it's constructed as i stated and sent via i2cwrite as to single bytes ,big end first
  22. Re: 16F690 and 24LC16B memory - can't WRITE 8 different bytes in a row

    the closest eprom i have is a xc24c16 which is pretty similar


    this works for me


    DEFINE OSC 8
    sda var portc.1
    sck var portc.2
    TMP VAR byte[3]
  23. Replies
    1
    Views
    2

    discriminating bird feeder

    if it weighs the same as a ̶d̶u̶c̶k̶ ̶ king parrot ̶ ̶i̶t̶'̶s̶ ̶a̶ ̶w̶i̶t̶c̶h̶ feed it

    https://youtu.be/EiZgVlriKUQ
    running on esp8266 hx711 1kg load cell with all the smarts done in...
  24. Re: 16F690 and 24LC16B memory - can't WRITE 8 different bytes in a row

    keep is simple and clear/concise you need to supply 16 bit address $a0 + block <<1 + r/rw [0 for pbp] + eeaddress [0-255]

    ' VARIANT 6 - WRITE 8 different bytes to memory = not working
    EeWP =...
  25. Replies
    10
    Views
    11

    Re: Apparent 2k limit with 4k 16F88

    first thing i would try is in code and compile options make sure
    generate coff is not ticked
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4