Size: 108
Comment:
|
Size: 1352
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 5: | Line 5: |
Connector pickit2 to USB and use the command * pk2cmd -PPIC16F689 to check if the uC is on the pickit2 board dmesg output after connecting pickit2 in Slackware 14 {{{ [ 4575.020360] usb 1-1.2: new full-speed USB device number 8 using ehci_hcd [ 4575.108973] usb 1-1.2: New USB device found, idVendor=04d8, idProduct=0033 [ 4575.108991] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 4575.109004] usb 1-1.2: Product: PICkit 2 Microcontroller Programmer [ 4575.109047] usb 1-1.2: Manufacturer: Microchip Technology Inc. [ 4575.109061] usb 1-1.2: SerialNumber: Ð }}} == SDCC compiler == * http://sdcc.sourceforge.net/ * http://sdcc.sourceforge.net/mediawiki/index.php/SDCC_tutorial * https://github.com/diegoherranz/sdcc-examples == Debian install == {{{#!highlight bash sudo apt install sdcc cd ~ git clone https://github.com/psmay/pk2cmd.git cd pk2cmd/ cd pk2cmd/ sudo apt install libusb-dev make clean make linux sudo make install sudo cp PK2DeviceFile.dat /usr/local/bin/ pk2cmd -PPIC16F689 pk2cmd }}} == Headers for pic16f689 and pic16f690 == * /usr/local/share/sdcc/non-free/include/pic14/pic16f689.h * /usr/local/share/sdcc/non-free/include/pic14/pic16f690.h |
pickit
Programmer for Microchip microcontrollers.
Link for pk2cmd https://github.com/psmay/pk2cmd
Connector pickit2 to USB and use the command
- pk2cmd -PPIC16F689
to check if the uC is on the pickit2 board
dmesg output after connecting pickit2 in Slackware 14
[ 4575.020360] usb 1-1.2: new full-speed USB device number 8 using ehci_hcd [ 4575.108973] usb 1-1.2: New USB device found, idVendor=04d8, idProduct=0033 [ 4575.108991] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 4575.109004] usb 1-1.2: Product: PICkit 2 Microcontroller Programmer [ 4575.109047] usb 1-1.2: Manufacturer: Microchip Technology Inc. [ 4575.109061] usb 1-1.2: SerialNumber: Ð
SDCC compiler
Debian install
Headers for pic16f689 and pic16f690
- /usr/local/share/sdcc/non-free/include/pic14/pic16f689.h
- /usr/local/share/sdcc/non-free/include/pic14/pic16f690.h