S1 and S4 Settings

1) What is the procedure for programming 18-pin PIC MCU on the Rev. 1 PIC Trainer?

First, it is suggested that the computer be set up to provide a tone when a USB device is connected or removed. This will provide an audible indication that the USB device has been recognized when connected or removed. On a PC running Windows XP, this is accomplished from the Control Panel>Sounds and Audio Devices. It may be, and likely is, different for other computer operating systems or versions of Windows.
When starting the PICkit2 application with the USB cable connected and power applied, the 12 Vdc supply on the board may decrease to about 10 Vdc and not recover.
Attempting to erase, blank check, or write to the PIC MCU may cause the computer USB connection to lock up, requiring a reboot. This can generally be avoided by following the following steps.
This procedure assumes that an 18-pin PIC is mounted in the ZIF socket, the oscillator is connected (or internal oscillator is being used), and the switches are set as follows:

  1. S1-1 through S1-5 OFF.
  2. S1-6 through S1-10 ON.
  3. S4-1 and S4-2 ON.
  4. The USB cable should be connected to the computer, but NOT to the trainer board.

Continuing On:
  1. Apply power to the trainer board.
  2. Set switch S4-1 to OFF.
  3. Connect USB connector to trainer board.
    1. Listen for tone (indicates computer recognized USB device)
  4. Press and hold S2 (RESET_18P).
  5. Start the PICkit2 application.
  6. Release S2 when PICkit2 finishes opening.
  7. Check that PICkit2 recognized the PIC MCU installed in the ZIF socket.
  8. Check the +12 Vdc supply on the trainer board.
    1. This can be checked at IC3 (LM7818). Connect a voltmeter between ground and the LM7812 pin closest to the bridge rectifier, B1. 1) A ground may be found on pins 3 or 4 of connector X27 or use the parallel connector mounts.
    2. If the supply is approximately 10 Vdc, disconnect power from the trainer board, listen for the tone indicating loss of USB connection, reapply power, and listen for the tone indication connection of USB.
    3. Check the 12 Vdc supply.
  9. Select Read.
    1. If all 3FFF, the PIC MCU erased on startup of the PICkit2 application.
    2. If not, the PIC MCU can now be erased.
  10. Import the required hex file into the PICkit2 application.
  11. Select Write.
    1. If programming not successful, start over. If programming continues to fail, try another PIC MCU.
  12. Test the function of the programmed PIC MCU.
  13. Disconnect USB cable from trainer board and verify disconnection tone produced.
    1. This verifies that the computer USB port is still functioning.
  14. Disconnect power from the trainer board.

Back to Top

2) This procedure assumes that the computer is set up to provide a tone when a USB device is connected or removed.
While the 12 Vdc power supply problem experienced with the 18-pin PIC MCUs has not been a problem with 40-pin devices, testing has been limited to only a few PIC MCU numbers in the 28-pin and 40-pin families. Therefore, it is suggested that the 12 Vdc power supply be tested for the specific PIC MCU being used until local data suggests it is unnecessary.
The below procedures assume a 40-pin PIC MCU is mounted in the ZIF socket and that the oscillator is connected (or internal oscillator is being used), but these procedures also apply to the 28-pin PIC MCUs. Further, it is assumed the switches are set as follows:

  1. S1-1 through S1-5 ON.
  2. S1-6 through S1-10 OFF.
  3. S4-1 and S4-2 ON.
  4. USB cable connected to computer, but NOT to the trainer board.
  5. Proceeding on:

  6. Apply power to the trainer board.
  7. Set switch S4-2 OFF.
  8. Disconnect oscillator from connector SV4 or X15 (if being used).
  9. Connect USB connector to trainer board.
  10. Press and hold S3 (RESET_28/40P).
  11. Start the PICkit2 application.
  12. Release S3 when PICkit2 finishes opening.
  13. Check that PICkit2 recognized the PIC MCU installed in the ZIF socket.
  14. Check the +12 Vdc supply on the trainer board. (see above notes)
    1. This can be checked at IC3 (LM7818). Connect a voltmeter between ground and the LM7812 pin closest to the bridge rectifier, B1.
      1. 1) A ground may be found on pins 3 or 4 of connector X27 or use the parallel connector mounts.
    2. If the supply is approximately 10 Vdc, disconnect power from the trainer board, listen for the tone indicating loss of USB connection, reapply power, and listen for the tone indication connection of USB.
    3. Check the 12 Vdc supply.
  15. If the supply is not restored to 12 Vdc, or if there was no tone indicating disconnect or reconnect, the USB port on the computer may be locked up. Reboot and start over.
    If continual failures are experienced, the board may be defective.
    If Step 13 restores 12 Vdc and the USB connection is still working, continue.

  16. Select Read.
    1. If all 3FFF, the PIC MCU erased on startup of the PICkit2 application.
    2. If not, the PIC MCU can now be erased.
  17. Import the required hex file into the PICkit2 application.
  18. Select Write.
    1. If programming not successful, start over. If programming continues to fail, try another PIC MCU.
  19. Test the function of the programmed PIC MCU.
  20. Disconnect USB cable from trainer board and verify disconnection tone produced.
    1. This verifies that the computer USB port is still functioning.
  21. Disconnect Power from the trainer board
Back to Top