Digital Power & Motion Logo Header
 

C Code Snippets

Digital Power & Motion is offering a few C Code Snippets in complete packages at a very low cost.  These C Code Snippet Packages come as a zip file containing all code and project files necessary to run on several Microchip Evaluation Board platforms.  While written primarily for the PIC Microcontroller, the ANSI code is easily ported to other platforms.  The initial offerings include: 

  • encoderSSI: This C Code Snippet contains all code necessary to interface a PIC Microcontroller to an absolute encoder or incremental encoder using the Synchronous Serial Interface (SSI) protocol.
  • debounce:  This C Code Snippet contains all code necessary to interface a PIC Microcontroller to switch inputs to eliminate the "switch bounce" effect.
  • modbusRTU:  This C Code Snippet contains all code necessary to interface a PIC Microcontroller to a UART and RS-485 port to support communications via the Modbus RTU protocol as a Modbus Master or a Modbus Slave.
  • incEncoder:  This C Code Snippet contains all code necessary to interface a PIC Microcontroller to an incremental encoder with quadrature NPN outputs.
  • optrexF51553:  This C Code Snippet contains all code necessary to interface a PIC Microcontroller to an Optrex F-51553GNBJ-LW-AEN 128x64 Graphic LCD module.
  • hierMenu:  This C Code Snippet contains all code necessary to easily implement a hierarchical menu system that allows an operator to inspect and modify registers and invoke functions.  This menu system can be seen in action in the User Interface Demonstration video.
  • encoderUI:  This C Code Snippet contains all code necessary to interface a PIC Microcontroller to rotary encoder with momentary push switch to act as a user interface input device like that found on our VFD Sequencer.  This encoder user interface can be seen in action in the User Interface Demonstration video.
  • smallCAN:  This C Code Snippet contains all code necessary to interface a PIC Microcontroller to a CAN network supporting a CANOpen Lite implementation.

Please contact Digital Power & Motion for more information.