16F887 UART

General discussion on mikroC.
Post Reply
Author
Message
lotfibedui
Posts: 4
Joined: 12 Mar 2013 11:02

16F887 UART

#1 Post by lotfibedui » 12 Mar 2013 11:46

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.

hexreader
Posts: 1782
Joined: 27 Jun 2010 12:07
Location: England

Re: 16F887 UART

#2 Post by hexreader » 12 Mar 2013 14:03

Download the Easypic6 Development board sample programs.

I think there is a UART sample code there
Start every day with a smile...... (get it over with) :)

lotfibedui
Posts: 4
Joined: 12 Mar 2013 11:02

Re: 16F887 UART

#3 Post by lotfibedui » 13 Mar 2013 21:12

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

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: 16F887 UART

#4 Post by filip » 14 Mar 2013 12:14

Hi,

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

Regards,
Filip.

hexreader
Posts: 1782
Joined: 27 Jun 2010 12:07
Location: England

Re: 16F887 UART

#5 Post by hexreader » 14 Mar 2013 12:23

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
Start every day with a smile...... (get it over with) :)

lotfibedui
Posts: 4
Joined: 12 Mar 2013 11:02

Re: 16F887 UART

#6 Post by lotfibedui » 14 Mar 2013 17:50

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

hexreader
Posts: 1782
Joined: 27 Jun 2010 12:07
Location: England

Re: 16F887 UART

#7 Post by hexreader » 14 Mar 2013 18:18

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.
Start every day with a smile...... (get it over with) :)

lotfibedui
Posts: 4
Joined: 12 Mar 2013 11:02

Re: 16F887 UART

#8 Post by lotfibedui » 17 Mar 2013 11:35

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 :)

Post Reply

Return to “mikroC General”