Testing PIC16F628A with one LED - Which PCB and fuses?


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    May 2008
    Posts
    2

    Default Testing PIC16F628A with one LED - Which PCB and fuses?

    Hi!

    For my 16F628A PIC, I made a simple circuit based on:
    http://walter.schreppers.com/files/f..._schematic.gif
    But I get no life signs.

    I wonder what is the most common Config for Fuses.
    My fuses are set with no external clock or MCLR, and I've tried WDT On or Off. My current is USB power (~ 4.7V).
    This is exactly the same power that I use to write and read EEPROM 24Cxx I2C.
    I've tried a lot of capacitors (From 1n to 100n) near of the PIC chip.
    When I program the PIC with a JDM-kind programmer, all is ok and acknowledges everything,
    but when I put it on a solderless board, I can't find any way to light the led, as if the PIC wasn't running at all.

    And nothing is working!
    Last edited by ley0; - 12th May 2008 at 17:43. Reason: No expressed correctly, thank

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    This is PicBasicPro, not Proton Basic...

  3. #3
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by ley0 View Post
    Hi!

    For my 16F628A PIC, I made a simple circuit based on:
    http://walter.schreppers.com/files/f..._schematic.gif
    But I get no life signs.

    I wonder what is the most common Config for Fuses.
    My fuses are set with no external clock or MCLR, and I've tried WDT On or Off. My current is USB power (~ 4.7V).
    This is exactly the same power that I use to write and read EEPROM 24Cxx I2C.
    I've tried a lot of capacitors (From 1n to 100n) near of the PIC chip.
    When I program the PIC with a JDM-kind programmer, all is ok and acknowledges everything,
    but when I put it on a solderless board, I can't find any way to light the led, as if the PIC wasn't running at all.

    And nothing is working!
    This should get you started, <br> http://www.picbasic.co.uk/forum/showthread.php?t=561
    http://www.picbasic.co.uk/forum/showthread.php?t=543
    http://www.picbasic.co.uk/forum/forumdisplay.php?f=16
    Last edited by Archangel; - 13th May 2008 at 01:42.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  4. #4
    Join Date
    May 2008
    Posts
    2


    Did you find this post helpful? Yes | No

    Red face

    Hi

    This is now ok, I was writing "$FF" for output in the TRISA instead of 0.
    But now I have broken a PIC16f628A. When I program it with the WinPic800 software, it says "Error: writing 0x(a size of data) reading 0x0000.....
    I've programmed another with the OPTION_REG, that I changed, re-set to 80 and it's ok.

    I'll have to understand how function these i/o, fuses and the internal clock.

    Thank!

  5. #5
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    For PM assembler use:
    Code:
    @ DEVICE pic16F628A, HS_OSC
    
    @ DEVICE pic16F628A, WDT_ON
    ' Watchdog Timer
    
    @ DEVICE pic16F628A, PWRT_ON
    ' Power-On Timer
    
    @ DEVICE pic16F628A, MCLR_OFF 
    ' Master Clear Options (Internal)
    
    @ DEVICE pic16F628A, BOD_OFF
    ' Brown-Out Detect
    
    @ DEVICE pic16F628A, LVP_OFF
    ' Low-Voltage Programming
    
    @ DEVICE pic16F628A, CPD_OFF
    ' Data Memory Code Protect
    ' Set to CPD_OFF for Development Copy
    ' Set to CPD_ON for Release Copy
    
    @ DEVICE pic16F628A, PROTECT_OFF
    ' Program Code Protection
    ' Set to PROTECT_OFF for Development Copy
    ' Set to PROTECT_ON for Release Copy
    For MPASM Assembler Use:
    Code:
    @ __config  _HS_OSC & _WDT_OFF & _PWRTE_ON & _LVP_OFF  & _BODEN_OFF
    XT_OSC for slow "4MHZ", HS_OSC for faster if using xtals or resonators.
    '
    I never could get WIN800 to work with my JDM clone, I use ICPROG and it works lovely, It's free too.
    Last edited by Archangel; - 13th May 2008 at 01:57.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  6. #6
    Ted's's Avatar
    Ted's Guest


    Did you find this post helpful? Yes | No

    Default

    I was using exactly your pic long ago. Try

    Code:
    @ DEVICE MCLR_OFF
    @ DEVICE hs_osc
    @ DEVICE wdt_off
    @ DEVICE lvp_off
    @ DEVICE protect_off

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

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