All Digital


+ Reply to Thread
Results 1 to 40 of 40

Thread: All Digital

Hybrid View

  1. #1
    Join Date
    Mar 2009
    Location
    Colorado
    Posts
    378


    Did you find this post helpful? Yes | No

    Question Should ALLDIGITAL.PBP work for 18F4550??

    Quote Originally Posted by Darrel Taylor View Post
    .

    ALLDIGITAL.pbp has been updated to version 1.3
    http://www.picbasic.co.uk/forum/atta...achmentid=3380
    See post#1 for instructions and version history.
    Darrell,
    I have been having some problems in my coding of an application for the 18F4550 and suspected I was missing something in setting the ops to pure digital. Attempted to use your ALLDIGITAL.pbp as an INCLUDE and it appeared normal, but at time of compile/assembly I did NOT see any listing in the Assembly window when I decommented the DEFINE statement. That made me wonder if ALLDIGITAL.pbp was even compatible with the 18F4550. Is it, or if not can you advise me how to modify it to include??

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


    Did you find this post helpful? Yes | No

    Default

    ADCON1 = 15
    Sets all to digital.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Mar 2009
    Location
    Colorado
    Posts
    378


    Did you find this post helpful? Yes | No

    Default Thanks!

    Quote Originally Posted by mackrackit View Post
    ADCON1 = 15
    Sets all to digital.
    Thanks, Dave. Would like to know how to make this modification in DT's ALLDIGITAL.pbp for use as an INCLUDE, but at least your info got me going with using the ADCON1 statement in the code. Appreciate your input.

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by jellis00 View Post
    ... Would like to know how to make this modification in DT's ALLDIGITAL.pbp for use as an INCLUDE
    ??????

    It is an Include, and no modifications are required.
    Or maybe there's more to the question.
    <br>
    DT

  5. #5
    Join Date
    Mar 2009
    Location
    Colorado
    Posts
    378


    Did you find this post helpful? Yes | No

    Default ALLDIGITAL.pbp works OK with 18F4550

    Quote Originally Posted by Darrel Taylor View Post
    ??????

    It is an Include, and no modifications are required.
    Or maybe there's more to the question.
    <br>
    Ignore my previous, Darrell. What I was saying is I wanted to modify the code in ALLDIGITAL.pbp so it would work with the 18F4550. I didn't think it was working because I wasn't getting any messages in the Assembly window when I uncommented the DEFINE statement that lists the configs made by ALLDIGITAL.pbp. Turns out I had mispelled DIGITAL in the statement as the reason it wasn't listing the messages. Once I fixed that I discovered that ALLDIGITAL.pbp version 1.3 does already work with the 18F4550. Sorry for the confusion.

  6. #6
    Join Date
    Apr 2011
    Location
    León
    Posts
    5


    Did you find this post helpful? Yes | No

    Question Re: ALLDIGITAL.pbp works OK with 18F4550

    Sorry but how can you do ALL_DIGITAL = TRUE on PicBasic PRO?

    CMCON=7? is it correct?

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


    Did you find this post helpful? Yes | No

    Default Re: ALLDIGITAL.pbp works OK with 18F4550

    Quote Originally Posted by ietcyberwolf View Post
    Sorry but how can you do ALL_DIGITAL = TRUE on PicBasic PRO?

    CMCON=7? is it correct?
    CMCON = 7 is comparators off for many of the pics, not for all, each pic family (read that family members all share a common data sheet) may have very different settings in order to enable digital ports. For you, For Now, go back to the very first post in this thread and get the all digital zip file, unzip it into your pbp directory and include it as Darrel instructed you to do. In his file he has taken the time to read and understand a variety of PIC families and built in enough code to select the appropriate settings. My recommendation to everyone is read those data sheets and struggle with them and ask questions until they begin to make sense. They will begin to make sense. You can find all registers your chip uses in the mpasm suite directory in files with the suffix .inc this chip will be P16F4550.inc . To set ports digital often requires setting several registers like ANSEL, ADCON, CM0CON . . . the data sheet explains what each register does and what each bit controls.
    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.

  8. #8
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: ALLDIGITAL.pbp works OK with 18F4550

    Quote Originally Posted by ietcyberwolf View Post
    Sorry but how can you do ALL_DIGITAL = TRUE on PicBasic PRO?

    CMCON=7? is it correct?
    Read carefully POST #1.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. Replies: 5
    Last Post: - 16th October 2009, 18:29
  2. Digital Out on an A/D pin safe ?
    By mr.sneezy in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 21st January 2009, 22:48
  3. Replies: 4
    Last Post: - 24th January 2007, 22:20
  4. A/D versus Digital I/O
    By dallennn in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 11th November 2006, 04:31
  5. Digital IC Tester
    By precision in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 18th September 2006, 03:38

Members who have read this thread : 1

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