Author Archives: hammadk

Capture phone number from contact form

Form number can be written in various forms, with (), with – or with + sign. Instead of asking for a seperate field in contact form, you can capture it from withing text form  using regex. Demo: https://regex101.com/r/rKAjTO/1/ Regex for … Continue reading

Posted in Uncategorized | Leave a comment

LCD Display Manufacturers

The following are popular LCD Display manufacturers, some are cheap, other are expensive Newhaven Displays Orient Displays Midas Displays  

Posted in Uncategorized | Leave a comment

Cannot find plib.h MPLAB X IDE

I had copied a project that was builder in older MPLAB X IDE 3.x which I was opening in freshly installed MPLAB X IDE 4.05 but it was complaining about not find plib.h library which was referenced in the code. … Continue reading

Posted in Uncategorized | Leave a comment

Send SMS via C# Code GSM Module

The following is the code that you need to send SMS through C# code. Note, this code goes in to Send button click function handler.   private void btnSend_Click(object sender, EventArgs e) { try { SerialPort sp = new SerialPort(); … Continue reading

Posted in Uncategorized | Leave a comment

Simple Interrup Example MPLAB

The following code will run on MX320 32-bit microcontroller. Taken from “Programming 32-bit Micrcontroller in C”. Note that certain lines were modified to make it work. /* ** Single Interrupt vector test */ #include <p32xxxx.h> #include <peripheral\int.h> #include <plib.h> #define … Continue reading

Posted in Uncategorized | Leave a comment

Change device in MPLAB IDE

Go to configure menu and select device to change a difference device than already selected. A dialogbox will appear that allows  you select/change your existing device.  

Posted in Uncategorized | Leave a comment

XC32 not showing up in tool suite MPLAB 8.92

In Microchip MPLAB IDE 8.92, “Microchip PIC32 C-Compiler toolsuite” were not showing. If that is the case, you just have to click t he checkbox “Show all installed toolsuits”. Here is t he complete list of compilers   This is … Continue reading

Posted in Embedded C32, Microchip, MPLAB | Leave a comment