12f675_fuse_about_to_blow!


Closed Thread
Results 1 to 40 of 929

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    You are still some what south...

    MPLAB or MCS will work. So will a simple text editor. For writing code that is. I find myself using gEdit or EMACS more often than not.

    Once the code is written the compiler/assembler can then be ran.

    Do you remember *.bat files??
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    Do you remember *.bat files??
    Yes, Batch files, small text file program commands... cmd.exe.

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Here is the guts of a BAT
    Code:
    cd
    cd C:\MAC\PIC_PROGS\PPPBP\test_prog\
    PBPL -e -ampasmwin -p18F4550 test.bas
    cd\
    It is just the command line stuff that the manual talks about. It is really nice having the command line option for PBP.
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    Hi mackrackit,

    I had a read of the manual dinner time today (right at the beginning).

    So what we're saying here is that you can use most text editors to write the code and then 'invoke' the compiler to then create the HEX file and away you go.

    Dave

  5. #5
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Yes.

    I do like text editors with syntax highlighting but even windows notepad will work. If I remember correctly that is what Melanie uses, just plain 'ol notepad.
    Dave
    Always wear safety glasses while programming.

  6. #6
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    If I remember correctly that is what Melanie uses, just plain 'ol notepad.
    Goes to show then...........

    Dave

    Ah, almost forgot, the Badger re-appeared last night I'm very pleased to say.

  7. #7
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    Below is a part of a simple little program I've been experimenting with to generate a 'random' pause but of known maximum and minimum time period(average maximum wait about 12secs for the LED to flash as the program stands).

    The pause occurs randomly but because there are a maximum of 65535 'lenghts' if you will of a given time (be it clock cycles etc (I'm not sure how RANDOM works) it should be possible to my mind to work out how long the longest and shortest pause times will be when they occur (1 or 65535 lenghts) I think.

    So my question is this: How long does it take the PIC processor to calculate 1 lenght? At the moment the maximum and minimum pause times occur at 12secs max 1sec min.

    I hope this makes sense

    Code:
    X VAR WORD
    
    main:
    RANDOM x
    
    PAUSE X /4
    
    HIGH PORTA.2 
    PAUSE 1000
    low PORTA.2
    GOTO MAIN:
    Dave
    Last edited by LEDave; - 8th July 2010 at 00:22.

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