Should ALLDIGITAL.PBP work for 18F4550??
Quote:
Originally Posted by
Darrel Taylor
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??
ALLDIGITAL.pbp works OK with 18F4550
Quote:
Originally Posted by
Darrel Taylor
??????
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.
Re: ALLDIGITAL.pbp works OK with 18F4550
Sorry but how can you do ALL_DIGITAL = TRUE on PicBasic PRO?
CMCON=7? is it correct?
Re: ALLDIGITAL.pbp works OK with 18F4550
Quote:
Originally Posted by
ietcyberwolf
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.
Re: ALLDIGITAL.pbp works OK with 18F4550
Quote:
Originally Posted by
ietcyberwolf
Sorry but how can you do ALL_DIGITAL = TRUE on PicBasic PRO?
CMCON=7? is it correct?
Read carefully POST #1.