All Digital


+ Reply to Thread
Results 1 to 40 of 40

Thread: All Digital

Hybrid View

  1. #1
    Balachandar's Avatar
    Balachandar Guest


    Did you find this post helpful? Yes | No

    Default All Digital

    Thanks a lot, Darrel.

    This is another great contribution from your side that increases the value of PBP and also reduces the possibility of the code not working as expected.

    Bala

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


    Did you find this post helpful? Yes | No

    Default

    While attempting to use my first 16F723, I found that they have ANSELA and ANSELB instead of ANSEL and ANSELH.
    Only the 16F72x series has them.

    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.
    DT

  3. #3
    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??

  4. #4
    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.

  5. #5
    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.

  6. #6
    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

  7. #7
    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.

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