first program 12f683


Closed Thread
Results 1 to 16 of 16

Hybrid View

  1. #1
    Join Date
    Jan 2014
    Posts
    84


    Did you find this post helpful? Yes | No

    Default Re: first program 12f683

    i solved... the problem was from CONFIG . MCLRE must be off and measured pulse is in 10us.

    #CONFIG
    __config _INTRC_OSC_NOCLKOUT & _WDT_OFF & _MCLRE_OFF & _CP_OFF
    #ENDCONFIG

    ansel = 0
    wpu = 0
    cmcon0 = 7
    signal var word

    main:

    pulsin gpio.3,1,signal
    if signal > 160 then high gpio.0


    goto main
    end

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default Re: first program 12f683

    Hi,

    you also must add in your program the condition for the led to be off ...

    as outputs are bistable kind ... they will stay on the last programmed state, otherwise stated ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3
    Join Date
    Jan 2014
    Posts
    84


    Did you find this post helpful? Yes | No

    Default Re: first program 12f683

    Thx Alain! I try to learn about microcontrolers and any info are welcome.

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