PBP3 Optimization & Peripheral Control Techniques on PIC16F/18F Devices


+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2025
    Posts
    2

    Default PBP3 Optimization & Peripheral Control Techniques on PIC16F/18F Devices

    Hi all,

    I’ve been actively working with PBP3 in several embedded control projects, mainly using PIC16F1939 and PIC18F26K22 MCUs. While I appreciate the cleaner syntax and broader device support in PBP3 compared to earlier versions, I’m now focusing on pushing performance and code efficiency — especially in timing-critical applications.

    I wanted to discuss some tips:
    Timers and PWM — I often need precise timer-based delays or PWM generation beyond what HPWM offers. Anyone using PBP3 with hardware timer overflow interrupts for finer control?

    Integration with MPLAB X / Pickit 3 — I’ve kept using the stand-alone MicroCode Studio, but I’m wondering if anyone here has set up a clean workflow with MPLAB X for PBP3, including breakpoints and debugging?

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,610


    Did you find this post helpful? Yes | No

    Default Re: PBP3 Optimization & Peripheral Control Techniques on PIC16F/18F Devices

    Anyone using PBP3 with hardware timer overflow interrupts for finer control?
    Yes, all the time and most times in conjuction with DT-Ints for PBP context save/restore. For periodic/cyclic interrupts using TMR2 (or one of the same type) is nice because you set it up once and then it takes care of itself while with TMR0 and TMR1 for example you need to reload it for the correct period each interrupt.

    If the goal is to use timer interrupt for all sorts of delays then it doesn't really matter.

    Integration with MPLAB X / Pickit 3
    Hate to say it but just forget about it. Apparently it used to kind of work, sort of, about a decade ago but Microchip has moved on an PBP hasn't kept up. I know I've tried several times but always went back to MicroCodeStudio.

    PICKit3 on the other hand I still use with the MPLAB IPE software.

    /Henrik

Similar Threads

  1. 18F devices RTCC Interrupt
    By readitaloud in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 26th July 2011, 09:39
  2. ENC28J60 and PIC16F/18F
    By SKOLS1 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 28th January 2011, 20:21
  3. Problems assembling with 18F* devices
    By timmers in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 21st March 2008, 16:13
  4. Readcode,writecode,erasecode In 18f Devices
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 13th March 2007, 17:55
  5. AES Encryption on PIC16F/18F
    By Emerson in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 17th November 2005, 00:45

Members who have read this thread : 3

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