Author Topic: Confusion about PIC18F4450 PIC18F2550 pin, ICSP  (Read 4655 times)

0 Members and 1 Guest are viewing this topic.

Offline montclerTopic starter

  • Contributor
  • Posts: 28
Confusion about PIC18F4450 PIC18F2550 pin, ICSP
« on: November 08, 2012, 12:05:58 pm »
Hello,
I wonder if the pin 12 (NC/ICPGC) and 13 (NC/ICPGD) pic PIC18F4450 TQFP (44-Pins) (although this carry the same on pins 15 and 16) are equivalent and do exactly the same as the Pic PIC18F2550 DIP (28Pins) Pin 27 (RB6/PGC) and 28 (RB7/PGD), when programmed via ICSP. Apto.25 311 Pag-9. the datasheet.

PIC18F4450                      PIC18F2550  
  P.12 (NC / ICPGC)     =        P.28 (RB7/PGD)  
  P.13 (NC / ICPGD)     =        P.27 (RB6/PGC)

THX.
 

Offline JVR

  • Regular Contributor
  • *
  • Posts: 201
  • Country: be
Re: Confusion about PIC18F4450 PIC18F2550 pin, ICSP
« Reply #1 on: November 09, 2012, 07:27:28 am »
They do the same thing, the difference is that on the 4450 you dont lose IO, as those pins are reserved for ICSP
 

Offline montclerTopic starter

  • Contributor
  • Posts: 28
Re: Confusion about PIC18F4450 PIC18F2550 pin, ICSP
« Reply #2 on: November 09, 2012, 12:13:35 pm »
Hello,

You mean I can get more pins RB6 assigned (PGM) and RB7 (PGC) of PIC18F445 pic.
Since these pins apart PIC18F4550 is free to ICSP programming instead of using the RB exclusively ..

Thanks.
 

Offline Jon Chandler

  • Frequent Contributor
  • **
  • Posts: 539
    • Throw Away PIC
Re: Confusion about PIC18F4450 PIC18F2550 pin, ICSP
« Reply #3 on: November 09, 2012, 09:46:32 pm »
The data sheet is the best reference on this.  The pin out diagram has a footnote for 44 pin devices, referring to section 25.9, which says:

Quote

25.9 Special ICPORT Features (44-Pin TQFP Package Only)

Under specific circumstances, the No Connect (NC) pins of devices in 44-pin TQFP packages can provide additional functionality. These features are controlled by device Configuration bits and are available only in this package type and pin count.

25.9.1 DEDICATED ICD/ICSP PORT

The 44-pin TQFP devices can use NC pins to provide an alternate port for In-Circuit Debugging (ICD) and In-Circuit Serial Programming (ICSP). These pins are collectively known as the dedicated ICSP/ICD port, since they are not shared with any other function of the device.

When implemented, the dedicated port activates three NC pins to provide an alternate device Reset, data and clock ports. None of these ports overlap with standard I/O pins, making the I/O pins available to the user’s application.

The dedicated ICSP/ICD port is enabled by setting the ICPRT Configuration bit. The port functions the same way as the legacy ICSP/ICD port on RB6/RB7. Table 25-5 identifies the functionally equivalent pins for ICSP and ICD purposes.

Even when the dedicated port is enabled, the ICSP functions remain available through the legacy port. When VIHH is seen on the MCLR/VPP/RE3 pin, the state of the ICRST/ICVPP pin is ignored.


Note 1:
The ICPRT Configuration bit can only be programmed through the default ICSP port (MCLR/RB6/RB7).

...


So yes, you can use the alternative pins for ICSP provided you set the proper configuration bit via the normal ICSP pins.
 

Offline montclerTopic starter

  • Contributor
  • Posts: 28
Re: Confusion about PIC18F4450 PIC18F2550 pin, ICSP
« Reply #4 on: November 10, 2012, 10:02:43 pm »
Hello,
I'm angry because ... Imagine that we have a PCB that will track special ports 12 (ICPGC) and 13 (ICPGD) instead of 16 (RB6/PGC) and 17 (RB7/PGD) tracks are already made to schedule these pins. For if before using special pins I have to program them first by RB6 and RB7 and then activate the Fuse "ICPRT", would have to put in the PCB jumpers for programs after the first PIC and disable jumpers for programming by the second special port. Instead of saving those tracks would have to put four tracks instead of two.
Am I wrong or not? ...
Thank you.
 

Offline Smokey

  • Super Contributor
  • ***
  • Posts: 2597
  • Country: us
  • Not An Expert
Re: Confusion about PIC18F4450 PIC18F2550 pin, ICSP
« Reply #5 on: November 12, 2012, 04:13:33 am »
I'm using the 44-Pin TQFP 18F4458 in a couple boards I'm doing now.  It's all the same family.  I'm using only the dedicated ICSP pins to do programming with an ICD2 clone.  The shared pins are allocated for other stuff.  The only issue I had was I originally forgot to set the dedicated ICSP fuse in the MPLAB fuse setup.  Assuming that fuse is set in the software config, it acts the same as any other PIC I've ever used with shared ICSP pins.  You should be fine.

As a side note about those 8 bit USB PICs, if all you are using the USB for is a virtual serial port, the USB CDC PIC code takes up a HUGE piece of memory.  Plus bootloading with USB isn't as straightforward as with the TX/RX lines.  I'd say stick with the FTDI solution unless you need bulk transfer or HID or something.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf