[SOLVED !] 16f627 comparator multiplex


Closed Thread
Results 1 to 9 of 9

Thread: 16f627 comparator multiplex3032 days old

  1. #1
    oloffsmyth
    Guest oloffsmyth's Avatar

    0 Not allowed!

    Default 16f627 comparator multiplex

    Can anyone see what I am doing wrong in the code below (for 16F627)? The multiplexing between RA1 and RA3 does not seem to be working. Stays on RA1.
    Thanks
    Oloff Smyth

    TEST:
    TRISA=%00101111
    CMCON=%00000001
    CMCON.3=1 ;CIS=1
    DelayMS 100
    If
    CMCON.6=0 Then High SCELLED : Inc N : Else : N=0 : Low SCELLED
    TRISA=%00101111
    CMCON=%00000001
    CMCON.3=0 ; CIS=0
    DelayMS 100
    If
    CMCON.6=1 Then High OCELLED : Inc M : Else : M=0 : Low OCELLED
    If N=10 Then GoTo FAULT
    If M=10 Then GoTo FAULT
    Return

  2. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  3. #2
    oloffsmyth
    Guest oloffsmyth's Avatar

    0 Not allowed!

    Default Re: 16f627 comparator multiplex

    Appologies, the multiplexing is between RA0 and RA3.

  4. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  5. #3
    Kapitan
    Guest Kapitan's Avatar

    0 Not allowed!

    Default Re: 16f627 comparator multiplex

    Maybe get licensed user status as a first step ???

  6. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  7. #4
    oloffsmyth
    Guest oloffsmyth's Avatar

    0 Not allowed!

    Default Re: 16f627 comparator multiplex

    Thanks Captain smart----, I have a fully paid for copy and have twice tried to follow the registration process which says -'just fill in your details and you will be registered automatically' ?

  8. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  9. #5
    grahamg
    Guest grahamg's Avatar

    0 Not allowed!

    Default Re: 16f627 comparator multiplex

    Oloff, looking at the data sheet cm2:cm0 = 001 states that "this mode is dysfunctional and has been corrected in the 'A' revision devices. Could this be relevant in your case?

  10. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  11. #6
    Kapitan
    Guest Kapitan's Avatar

    0 Not allowed!

    Default Re: 16f627 comparator multiplex

    Quote Originally Posted by oloffsmyth View Post
    Thanks Captain smart----, I have a fully paid for copy and have twice tried to follow the registration process which says -'just fill in your details and you will be registered automatically' ?
    Hey, - just trying to help you dude... 2 years ??? 2 tries... ???

    Maybe, just maybe, try again....... or report your perceived difficulty.... ?

    If you cannot be bothered to update your status, hence having access to later versions etc, then no worries..
    Possibly, if it is not TOO much trouble, try an email to Crownhill, well err, it IS 2 years more or less.. or maybe that is too difficult.

    Sarcasm works both ways

  12. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  13. #7
    oloffsmyth
    Guest oloffsmyth's Avatar

    0 Not allowed!

    Default Re: 16f627 comparator multiplex

    Yes ok, sorry about that. I have only posted two threads since I joined and have not been looking at statuses and such like.
    On the positive side grahamg's suggestion was 100% correct - problem solved many thanks.

  14. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  15. #8
    Kapitan
    Guest Kapitan's Avatar

    0 Not allowed!

    Default Re: 16f627 comparator multiplex

    Quote Originally Posted by oloffsmyth View Post
    Yes ok, sorry about that. I have only posted two threads since I joined and have not been looking at statuses and such like.
    On the positive side grahamg's suggestion was 100% correct - problem solved many thanks.
    Nice one Oloff
    Glad you got sorted, but seriously, please try and update your status as you get full acess to all the latest betas and RC code, and there have been a LOT of changes.

    Best of luck Sir.

    If you have problems, please contact the Moderators or Crownhill direct. I am sure they will sort it asap.
    Joe.

  16. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  17. #9
    Prolific Poster John Drew's Avatar
    Join Date
    Feb 2002
    Posts
    2,954
    Thumbs Up
    Received: 94
    Given: 34
    Total Downloaded
    5.08 GB

    0 Not allowed!

    Default Re: 16f627 comparator multiplex

    Welcome aboard Oloff
    I see you are into alternative power.
    Australia is fairly new into wind power but it's growing at a great rate. We have 127 windmills about 15km away on the coast. Expecting another 100 in the next year or two.
    The southern coast of Australia is one of the windiest in the world.
    Glad the licensed status came through.
    Kind regards
    John

  18. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. 16F627 - How do I enable pull-ups on PORTB?
    By davroski in forum Proton Plus Compiler v3
    Replies: 2
    Last Post: 23rd September 2017, 01:02
  2. [SOLVED !] Have you actually used the comparator modeule ? and what did you use it for ?
    By Kapitan in forum Analog Comparator Modules
    Replies: 3
    Last Post: 10th January 2011, 23:48
  3. How to use Comparator in PIC16F630
    By jose fausto in forum Mecanique - IDE
    Replies: 3
    Last Post: 10th September 2009, 16:04
  4. [SOLVED !] timing portA 16F627 vs 16F627A
    By Yoepieyoep in forum Proton Plus Compiler v3
    Replies: 6
    Last Post: 1st April 2009, 16:06
  5. comparator help
    By richardy in forum Proton Plus Compiler v3
    Replies: 1
    Last Post: 6th September 2006, 08:02

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts