Other articles

  1. PIC 16F688 ADC average.

    Introduction

    This little program reads the ADC value of AN7 5 times, stores it in an array, and calculates the average. This perticular examples uses an LM34. This is converted to Celsius.

    All the Uart - code is in the uart_header and uart_source files.

    The output

    Output

    The program

    // INCLUDE LIBRARIES
    #include …
    read more
  2. PIC 16F688 LM34 to PC.

    Introduction

    This little program reads ADC from AN7, converts and converts it to Celsius. There's a LM34 connected to AN7. TX is connected to a USB-RS232 converter.

    All the Uart - code is in the uart_header and uart_source files.

    The output

    Output

    The program

    // INCLUDE LIBRARIES
    #include <xc.h>
    #include <stdio.h …
    read more
  3. PIC 16F628A GSM Demo.

    PIC and SIM900A

    This program demonstrates how to use the SIM900A to connect and disconnect to the cell network with GPRS. The uart code are in libraries.

    Main program

    // INCLUDES
    #include <stdio.h>
    #include <stdlib.h>
    #include <xc.h>
    #include <string.h>
    #include "uart_init_header.h"
    
    // CONFIG
    #pragma config FOSC = HS …
    read more
  4. PIC 16F628A UART demo.

    This is a demo of how to use libraries when programming PICs.

    Main program

    // INCLUDES
    #include <stdio.h>
    #include <stdlib.h>
    #include <xc.h>
    #include <stdbool.h>
    #include <string.h>
    #include "uart_init_header.h"
    
    // CONFIG
    #pragma config FOSC = HS        // Oscillator Selection bits (HS oscillator: High-speed crystal/resonator on RA6/OSC2/CLKOUT …
    read more

Page 1 / 2 »

blogroll

social