1. Gather the details of the hardware protocol.
2. Create a new source file using a text editor (such as UltraEdit). Ensure that this source file is named logically, and is given the extension ".src" (e.g. "MyDriver.src"). Save this source file on your hard drive where you can easily locate it when it is time to move it to your application directory.
3. Structure your source file according to the rules for a tag template.
4. Referring to the topic, Mandatory Communication Driver Components, add the modules and variables required for a driver. The code you write in the mandatory modules will depend on the driver protocol.
5. According to the details of the driver protocol and your interest in logging statistics, add Optional Communication Driver Components.