View PIC16F877A_ADC_lib_example.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ***************************************************************************** | |
* 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 | |
******************************************************************************/ |
View ADC_example.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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> |
View qt_linux_cmd_test.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Author : Anil C S | |
//Website : www.technoburst.net | |
#include <iostream> | |
#include <QProcess> | |
using namespace std; | |
int main(int argc, char *argv[]) | |
{ |
View pic16f877a_pin_change_interrupt.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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 |
View Factoirial B
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
View Factorial A
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |