CRC Error Detection / Modbus 16 Bit CRC / RS485

Поделиться
HTML-код
  • Опубликовано: 3 июл 2024
  • This video will describe code to generate Modbus CRC checks for data over RS485 links. Cyclic Redundancy Check is an industry standard for error detection.
    Scamp2e
    www.tindie.com/products/johnc...
    udamonic.com/what-is-a-scamp....
  • НаукаНаука

Комментарии • 10

  • @johncatsoulis
    @johncatsoulis Месяц назад

    Great explanation, Ken. Well done.

  • @lenharms9755
    @lenharms9755 2 месяца назад

    One 'speed up' we used to use was a pre-calculated ookup table instead of doing the math. As a memory lookup was faster. But in some cases you do not have he memory for it.

    • @0033mer
      @0033mer  2 месяца назад

      Back in the day I mainly used tables but with the current speed of microcontrollers ( STM32H7 @ 550 mHz ) its not a problem anymore. Even on the PIC everything was done on the stack, so it was at assembler speed.

  • @ShellacScrubber
    @ShellacScrubber 2 месяца назад +1

    I must admit this is one of the protocols I've not looked into in any depth but is very interesting none the less.
    Out of interest Ken, of all the various "Flavours" of embedded Forth you have tried, which one would you consider to be the most robust ?

    • @0033mer
      @0033mer  2 месяца назад +1

      The most robust Forth I have used would have to be F-PC by Tom Zimmer. It is now obsolete as it ran on a PC under DOS. I sometimes get it running using DOSbox. I ported it to a DOS SBC for many products that still run today. www.jkmicro.com/Flashlite186.html
      A windows version of F-PC called Win32Forth is a free download online.

    • @ShellacScrubber
      @ShellacScrubber 2 месяца назад

      @@0033mer Thanks Ken.It's much appreciated.

  • @mychromebook9935
    @mychromebook9935 2 месяца назад

    this guy built his house using 1-wire sensors, maybe you could do more on this? I think 1-wire is highly underrated: ruclips.net/video/VwH6B7aJYDU/видео.htmlsi=y7K_fuTIZV5XcHU7&t=562

    • @0033mer
      @0033mer  2 месяца назад +1

      I have made a few videos on the Dallas 1 wire protocol. Here is one of them: ruclips.net/video/yHTt9ZzBpEg/видео.html

  • @Kyoz
    @Kyoz 2 месяца назад

    🤍