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.

Need help in configuring pic16f887 part in Hitech C

Status
Not open for further replies.

kavin_eees

Member level 3
Joined
May 11, 2012
Messages
57
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Activity points
1,842
need help in configuring pic16f887 euart in hitech c

hi all
now am working with pic16f887 and am trying to work with euart of pic 16f887 but unfortunately am not yet getting the proper output

its working with proteus perfectly but not working with the hardware.

pls find sample code in the attachment
.kindly give me your valuable suggestionsView attachment test uart.txt
 

Re: need help in configuring pic16f887 euart in hitech c

Hi,

Not able to give a detailed error description?
Proteus schematic, which shows your actual and complete design?
How does the proteus scope picture look like?
How the real scope instead?

Klaus
 

Re: need help in configuring pic16f887 euart in hitech c

I don't use Hitech C but the code looks OK to me. It should send 'B' once per second at 38461.5 bits per second.

Note that simulators usually ignore things like the reset line and of course assume you are using the stated clock frequency and it is running correctly.

Brian.
 

Re: need help in configuring pic16f887 euart in hitech c

hi
thanks for your suggestions
but the problem is code not working with the hardware
its displays some other characters in hyper terminal..

- - - Updated - - -

hi klausst
pls find the proteus screen shot proteus output.jpg
 

Re: need help in configuring pic16f887 euart in hitech c

If it displays other characters then it means your PC baudrate setting is not correct. What terminal software are you using to capture the serial data ? Have you selected correct baudrate in serial terminal software that is same as then in code ? You might need to set baudrate in Control Panel > COM and LPT Ports > Your COM Port > properties > Baudrate to same as in code.
 

Re: need help in configuring pic16f887 euart in hitech c

hi baileychic
am usingmikroc hyperterminal software for capture serial data and am using 9600 baudrate in the hyperterminal software.
i tried two different hyper terminal but the results are same in both of the hyperterminal..
i think there is a fault in the code???
 

Re: need help in configuring pic16f887 euart in hitech c

In Control Panel > Device Manager > Your COM Port

Did you check its baudrate settings ?
 

Re: need help in configuring pic16f887 euart in hitech c

hi
thanks for all of your suggestions
the problem is solved
i had changed the SPBRG value to 25
now its working perfectly
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top