Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PIC16F877 programming using the MPLAB IDE version 8.56 software

Status
Not open for further replies.

clarence501

Junior Member level 3
Joined
Jan 24, 2011
Messages
26
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Philippines
Activity points
1,463
How will I start in programming the PIC16F877 to configure it as an ANALOG TO DIGITAL CONVERTER device? My knowledge about programming the PIC16F877 is still in the level of doing Countup/Countdown Timers, Switching the Ports B,C and D for turning the Leds On. Interrupts, but not yet so good about it.
 

Hi,

You do not say which languague you are using - Assembler, C , Basic ?

Just look in this forum and search trhe web for the many Pic ADC tutorials that are around.
 

Hi,

If you use PIC16F877 in MPLAB IDE, please check sample on following link,
16F877A/D sample programs

Also read the chapter for AD-module in datasheet of 16F877; it has the best explanation.

Hope this helps you,
 
@wp100: MPLAB IDE is a software which uses C Language.

@DineshSL: Thanks,. By the way, do you know the equivalent circuit used to implement the sample program? I prefer the circuit in a PROTEUS - ISIS model.
 

Hi clarence501,

But the sample code in link is in Mplab-Assembly;
Circuit configurations are mentioned in beginning of code (see ;TEST CIRCUIT:)

Thank you,
 

@DineshSL: Yes I noticed it a while ago when I kept reading about the sample program. Is there a way where I can convert the sample program into a C Language? I'm not very good with the Assembly Language. I'm more familiar with the C Language because that's what we are studying in our School.
 

Hi,
I have no idea about a tool to do that task; only way is get the idea of assembly code and translate.

Thanks,
 

is it possible to use the assembly language with the MPLAB Software? Because I've heard from some of my friends that they are using Assembly Language in MPLAB
 

is it possible to use the assembly language with the MPLAB Software? Because I've heard from some of my friends that they are using Assembly Language in MPLAB

Hi,

Assembler is normally installed as part of MPlab, you just have to start a new project and select the Assembler libraries as you create the project.

However if you have used C why change - there seems plenty of ADC example on the Web in C - here's the first one I found
CCS, Inc. - CCS C Compiler Example Programs
There are many more with detailed tutorials in C - just google.
 
@wp100: Thanks for the informative link.. I can now start doing my experiment with this software. :D
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top