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
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:
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.
|< One Second Timebase.||Homepage
|My PIC Programmer>|