first project, and yes, doesn`t work


Results 1 to 16 of 16

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by bogdan View Post
    ...but, right now i couldn't even make one stupid LED to blink by the external osc (i`m sure i missing something with the ext osc configuration)
    External Oscillator ? Are you using an external oscillator ? Or are you using a crystal and caps , or a 3 pin resonator ? I ask, because you mentioned the caps. . . and a crystal with caps / or 3 pin resonator will use a different setting in the config statement from an external oscillator.
    EDIT: OK I looked closer at your code and schematic, I think your config should be :
    Code:
    @ __config _LP_OSC & _WDT_OFF & _PWRTE_ON & _MCLRE_ON & _BOD_OFF & _IESO_OFF  & _FCMEN_OFF & _CP_OFF & _CPD_OFF
    The data sheet indicates to use LP_OSC for 32khz
    Shane: Osc set by oscon register
    Last edited by Archangel; - 27th April 2009 at 08:45.
    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.

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