Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
project:amiga_ps2usb_mouse:amiga_usb_ps2_mouse [2021/08/19 18:10] cyberian created |
project:amiga_ps2usb_mouse:amiga_usb_ps2_mouse [2021/08/27 16:22] cyberian References |
||
---|---|---|---|
Line 9: | Line 9: | ||
Well, Introduction part will be added later :) | Well, Introduction part will be added later :) | ||
- | ===== PICkit c3.5 - programming kit ===== | + | ===== PICkit v3.5 - programming kit ===== |
- | Circuit for programmins is following | + | For programming of chip connect PICkit with PIC16F628A as it is in following table. Pay attention to resistor 22K between VDD and VPP. |
- | + | ||
- | Pinout PICkit vs pinout PIC 16F628A | + | |
|**1** VPP | **4** VPP (MCLR) | | |**1** VPP | **4** VPP (MCLR) | | ||
|**2** VDD | **14** VDD | | |**2** VDD | **14** VDD | | ||
Line 19: | Line 17: | ||
|**5** PGC (ICSPCLK)| **12** PGC (RB6) | | |**5** PGC (ICSPCLK)| **12** PGC (RB6) | | ||
|**6** not con. | not connected | | |**6** not con. | not connected | | ||
+ | {{ :project:amiga_ps2usb_mouse:pickit_pic16f628a_y918.jpg?direct&400 |}} | ||
+ | |||
+ | I used for programming SW: MPLAB X IDE v5.50. In setup choose MPLAB IPE as this part of SW is intended as standalone simple application for programming. | ||
+ | There can be some issues. For example I used previously some programming adapter connected to PICkit. Jumpers were set correctly, but PIC MCU had higher temp and I got error: Target Device ID (0x3fe0) is an Invalid Device ID. Please check your connections to the Target Device. After several hours of suffering and finding the cause of the problems, I gave up on the adapter and connected the MCU to the breadboard. | ||
+ | |||
+ | The right log from programming is following: | ||
+ | <code> | ||
+ | Verifying... | ||
+ | |||
+ | The following memory areas(s) will be verified: | ||
+ | program memory: start address = 0x0, end address = 0x7ff | ||
+ | configuration memory | ||
+ | EEData memory | ||
+ | User Id Memory | ||
+ | |||
+ | Verification successful. | ||
+ | Loading code from D:\...\ps2m_aminet\ps2m\pic\ps2m_5button.hex... | ||
+ | 2021-08-19 17:50:36 +0200 - Hex file loaded successfully. | ||
+ | 2021-08-19 17:50:41 +0200 - Programming... | ||
+ | |||
+ | |||
+ | Device Erased... | ||
+ | |||
+ | Programming... | ||
+ | |||
+ | The following memory area(s) will be programmed: | ||
+ | program memory: start address = 0x0, end address = 0x1f3 | ||
+ | Programming/Verify complete | ||
+ | 2021-08-19 17:50:47 +0200 - Programming complete | ||
+ | |||
+ | Blank Checking... | ||
+ | program memory | ||
+ | Address: 0 Expected Value: 3fff Received Value: 18b | ||
+ | Blank check complete, device is not blank. | ||
+ | </code> | ||
+ | |||
+ | Blank Checking was clicked additionally just for sure :) | ||
+ | |||
+ | ===== References ===== | ||
+ | Thx to Henryk Richter from http://bax.comlab.uni-rostock.de/en/hardware/ps2-amiga-maus/ | ||
+ |