Page 1 of 1

16F887 UART

Posted: 12 Mar 2013 11:46
by lotfibedui
hi
I work on a project to realize a temperature acquisition card ,with 14 analogic input, based in a 16F887 microcontroller,and controlled by computer, so I tried to configure the UART module in C (with pic C compiler) to be able to exchange data between my card and the PC via the rS 232 connection, but I can not succeed in this task as I am new in this field.
then I will be grateful if someone can give me a C program that allows me to achieve this task.

Re: 16F887 UART

Posted: 12 Mar 2013 14:03
by hexreader
Download the Easypic6 Development board sample programs.

I think there is a UART sample code there

Re: 16F887 UART

Posted: 13 Mar 2013 21:12
by lotfibedui
thank you very much brother, I just want to know if this code which you speak is compatible with PIC C compiler and thank you in advance

Re: 16F887 UART

Posted: 14 Mar 2013 12:14
by filip
Hi,

Yes, this code is compatible with the mikroC PRO for PIC compiler.

Regards,
Filip.

Re: 16F887 UART

Posted: 14 Mar 2013 12:23
by hexreader
Ah.... I see now...

You have the older version of C compiler.

The code may not work for the old compiler.

The old compiler is obsolete.

Upgrade to the latest 'pro' version. Upgrading is free. Just make sure you have the registration program handy.

If you have not registered, then you can still upgrade to the latest 'pro' compiler, but code size will be limited

Re: 16F887 UART

Posted: 14 Mar 2013 17:50
by lotfibedui
thnx man,but i don't work widh "mikroC compiler", i'm working with an athor software called "PICC compiler"
in this link you can get an idea about "PIC compiler"
https://www.google.tn/search?q=picc+com ... 66&bih=667

Re: 16F887 UART

Posted: 14 Mar 2013 18:18
by hexreader
lotfibedui wrote:i'm working with an athor software called "PICC compiler"
Then you are on completely the wrong forum.

This is the MikroElectronica forum.

Re: 16F887 UART

Posted: 17 Mar 2013 11:35
by lotfibedui
yes I know but I thought may be someone of you have an idea about my problem that can be useful to me :)
thanks for your time anyway :)