Skip to content

Instantly share code, notes, and snippets.

@technoburst
technoburst / PIC16F877A_ADC_lib_example.c
Created April 25, 2013 05:59
Sample program to demonstrate the use od PIC16F877A ADC library
/* *****************************************************************************
* File : PIC16F877A_ADC_lib_example.c
* Created on : April 25, 2013, 9:39 AM
* Description : Sample program to demonstrate the use od PIC16F877A ADC library
* Notes : _XTAL_FREQ macro is defined in the project settings
* Author : Anil C S
* Website : www.technoburst.net
* Email : anil@technoburst.net, technoburst@gmail.com
******************************************************************************/
@technoburst
technoburst / ADC_example.c
Last active November 9, 2021 10:01
Sample program to test ADC of PIC16F877A
//ADC example program written for PIC programming tutorial.
//Target Device PIC16F877A
//Compiler: XC8
//Author : Anil C S
//Website : www.technoburst.net
//Email : anil@technoburst.net , technoburst@gmail.com
#include <stdio.h>
#include <stdlib.h>
@technoburst
technoburst / qt_linux_cmd_test.c
Last active February 3, 2022 16:24
Sample qt program to execute Linux commands
//Author : Anil C S
//Website : www.technoburst.net
#include <iostream>
#include <QProcess>
using namespace std;
int main(int argc, char *argv[])
{
@technoburst
technoburst / pic16f877a_pin_change_interrupt.c
Last active December 16, 2015 02:39
A sample program to learn pin change interrupt of PIC16F877A microcontroller
//Pin change interrupt example program written for
//PIC programming tutorial.
//Target Device : PIC16F877A
//Compiler : HITECH C
//Author : Anil C S
//Website : www.technoburst.net
#include <htc.h>
__CONFIG(0x3f7a); //Setting the configuration bits
@technoburst
technoburst / Factoirial B
Created April 3, 2013 04:40
Shell script to find the factorial of a number.
#!/bin/bash
#Script to print the factorial of a number
echo "\nThis is a script to find the factorial of a number"
declare -i count result
echo "Enter a number : "
read num
@technoburst
technoburst / Factorial A
Last active December 15, 2015 17:39
Shell script to find the factorial of a number
#!/bin/bash
#command to find the factorial of a number
#Syntax : fact [arg]
declare -i count result
# The script will treat subsequent occurrences of "count", "result" as an integer.
if test -z $1 ; then