Coder Social home page Coder Social logo

pic16_dip40_board_codes's Introduction

Project - DIP40 BOARD - All the Codes for Free! ☕

This project uses the PIC-DIP40 Development Board and presents 7 projects using the PIC16F877A in C Language. All codes are functional!

Installation

Run theses Examples by Install MPLAB-X on WIN10:

Use: microchip_MPLABX

Use: MPLAB® XC8 Compiler

Version:
Product Version: MPLAB X IDE v6.10
Java: 1.8.0_345; OpenJDK 64-Bit Server VM 25.345-b01
Runtime: OpenJDK Runtime Environment 1.8.0_345-b01
System: Windows 10 version 10.0 running on amd64; Cp1252; pt_BR (mplab)

Documentation

PIC16F877A

MPLAB XC8 Compiler

PICkit™ 3

Run Locally

Download the project

Zip File

Create a Directory named:

  MPLABXProjects

Inside expand the Directories:

   (PRAT_1, PRAT_2...)

Open App and Point to Open each Project:

  MPLABX app

Usage/Examples

/*
     Prática 1 (A):   Piscar 1 LED
     MCU:             PIC16F877A
     Dev.Board:       PIC-DIP40 - UNINTER - VERSAO 2
     Oscillator:      4M
     Ext. Modules:    PIC KIT 3 - MICROCHIP
     Date:            AGO/2023
 */


#include <xc.h>                // Biblioteca do compilador
#include <pic16f877a.h>        // Inclua a biblioteca para o PIC16F877A0

                               // Configuração dos bits de configuração do PIC16F877A
#pragma config FOSC = HS       // Oscilador externo em modo HS (High Speed)
#pragma config WDTE = OFF      // Watchdog Timer desativado
#pragma config PWRTE = OFF     // Power-up Timer desativado
#pragma config BOREN = ON      // Brown-out Reset habilitado
#pragma config LVP = OFF       // Programação em baixa tensão desabilitada (Vpp alto)


#define _XTAL_FREQ 4000000     // Frequência do oscilador (4 MHz)
# define TRUE 1 

void main(){
    TRISD = 0x00;
    
    while (TRUE){
        PORTD = 0x7f;          // Todos pinos PORTD off, exceto RD0
        __delay_ms(1000);      // Espera 1 sec.
        PORTD = 0xff;          // Todos pinos PORTD off
        __delay_ms(1000);      // Espera 1 sec.          
    }
}

For LEDS:

In the PIC-DIP40 Development Board

> KEEP LED-EN jumper

For LCDs:

> REMOVE the LED-EN jumper

Authors

@linkedin

@GitHub

Screenshots

Micro chip Learning Board, Microcontroller Development Board with RS232 Interface,PIC16F877At

License

MIT

pic16_dip40_board_codes's People

Contributors

giljr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.