PIC 16F505

Some information about the new Microchip PIC 16F505. (10/12/2006)


I consider the new 16F505 as the "missing link" beetween the 12F50X and the 16F84A. Basically, the 16F505 is fully-compatible with the 12F50X


16F505 vs 12F50X
Microcontroller PIC 16F505


Here are some differences between the 12F50X and the 16F505:


512 words (12 bit), 25 bytes SRAM, 5 I/O ports + 1 Input pin.
one 8-bits timer, Max speed: 4Mhz and 33 instructions.


1024 words (12 bit), 41 bytes SRAM, 5 I/O ports + 1 Input pin. one 8-bits timer, Max speed: 4Mhz and 33 instructions.


1024 words (12 bit), 72 bytes SRAM, 11 I/O ports + 1 Input pin. one 8-bits timer, Max speed: 20Mhz and 33 instructions.


The only difference on this PIC is: more speed, more ports and more SRAM. Basically it can replace a 12F508 or 12F509 if the project is already made. A good idea to take advantage of this, is to replace a 12F509 with a 16F505 and use a 20Mhz Xtal. In that way, you can break the 4Mhz barrier of the 12F50X.


An important feature of the 16F505 is the register file Map. It is fully compatible with the 12F509. With four banks, the 16F505 can address more memory. Microchip also shows a sample how to clear ram using indirect addressing.


As all microchip PICs, the INF register is not a physical register. Addressing INDF actually addresses the register whose address is contained in the FSR register. Remember: FSR is a pointer.


Please note, the 12F508 doesn't have banks and cannot use the bits 7 to 5. The 12F509 uses only two banks, bits 7 & 6 are not used. The 16F505 uses four banks and only the bit 7 is not used.


The 16F505 have a 5-bit configuration word. Here are the details:
  • bit 11 to 6 - None. reads '0'.
  • bit 5 - MCLRE: '1' means Reset pin is used as MCRL. '0' means Reset pin is input.
  • bit 4 - CP: '1' code protection is on. '0' no code protection.
  • bit 3 - WDTE: '1' when the Watch dog is enabled.
  • bit 2 to 0 - FOSC: defines oscillator type.


    Usually, I use only a few microcontroller for my projects, but this PIC is perfect to low-cost applications. It does have enough I/O pins to drive a HITACHI LCDs and keypads. It will not replace the 8-pin PICs but surely solves the limitation of the useful 12F508.


    source: www.microchip.com


     < One Second Timebase.Homepage
    circuits Index
    My PIC Programmer> 


    If any information, data, picture or design infringes a copyrighted material, please send me an e-mail asking to remove it along with the supporting data.
    Some features may not work with Google Chrome. © 2006-2010 Jose Pino - Powered by JPC Alpha