PIC16F877 and ADC example
In the following example project we will convert an analog input to channel 0 to 10 bit digital number and display it on an LCD Schematic Code [codesyntax lang=”c”] sbit LCD_RS at RB4_bit; sbit LCD_EN at RB5_bit; sbit…
In the following example project we will convert an analog input to channel 0 to 10 bit digital number and display it on an LCD Schematic Code [codesyntax lang=”c”] sbit LCD_RS at RB4_bit; sbit LCD_EN at RB5_bit; sbit…
In this example we connect a push button switch to RD0 when the button is pressed we will light an LED(s), when the button is not pressed the LED(s) will not be lit. Since we are using a QL200 development…
In this example we connect an RGB led to PORT C 0 – 2 of our PIC16F877A. Again we are using the Ql 200 PIC development board. The RGB LED is a common anode type, so to light an individual…
In this example we will connect an RGB led to our Pic 18F4520 Port D. We will then light the red, green and blue individually. We will connect this up as follows DO – RED LED D1 – GREEN LED…
This is a simple ‘Hello world’ type example. This was to test out a PIc18F4520 development board that I purchased, the board comes with 8 LED’s connected to PORT B. Here is the kit I purchased AliExpress.com Product – PIC18F4520-I/P…
In this example we used an RGB LED breakout board, here is a picture of an Surface mount RGB breakout board which was similar to the one we used, the PIC was a PIC16F877 We will connect the Red, Green…
Here are some more LED examples for use with the QL200 development board, all of these are written using the mikroC pro for PIC compiler Example 1: [codesyntax lang=”c”] int j; void main() { TRISA = 0x00; // Sets…
This first example is the usual flashy LEDs example. We will be introducing the development board we use (its the QL200 PIC development board), we will be using the mikroC pro for PIC compiler and we use the QL Programmer software that…
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Read More