PDA

View Full Version : 16f887a



menta
- 23rd July 2008, 22:59
After using the PIC kit 2 with the 16f887 i decided to build another device using 16f877A
I bough the DIP 40 pin chip and connected it according to the 887 circuit but of course using the correct leg number that match the 877A

I can write to the device and verify the code, which I guess means that everything ok, but I couldn't run my program or any other simple test to see its running.
I was trying to SEROUT some data to the UART.

Is there something wrong i'm doing ?


Menta.

mackrackit
- 24th July 2008, 01:04
It would help to see some code.
This chip has ADC so...

Darrel Taylor
- 24th July 2008, 05:49
Hmm, never seen an 887A :)

And along with the A/D on PORT's A,B and E ...
The 16F887 has an Internal Oscillator, but the 16F877A doesn't?

menta
- 24th July 2008, 07:52
Along the 16f877A circuits I saw, I didn't notice someone who connected an external ocs.

mackrackit
- 24th July 2008, 08:08
Here is a circuit and project;
http://rentron.com/PICX1.htm

The data sheet helps too :)

menta
- 24th July 2008, 19:23
Yea, the problem was an external osc.
I succeded to use a 8Mhz (also need to define that in the code), but for some reson 20Mhz doesn't work.

Thank,
Menta

mackrackit
- 24th July 2008, 19:31
Do you have the config set HS_OSC or something like that.