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.

16f877 power-up uart problem

Status
Not open for further replies.

whitenoise

Member level 1
Joined
Aug 21, 2001
Messages
34
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
235
Hi all,
in one protoype board I have a 16f877 bridging with two peripherals through the embedded uart (receive only, 57600,8,n,1 IRQ based) and a software one (transmit only,9600,8,n,1 blocking)

At power-up the peripheral send its message but the UART IRQ seems not work (I've tried to move a port upon entering ISR). Only if I manually reset the MCLR pin, the system works.
The MCLR pin is tied via a 10k resistor to Vcc.

I have already tried with an external reset chip and the PUT and BOD option of compiler but nothing happens!!

Have you ever experienced such a problem or have some idea on the problem?

thanks, wn.
 

After boot up you can try to wait some (20-50ms).

But i don't understand you clearly, how the
peripherals know the PIC is booted up and they can send?

regards,
Zed
 

After MCU configuration, the micro sets a pin, enabling the peripheral.

bye wn.
 

Do you check the receiving for errors? I mean
FERR & OERR bits? If they set then it won't receive
and you should take appropriate actions described
in the datasheet and re-enable receiving.
It can be that the reset you made after boot up
clears these but may not.

hope this helps,
Zed
 

Zedman you catch the error :D
There was a FERR on power-up sequence.

Thanks a lot, wn.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top