Microchip PIC16F8x
The Microchip PIC16F8x family features an 8-bit RISC (Reduced Instruction Set Computer) processor core that utilizes a modified Harvard architecture. This design separates program memory and data memory into distinct paths, allowing the CPU to access instructions and data simultaneously, thereby improving execution efficiency.
Supported devices
Refer to the supported device list for a full list of all supported PIC16F8x family devices, their corresponding names and connection diagrams.
Target interfaces
| Interface | J-Link support | Flasher support |
|---|---|---|
| ICSP |
Memory blocks
| Flash bank | Base address | J-Link support | Flasher support | Loader | |
|---|---|---|---|---|---|
| Name | Bank size | ||||
| User program | 0x0000 (0x0000)[1] | Default | up to 1024 Words | ||
| ID locations | 0x4000 (0x2000)[1] | Default | 4 Words | ||
| Config word | 0x400E (0x2007)[1] | Default | 1 Word | ||
| EEPROM | 0x4200 (0x2100)[1] | Default | 256 Byte | ||
¹ Base addresses are given as <byte oriented address> (<PIC16 oriented 14-bit word address>). For more information refer to the PIC16 memory scheme.
Device specific handling
Connect
Please ensure that a Vpp voltage of 12–14 V must be used. SEGGER recommends using the Programming Voltage Adapter. A pull-down resistor of approximately 1 kΩ is required on the Vpp line because the ProgVoltageAdapter uses an open-drain output.
Reset
The device is reset via MCLR pin which shares its functionality with Vpp.
Security
The device can be protected using the 'Config word'.
Limitations
- This device family supports only 'High voltage programming' (HVP).
- The application cannot be started automatically on HVP-only devices after programming. When the reset pin is held low, the device does not start. When the reset pin is connected to Vpp, the device enters programming mode and does not execute user code.
Troubleshooting
Device ID does not match
At the start of the programming process, the Flasher attempts to connect to the device and read its device ID. Each PIC device has a unique ID.
If a device ID error occurs, there may be several possible causes.
To obtain detailed information on the error, increase the "VerboseOutput" level in the U-Flash configuration to at least "INFO" and transfer the project to the Flasher again.
Device ID = 0000 or 3FFF
- There is a fault in the wiring
- The device is kept in reset by an external reset generator or watchdog
- The supply voltage is insufficient
Device ID is wrong
- The wrong device was selected in U-Flash
- There is another device on the board assembled
- The supply voltage is too low and/or the ICSP speed is too high