MoinMoin Logo
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Navigation

  • Start
  • Sitemap

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment

Revision 12 as of 2022-10-12 20:32:56
  • pickit

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

  • http://sdcc.sourceforge.net/

  • http://sdcc.sourceforge.net/mediawiki/index.php/SDCC_tutorial

  • https://github.com/diegoherranz/sdcc-examples

Debian install

   1 sudo apt install sdcc
   2 cd ~
   3 git clone https://github.com/psmay/pk2cmd.git 
   4 cd pk2cmd/
   5 cd pk2cmd/
   6 sudo apt install libusb-dev  
   7 make clean
   8 make linux
   9 sudo make install 
  10 sudo cp PK2DeviceFile.dat /usr/local/bin/
  11 pk2cmd -PPIC16F689  
  12 pk2cmd 
  13 pk2cmd -PPIC16F689  /T # power on
  14 pk2cmd -PPIC16F689 # power off
  15 
  16 cd /tmp
  17 wget https://deac-fra.dl.sourceforge.net/project/sdcc/sdcc/4.2.0/sdcc-src-4.2.0.tar.bz2
  18 tar xvif sdcc-src-4.2.0.tar.bz2
  19 cd sdcc-src-4.2.0
  20 ./configure 
  21 sudo apt install libnl-3-200=3.4.0-1+b1
  22 sudo apt install libboost-filesystem1.74.0=1.74.0-9
  23 sudo apt install libboost-iostreams1.74.0=1.74.0-9 
  24 sudo apt install libboost-locale1.74.0=1.74.0-9
  25 sudo apt install libboost-thread1.74.0=1.74.0-9
  26 sudo apt install libevent-2.1-7=2.1.12-stable-1
  27 sudo apt install libltdl7=2.4.6-15
  28 sudo apt install libnuma1=2.0.12-1+b1
  29 sudo apt install zlib1g=1:1.2.11.dfsg-2+deb11u2
  30 sudo apt install python3-minimal=3.9.2-3
  31 sudo apt install libpython3-stdlib=3.9.2-3
  32 sudo apt install python3=3.9.2-3
  33 sudo apt install libexpat1=2.2.10-2+deb11u3
  34 sudo apt install libboost-all-dev 

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
  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01