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.
Re: PIC Behaving strange
Hi,
I tested the following assembly code agin, but no avail. I'm seriously thinking of issues with the programmer?
Here's the code, by the way...
org 0x00
start clrf PORTB
banksel TRISB
clrf TRISB
banksel PORTB...
Re: PIC Behaving strange
Hi all,
I couldn't access the internet over a week due to maintanence here. Thats why the delay.
Last week, I bought a fresh PIc and tested the code. It isn't working. plus, no sine wave is there across the Xtal. I'll try agian tomorrow with assembly.
will report...
Re: PIC Behaving strange
I use the CCS C compiler from within MPLAB to program as I absolutely hate their CCS IDE.
Actually, I don't know whether the processor is operating. But it gets proper VDD and VSS. I even measured the ouput voltage of the pin intended to be high. It shows around 2.2...
Re: PIC Behaving strange
Actually nothing happens. That is th problem. But, when I pull out the ground, the led lights up at a very dim brightness. When i put it back, sometimes, the led may glow.
I'm trying it again tomorrow.
Meanwhile pls help me if something is wrong...
Re: PIC Behaving strange
Thank you Frank, for your wonderful reply.
Further, I would like to know what are those internal fuses that you talked about to make the
PIC work ??
Re: PIC Behaving strange
I've not used the tris_x(11111111) format.
But I have tried output_high() function. I don't whether it is the reason, but when I do that, the PIC doesn't light up the led. But if i pull the Vss connection and put it rght back, the led lights up !!!!
Any idea ?
And does...
Re: PIC Behaving strange
namqn,
I'm not sure that the code is wrong. Somebody pointed out that the code may be wrong. So I thought that I would rather post the code here, so someone can point out the errors, if there are. As of the strange behaviour, the PIC is not lighting up a LED...
PIC Behaving strange
I wrote the following code on CCS C compiler for testing a PIC16LF877A..
void main() {
set_tris_a(0xFF); set_tris_b(0x00); set_tris_c(0x00);
while(1) {
output_bit(PIN_B1, 1);
output_bit(PIN_B2, 0);
}
}
Can anyone point out what is wrong in this code ...
Thanks for your advice.
But thats exactly what I did. I checked the connection and the resistors.
The only thing left is the opamp itself. I'll check it and report back on Monday
Hi,
The other day, I was doing an experiment involving the Fairchild 741C opamp. I had designed a simple Non inverting amplifier with input resistance 1K and feedback resistance 10K.
Now, when I switched on the circuit(the gain I expected was 10), the value of gain went upto 25 and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.