Is it possible to use HPWM and DT's MIBAM at the same time?


+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2013
    Posts
    1,119

    Default Is it possible to use HPWM and DT's MIBAM at the same time?

    Hello.

    PIC16F1936.

    Say I run DT's MIBAM on PORTB pins, but I also want to use existing HPWM module to generate something on PORTC pins.

    Will it work?

    https://www.picbasic.co.uk/forum/con...le-Modulation)

    As said there,

    The module uses Timer1, and it cannot be used for any other purposes.
    Consequently, the PIC being used must have a Timer1.

    As I understand, while Timer1 and CCP1 share same pins, these are different hardware modules and can operate separately and independently?

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,624


    Did you find this post helpful? Yes | No

    Default Re: Is it possible to use HPWM and DT's MIBAM at the same time?

    for hpwm timers 2,4 or 6 can be used so there is no conflict for pwm
    Warning I'm not a teacher

  3. #3
    Join Date
    Feb 2013
    Posts
    1,119


    Did you find this post helpful? Yes | No

    Default Re: Is it possible to use HPWM and DT's MIBAM at the same time?

    Yes, thanks, I've checked some datasheets.

    For 16F1939 default timer for HPWM1 is Timer1, but it can be changed via registers.
    For 16F722 default timer for HPWM1 is Timer2, so no change is needed.

    However, it should be noted that these PICs have only Timer1 16 bit, others are 8 bit, so certain bytes of resolution will be lost...

  4. #4
    Join Date
    May 2013
    Location
    australia
    Posts
    2,624


    Did you find this post helpful? Yes | No

    Default Re: Is it possible to use HPWM and DT's MIBAM at the same time?

    For 16F1939 default timer for HPWM1 is Timer1,
    Incorrect , timer1 is not an option for hpwm1 ever
    timer2 is the default for ccp1 on 16F1939

    see CCPTMRS0: PWM TIMER SELECTION CONTROL REGISTER
    Name:  CCPTMRS0.jpg
Views: 548
Size:  127.4 KB
    Warning I'm not a teacher

  5. #5
    Join Date
    Feb 2013
    Posts
    1,119


    Did you find this post helpful? Yes | No

    Default Re: Is it possible to use HPWM and DT's MIBAM at the same time?

    I'm assembling test circuit with PIC16F722 today and will give it a try

Similar Threads

  1. MIBAM blinky on 16f628
    By ShoKre in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 11th December 2013, 09:58
  2. Replies: 3
    Last Post: - 23rd October 2011, 13:53
  3. MIBAM and 12F1822...
    By alesniak in forum mel PIC BASIC Pro
    Replies: 27
    Last Post: - 17th September 2011, 07:45
  4. MIBAM resolution
    By david parish in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 9th October 2009, 00:04
  5. MIBAM on 16F628
    By idtat in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th February 2009, 13:42

Members who have read this thread : 9

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