Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    148

    Re: Bytes roll over sanity check

    I agree, but sometimes you get a concerned worm in your head that needs confirmation from another human.

    Thanks
  2. Replies
    2
    Views
    148

    Bytes roll over sanity check

    Sanity checking..

    Just checking that PbPro bytes and words roll over if incremented etc beyond 255/65535?

    And that a 256 element byte array indexed with a byte variable will just roll over...
  3. Re: Dual 18F Program Ideas and strategy SPI and CAN.

    Yes automotive.

    I have already developed several popular devices to control Honda Hybrid vehicle systems or modify OEM behaviour.

    The desire to modify cars has not really changed.
    But instead...
  4. Re: Dual 18F Program Ideas and strategy SPI and CAN.

    I made a small standalone test board using 2 x 64mhz 18F26K80 pics and that works well with the SPI bus running at 4mhz.

    I'll post the final pbp code when finished..
  5. Re: Dual 18F Program Ideas and strategy SPI and CAN.

    The 500kbps CAN bus is not fully loaded so I think I might have cracked it for now.

    I added a control line from the Slave to the Master to basically say 'Hold on Boss i'm not ready'.

    This also...
  6. Dual 18F Program Ideas and strategy SPI and CAN.

    I'm building a MITM 'Man in the Middle' CAN - CAN device to manipulate some CAN 500kbps data.

    I'm happy working with pic CAN rxd and txd and am using 2 x pic18F2680 32mhz joined with hardware...
  7. Replies
    2
    Views
    655

    Re: 18f2680 can config

    No one working with CAN?
  8. Replies
    2
    Views
    655

    18f2680 can config

    Hi I could do with a bit of help on optimum PIC18F2680 CAN timing settings.
    It is correctly terminated with 120R resistors at both ends.

    I'm confused by quanta etc.

    The PIC data sheet is...
  9. Replies
    10
    Views
    1,268

    Re: 12F683 _CONFIG problem

    I've never seen it done like that before and I also use DT stuff and 16f83...
  10. Replies
    10
    Views
    1,268

    Re: 12F683 _CONFIG problem

    Why are you putting the pic config stuff in the assembler code sections?

    Here is one of my 12F683 configs..

    It should be right at the start of the program.



    #config
    __config _FCMEN_ON...
  11. Re: ADC keyboard and fast response to user input, possible?

    Could you post your clock schematic and code please? Maybe in a new thread..
  12. Replies
    45
    Views
    11,736

    Re: Conway's Game Of Life

    I now have some text capability on my 16x16 Led 12F1840 'Life' setup.

    Ok it's static boring at the moment 5 byte x 8 bit font, but I also need to work out scrolling etc.

    Useful for menus and...
  13. Replies
    45
    Views
    11,736

    Re: Conway's Game Of Life

    Very nice Richard. What LED's are those?

    Did my thread resurrection encourage you.. LOL

    Can we have a look at your 2048 led code? In particular the word seeds....

    Thanks and very cool.
  14. Replies
    45
    Views
    11,736

    256 Led Matrix running on 12F1840 Pic.

    As video.

    Colour 'Life' on tiny 12F1840.

    https://youtu.be/M-yf_b0J-nM
  15. Replies
    45
    Views
    11,736

    Re: Conway's Game Of Life

    Could I have a look at your Life CRC16 code please Richard?
  16. Replies
    45
    Views
    11,736

    Re: Conway's Game Of Life

    Thanks Henrick..

    If the array transform only takes call it ~5ms per generation then at 15hz it's using 75ms in a second.
    Roughly equivalent to one extra generation per second. Getting close to...
  17. Replies
    45
    Views
    11,736

    Re: Conway's Game Of Life

    Currently i'm using three things.

    1) A simple maximum number of generations reset limit (500). That catches everything.

    2) A simple live cell counter. If it's zero then it resets.

    3) A...
  18. Replies
    45
    Views
    11,736

    Evaluate the Neopixel array directly

    So a final effort to save 1024 bytes of RAM, one complete array, and perhaps give some increase in speed would be to be able to directly evaluate the odd neopixel array layout.

    As I mentioned the...
  19. Replies
    45
    Views
    11,736

    Re: Conway's Game Of Life

    Thanks. All good stuff. I think we are getting near the limit.

    The actual output to the WS2812B 1024 NeoPixel array is handled by the large mixed basic/assembler subroutine below.

    I made a...
  20. Replies
    45
    Views
    11,736

    Re: Conway's Game Of Life

    For the big evaluation routine we currently have this giving about 15hz



    '----------------------- Also creating a newled data array to be displayed on next generation -------------

    FOR...
  21. Replies
    45
    Views
    11,736

    Re: Conway's Game Of Life

    Thanks to all who have contributed so far. :cool:

    I will post the complete code and circuit schematic etc when I have it finished and we can't eek out any more speed.

    I tweaked if LED[Counter]...
  22. Replies
    45
    Views
    11,736

    Re: Conway's Game Of Life

    That all works and I changed the AND statements.
    Maybe 15hz now :) but I need to do some proper timing.



    The arrays also store LED RGB colour and brightness information so one bit is not...
  23. Replies
    45
    Views
    11,736

    Re: Conway's Game Of Life

    I incorporated all those ideas and it is now running at over 13hz v 3hz before. Well done Team! :D

    The Colour Array is only 8 elements and holds the colour of any adjacent cells to the one being...
  24. Replies
    45
    Views
    11,736

    Re: Conway's Game Of Life

    I'm very grateful for all these interesting replies. Thank you.

    There are three basic 1024 element byte arrays.


    Led var byte[1024] used to hold the current generation of cells


    LedNew...
  25. Replies
    45
    Views
    11,736

    1024 led Code optimisation: Conway's Game Of Life

    This is progressing very nicely and I now have 1024 leds in colour.

    In order to conserve RAM I got rid of two of the colour arrays for the NeoPixels and just kept a single array with RGB info in...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4