Arduino with Pic

Hi,

I use pic 16f877a . If use arduino programming , if I check the pic ?

I believe that's an 8-bit PIC device and so far as I recall the Arduino API is available only on the PIC32 series.

The arduino and PIC processors are entirely different processors (and the 16f877 is really old - there are much better/cheaper ones available now). If you are interested in programming a PIC processor, you might want to check out the CCS forums HERE they are using the CCS compiler (C) for working with the PIC processors.

I use micro c , jal , and CCS Compiler ,but I use QTR8A analog sensors. I don't read sensors.

for example

if AN0 active, portb4 high
if AN1 active, portb5 high

so one by one read sensors

@Creative45, if you want useful advice the first thing you need to do is provide a detailed explanation of what you want to do.

The cryptic remarks you have posted already are pretty much useless.

...R

@Robin2

I'm project line follower. I use QTR8a , and I use pic16f877a. QTR8a connection is pic AN port. I want to burn the LED according to the information from each sensor.

That is still not nearly enough information. Be really daring and write 8 lines of explanation. (or even 12).

...R

The sensor array mentioned QTR8a appears to be used for things like "line following" with an analog output. Either the PIC or Arduino is capable of reading analog outputs so that is not a deciding factor. Given the 16f877a being mentioned, this has all the sounds of a class assignment that is due on Monday or something. The 877 is really old but often shows up in these assignments (and worse, involving a "Proteus simulation" with is notorious for missing things like power and ground, clock inputs and things like that).

Why are you even here? The device you have is not an Arduino. Try www.ford.com. Let them laugh at you for a while.

PaulS - most of the devices I use aren't Arduino, next to none in fact, BUT, they are Arduino API compatible including many a PIC32 baed device, so, I suugest a little more tolerance on your part.

It's the API that is important to many, not the hardware.

It's the API that is important to many, not the hardware.

Really? So which C++ statements are these?

if AN0 active, portb4 high
if AN1 active, portb5 high

To which I reply there is NOTHING in Arduino API documentation concerning those Atmel only C API features.

I did say the Arduino API functions.

Well, he has showed up over in the CCS compiler PIC forums - same questions, same vague information but asking for answers.