Results 1 to 7 of 7

Thread: Ajutor PIC 16F84A

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Standard RSP member cipryDXfeed's Avatar
    Join Date
    17 Nov 2008
    Location
    ALBA
    Posts
    1,838
    Mentioned
    1 Post(s)
    Rep Power
    78

    Default Ajutor PIC 16F84A

    A reusit cineva sa programeze acest pic? si cu ce program?

    Nu pot incarca un programel in el. Am incercat cu icproc , winpic

    la winpic imi zice asa :

    nfo: Loading definitions for "PIC16F84A" from C:\Program Files\WinPic\devices.ini .
    Info: PIC16F84A added and tested by FENG3
    Couldn't find "devices\PIC16F84A.dev", please borrow/copy from MPLAB ! nu inteleg aici de unde si ce trebuie copiat.
    Initialising PIC-Programmer: Success.
    Testing: delay(500ms) took 0.50 seconds, timer_freq=2000.0500 MHz ... ok

  2. #2
    none
    Join Date
    01 Jan 1999
    Location
    acasa
    Posts
    850
    Mentioned
    42 Post(s)
    Rep Power
    100

    Default

    in device.ini ar trebuii sa ai :

    [PIC16F84A]
    info1= PIC16F84A added and tested by FENG3
    DeviceName=PIC16F84A
    DeviceInfoFileName=PIC16F84A.dev
    CodeMemType=1
    CodeMemSize=1024
    DataEEPROMSize=64
    InternalRAMSize=64
    AddrConfigMem=0x2000
    AddrConfigWord=0x2007
    AddrDataMem=0x2100
    AddrOscCalib=0xFFFFFFFF
    ConfigMemUsedLocs00_1F=0x00CF
    ConfigMemUsedLocs20_3F=0x0000
    DeviceIdAddr=0x2006
    DeviceIdMask=0x3FE0
    DeviceIdValue=0x0560
    CanRead=1
    EraseAlgo=16Fxx
    CodeProgAlgo=16Fxx
    ConfigProgAlgo=CONFIG_MEM_16xxx
    DataProgAlgo=DATA_EEPROM_16xxx
    VppVddSequence=unknown
    Ti_Clock_us=5
    Ti_Prog_us=10000
    Ti_Erase_us=10000
    CmdLoadConfig=0
    CmdLoadProg=2
    CmdReadProg=4
    CmdIncrAddr=6
    CmdBeginProg=8
    CmdEndProg=14
    CmdLoadData=3
    CmdReadData=5
    CmdEraseProg=9
    CmdEraseData=11
    CmdEraseChip=-1
    CmdBeginProgNoErase=-1
    Cfgmask_unused=0x0000
    Cfgmask_unknown=0x0000
    Cfgmask_cpbits=0x3FF0
    Cfgmask_cpd=0x0000
    Cfgmask_pwrte=0x0008
    Cfgmask_inv_pwrte=0x0008
    Cfgmask_wdte=0x0004
    Cfgmask_oscillator=0x0003
    Cfgmask_osc_rc=0x0003
    Cfgmask_osc_hs=0x0002
    Cfgmask_osc_xt=0x0001
    Cfgmask_osc_lp=0x0000
    Cfgmask_osc_extclk=0x0000
    Cfgmask_osc_intrc_noclkout=0x0000
    Cfgmask_osc_intrc_clkout=0x0000
    Cfgmask_osc_extrc_noclkout=0x0000
    Cfgmask_lvp=0x0000
    Cfgmask_boden=0x0000
    Cfgmask_mclre=0x0000
    Cfgmask_ddebug=0x0000
    Cfgmask_wrcode=0x0000
    Cfgmask_bandgap=0x0000
    Cfgmask2_used_bits=0x0000
    si in folderul "devices" pui asta, dezarhivat:
    Attached Files Attached Files
    ^^^^
    bafta

  3. #3
    Standard RSP member cipryDXfeed's Avatar
    Join Date
    17 Nov 2008
    Location
    ALBA
    Posts
    1,838
    Mentioned
    1 Post(s)
    Rep Power
    78

    Default

    nu merge nici acuma la fel








  4. #4
    none
    Join Date
    01 Jan 1999
    Location
    acasa
    Posts
    850
    Mentioned
    42 Post(s)
    Rep Power
    100

    Default

    nu l-ai pus unde trebuie... dupa ce-l copii in .../Prog*/WinPic/devices/ ar trebuii sa-ti arate in log ceva de genul:




    ...vezi la "options" daca ai linkul spre devices bine:

    ^^^^
    bafta

  5. #5
    Standard RSP member cipryDXfeed's Avatar
    Join Date
    17 Nov 2008
    Location
    ALBA
    Posts
    1,838
    Mentioned
    1 Post(s)
    Rep Power
    78

    Default

    acuma asa imi apare




    dar tot nu pot incarca programul in el. imi da aceleasi erori cum sunt mai sus.

    ---------- Post added at 14:40 ---------- Previous post was at 14:32 ----------

    Cu icprog imi da urmatoarea eroare la final dupa ce se incarca


  6. #6
    Standard RSP member
    Join Date
    03 Feb 2007
    Posts
    36
    Mentioned
    0 Post(s)
    Rep Power
    70

    Default

    Ai mai folosit programatorul pana acum pe alte integrate ?
    Ce fel de programator ai, este cumva pe serial ? Daca da, se alimenteaza din portul serial sau separat ?

    Un programator pe care eu l-am folosit cu succes este unul pe portul paralel:
    http://www.oshonsoft.com/picprog.html

    Sugestii:

    Scade frecventa la care lucreaza programatorul, coboara sub 1MHz.

    Scurteaza cat de mult posibil firele care merg din programator la chip, eventual si pe cele care vin din portlul calculatorului in programator. Lungimea firelor trebuie sa fie aproximativ egala, nu mai mult de 10-15 cm.

    Monteaza intre fiecare linie de date si masa cate un condensator de 100pF. Sau mai bine cate 2 de 50pF la fiecare capat al liniei, unul la programator si unul langa PIC. Valorile de 50pF si 100pF nu sant critice, merge si +-20%.

    Verifica daca tensiune de programare este in limitele indicate de datasheet, parca undeva pe la 12 - 13V.

    Incearca si cu un alt PIC, poate ca cel pe care-l ai este defect.
    Last edited by Atlas; 08-04-13 at 19:49.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •