Skip to content

Instantly share code, notes, and snippets.

@technoburst
technoburst / PIC16F877A_ADC_lib_example.c
Created Apr 25, 2013
Sample program to demonstrate the use od PIC16F877A ADC library
View PIC16F877A_ADC_lib_example.c
/* *****************************************************************************
* 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 Nov 9, 2021
Sample program to test ADC of PIC16F877A
View ADC_example.c
//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 Feb 3, 2022
Sample qt program to execute Linux commands
View qt_linux_cmd_test.c
//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 Dec 16, 2015
A sample program to learn pin change interrupt of PIC16F877A microcontroller
View pic16f877a_pin_change_interrupt.c
//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 Apr 3, 2013
Shell script to find the factorial of a number.
View Factoirial B
#!/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 Dec 15, 2015
Shell script to find the factorial of a number
View Factorial A
#!/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