HPWM Confusion in spec sheet


Results 1 to 5 of 5

Threaded View

  1. #3
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default

    Correct, you can only SAMPLE one analog port into ADRES (the result register) at a time, but you can SAMPLE all analog ports sequentially by changing the channel...

    How would you go about having 3 port using the A/D command ?
    I would need to redefine the ADCON0 in the program ?
    begin:
    ADCON0 = %10000 000 'read channel AN0
    ...program goes here
    ADCON0 = %10001 000 'read channel AN1
    ...program goes here
    ADCON0 = %10110 000 'read channel AN6
    goto begin

    (keeping in mind to turn off and on the A/D module each time ADCON0 is selected)

    K
    Last edited by lerameur; - 19th September 2008 at 22:11.

Similar Threads

  1. HPWM of the port of two HPWM
    By ja2rqk in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 25th April 2007, 15:05
  2. HPWM confusion
    By lerameur in forum General
    Replies: 12
    Last Post: - 5th November 2006, 10:09
  3. sound command & music
    By trying in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 26th May 2006, 14:14
  4. 3 HPWM channels
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 4th April 2006, 02:43
  5. HPWM confusion
    By rossfree in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 3rd November 2005, 16:50

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