PDA

View Full Version : 16f877A V 18F4550



comwarrior
- 18th September 2009, 20:42
ok, after killing my last 877a i orderd a new 877a and a 4550...
Acording to microchip, the 877a and the 4550 are not pin compatable...

However, i disagre...
with the following exceptions...

Pin 18:
877a: RC3 (SCK/SCL)
4550: VUSB
i havn't actually used pin 18 yet...

Pin 14:
877a: OSC2 (CLKO)
4550: OSC2 (CLKO/RA6)
oooh, if i use internal clock i get an extra IO pin...

Pin 1:
877a: MCLR (VPP)
4550: MCLR (VPP/RE3)
Question... how the hell can MCLR be used as an IO pin? as soon as it goes low (if input or output) your CPU resets...

I'm aware their is a gneration gap between them...
I'm aware their are internal changes...
I'm aware their are more analog lines
and I'm aware that the 4550 can run upto 48MHz (thats the main reason i baught it!)

Anyone know of any other pin diferences that i've missed?

Thanks

Darrel Taylor
- 18th September 2009, 23:26
...
and I'm aware that the 4550 can run upto 48MHz (thats the main reason i baught it!)
48Mhz isn't always such a good thing unless you'll be using USB.

With almost any other 18F device you can run at 40Mhz.
That extra 8Mhz doesn't really add much speed, but it really messes up the math when trying to do things.

Instead of the nice round 0.1uS instruction cycle, it's now 0.083333... repeating.
Then integer truncation causes small errors in just about everything you try to calculate against time.

If you will be using USB, then it's just something you have to live with, unless you run the CPU at a different speed while still giving 48Mhz to the USB.

Plus one bad thing about the 18F4550 is that you can't use both the USART and the MSSP module because the the RX and SDO share the same pin. SDO was moved from RC5 to make room for the USB D+ pin.

If there's no USB ... the 18F4420/4520 is a great alternative to the 877A.
Completely pin compatible, with lots of extras.
<br>

comwarrior
- 19th September 2009, 17:39
thanks for that darrel...

Actually, i currently have no plans to use the USB nor the USARTs but i may do at some point...

i'm actually only using two ADC's in my curent project, however, i do have plans to use them all so the extra 5 will come in handy...
The anoying thing is the extra ADC's are on a port i'm using for an LCD.. :( looks like it'll have to be moved...

Thanks

MyBuddy
- 21st October 2009, 19:34
I've found many. It would be tedious to list all the pin differences. Basically, don't try to drop this chip into an 877 circuit unless you want to redesign the layout. I'm a beginner, and I found that out the hard way. Bleh.

Here's what got me most:

Port C pins 4 and 5 are digital input ONLY, and on reset they are normally disabled. Unless, that is, the USB module and USB tranciever are disabled.