

I allafall.. Jag använder Velleman's programmerare VM111, och tillhörande program ProgPIC2. Detta har funkat utmärkt fram tills nu. Problemet är att jag vill kunna programmera PIC16F886 med den, och då borde man ju naturligtvis spana in config-filen till programmet för att få ett hum om hur man lägger till nya PICar.
Filen börjar såhär:
Kod: Markera allt
;
; PROGPIC2 - Device File
; ======================
;
;Algorythm:
;
; 1 = PICs, like the PIC16F84
;
; 2 = PICs, like the PIC16F87x
; (diff. to alg1: load config..., bulk erase, 2ms-Wait)
;
; 3 = EEPROM and OTP PICs, with "endprog", not tested
;
; 4 = PICs, like the PIC16F630
; (diff. to alg1: configword: save BG1:BG0 and OSCCAL before bulk erase, modify configword from file)
;
; 5 = PICs, like the PIC16F627A/628A/648A
; (diff. to alg1: bulk erase, disable codeprotection)
;
; 6 = 16F87xA
;
; 7 = 16F818/819
;
; 8 = 12C5xx
;
Filen fortsätter med en lista med config-bits, inga konstigheter där heller. Bara att kolla upp i databladet för önskad PIC man vill lägga till och komplettera listan.
Sedan kommer själva mikrokontroller-listan:
Kod: Markera allt
,Controller Config Code Data LVP Alg Dev.ID
;-----------------------------------------------------------------------------------------------------------------------------
PIC12F629 7 1024 128 N 4 Y
PIC12F675 7 1024 128 N 4 Y
;
PIC16CR83 5 512 64 - 1 -
PIC16F83 1 512 64 - 1 -
PIC16C84 4 1024 64 - 1 -
PIC16F84 1 1024 64 - 1 -
PIC16F84A 1 1024 64 - 1 -
PIC16CR84 5 1024 64 - 1 -
;
PIC16F870 2 2048 64 Y 2 Y
PIC16F871 2 2048 64 Y 2 Y
PIC16F872 2 2048 64 Y 2 Y
PIC16F873 2 4096 128 Y 2 Y
PIC16F874 2 4096 128 Y 2 Y
PIC16F876 2 8192 256 Y 2 Y
PIC16F877 2 8192 256 Y 2 Y
;
PIC16F873A 9 4096 128 Y 6 Y
PIC16F874A 9 4096 128 Y 6 Y
PIC16F876A 9 8192 256 Y 6 Y
PIC16F877A 9 8192 256 Y 6 Y
;
PIC16F627 3 1024 128 Y 2 Y
PIC16F628 3 2048 128 Y 2 Y
;
PIC16F627A 8 1024 128 Y 5 Y
PIC16F628A 8 2048 128 Y 5 Y
PIC16F648A 8 4096 256 Y 5 Y
;
PIC16F630 7 1024 128 N 4 Y
PIC16F676 7 1024 128 N 4 Y
;
PIC16F818 10 1024 128 Y 7 Y
PIC16F819 10 2048 256 Y 7 Y
;
;
;-----------------------------------------------------------------------------------------------------------------------------
Om vi nu tar PIC16F877 som exempel, så anges att den har "algorythm" 2,
alltså:
Kod: Markera allt
2 = PICs, like the PIC16F87x
; (diff. to alg1: load config..., bulk erase, 2ms-Wait)
Som i detta fallet, när jag vill lägga till en PIC16F886.. Det är ju inga problem med kodminne osv, och config-bitsen, bara att kolla upp i databladet. Men när det kommer till vilken "algorythm" den ska vara "assigned" till, ja då vettefan...
Hoppas att nån här kan lite mer om detta!
Tack å hej!