A header wizard


Closed Thread
Results 1 to 40 of 230

Thread: A header wizard

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default

    I am struggling with Interrupt on Change this afternoon and cannot figure whats wrong ...

    Now this would be the ultimate wizard.

    Prepare the settings for the DT-INTs too!

    Ioannis

  2. #2
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Ioannis View Post

    Prepare the settings for the DT-INTs too!

    Ioannis
    This would be a great addition, provided DT is good with it.
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Ioannis View Post
    Now this would be the ultimate wizard.
    Prepare the settings for the DT-INTs too!
    Quote Originally Posted by cncmachineguy View Post
    This would be a great addition, provided DT is good with it.
    Absolutely, sounds like a great idea!
    Go for it.
    DT

  4. #4
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    Absolutely, sounds like a great idea!
    Go for it.
    Great - Thanks Darrel!

    @ Paul, this is direct from the 16f1947 datasheet:

    When configuring and using the ADC the following
    functions must be considered:
    • Port configuration
    • Channel selection
    • ADC voltage reference selection
    • ADC conversion clock source
    • Interrupt control
    • Result formatting


    Maybe that helps to get the stuff I forgot? As an FYI there are 17 available channels for this device. Not counting the temp sense, DAC, and FVR. for a total of 20. (last 3 are internal)

    Maybe also assign a variable to start conversion?
    Last edited by cncmachineguy; - 15th September 2010 at 21:21.
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

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


    Did you find this post helpful? Yes | No

    Default

    How do you get mpasm (or do you) on to linux? Are you using WINE?
    WINE yes. See the site in my signature. I did not wiki it because I did not know if there would be much interest.

    Paul,
    Here is a sample or three for headers with ADC
    Code:
    '16F88 ADC TEST  FORCHANNEL 0
        DEFINE OSC 4           
        OSCCON = %01100000
        @ __config _CONFIG1, _INTRC_IO & _WDT_OFF & _LVP_OFF & _MCLR_OFF &_CP_OFF
        ANSEL = %00001111
        TRISA = %11111111
    Code:
    '16F676 ADC ON PICKIT_1   
      DEFINE OSC 4
      @ __config _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_OFF & _CP_OFF     
      ANSEL = %00000001 'CHANNEL AN0  
      ADCON1 = %00010000 'FOSC/8 
      TRISA = %00000001 
      CMCON = %00000111
    Code:
     '18F4320      ADC_FTP iChip
        @ __CONFIG    _CONFIG1H, _HSPLL_OSC_1H
        @ __CONFIG    _CONFIG2H, _WDT_OFF_2H & _WDTPS_512_2H
        @ __CONFIG    _CONFIG4L, _LVP_OFF_4L
        DEFINE OSC 16
        INTCON.5 = 1    
        T0CON = %10000101 
        ON INTERRUPT GOTO TLOOP
        ADCON1 = %00001110
    Thanks Darrel!!!
    Dave
    Always wear safety glasses while programming.

  6. #6
    Join Date
    Feb 2010
    Location
    USA, New England
    Posts
    164


    Did you find this post helpful? Yes | No

    Default

    Thank you Dave (and Bert). I might take tonight off however...

    Darrel T: Can I include your "All Digital" as well?

    No promises on the DT Instant Interrupts configurator. Guess I'm the last PBP guy who hasn't used it! I'll add it to the list.

    Best Regards,
    Paul

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


    Did you find this post helpful? Yes | No

    Default

    I might take tonight off however...
    You can not... You are the only one working
    Dave
    Always wear safety glasses while programming.

  8. #8
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by prstein View Post
    Darrel T: Can I include your "All Digital" as well?
    There's really nothing to configure with AllDigital.pbp
    It's either included or not.

    I guess you could add a single checkbox.

    Added: And maybe another checkbox for DEFINE SHOWDIGITAL 1

     
    Last edited by Darrel Taylor; - 16th September 2010 at 01:37. Reason: added
    DT

  9. #9
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by prstein View Post
    Guess I'm the last PBP guy who hasn't used it!

    Best Regards,
    Paul
    HAHA, don't feel like the lone ranger. All I've done is read all about them.
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

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