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.

pic16f877a problem output

Status
Not open for further replies.

jackobian

Member level 1
Member level 1
Joined
Sep 18, 2011
Messages
37
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Visit site
Activity points
1,542
I have pic16f877a, i use mikroc program for code implementation. and xeltek 5000e as a programmer. when i write value such as
Code:
main()
{
trisb=0;//port b out out
while(1)

{
portb=0x00001111;
}
}
and measure the value with oscilloscope it always below 0.5v. please help me
 
Last edited by a moderator:

My First question is that did your program compile very well?
Code:
Main(){
             TRISB =  0x00;
        While(1){
    PORTB = 0B00001111;
     }
}

Secondly did you simulate your project on softwares like Proteus before designing it in real world?.
 

Maybe is missing the famous MCLR 10K pullup resistor!!!
Or oscillator is wrong into the configuration of miKroc (use Ctrl + Shift + E, to see the parameters).

Code:
void main()
{
  TRISB = 0x00;
  TRISC = 0x00;
  PORTB = 0B00001111;
  PORTC = 0B11110000;
  while(1)
  {
  }
}

I attach my example using 8MHz crystal...
 

Attachments

  • project.zip
    21 KB · Views: 54

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top