Search:

Type: Posts; User: mpgmike; Keyword(s):

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    187

    Re: Au full quiet out rear..

    A few of us took some time to document not only how to USE DT Interrupts, but how to MODIFY them as well:

    http://dt.picbasic.co.uk/
  2. Replies
    4
    Views
    187

    Re: Au full quiet out rear..

    I forced myself to learn to program in C because ME Labs didn't update for the new PICs last year; I needed a PIC16F18426 (introduced in 2017) for many projects (fell in love with that one!). At...
  3. Replies
    14
    Views
    495

    Re: String matching?

    You could create a SELECT CASE where you CASE: in alphabetical order. For multiple key words starting with the same letter, use IF/THEN clauses to sort through them. SELECT CASE will parse through...
  4. Replies
    22
    Views
    9,449

    Re: Darrel's Multiple Software PWM

    I just happen to be doing a project with the PIC18F46K42 so it's fresh on my mind. It has 4 CCP channels capable of outputting PWM, plus it has 4 PWM channels. All 8 channels can be controlled...
  5. Replies
    22
    Views
    9,449

    Re: Darrel's Multiple Software PWM

    In combination with multiple CCP/PWM modules, modern PICs have DSM and CLC engines that can combine multiple PWM cycles (at differing frequencies & DC%) into a single output signal.
  6. Replies
    15
    Views
    940

    Re: Revisiting Timers & Time Stamps

    Just for kicks, make sure Timer 1 is Off, clear TMR1H_L, then turn it on. Pause 65000, turn Timer 1 Off, then read TMR1H_L. See what you get. You may be eating up a few milliseconds (8 ms) doing...
  7. Replies
    23
    Views
    1,330

    Re: Is it possible to make LCDOUT asynchronous?

    In C, most every line of code is terminated with a semicolon( ; ). Clauses are grouped between curly brackets ({ }) Let's look at one of the clauses:


    while (running) {
    ...
  8. Replies
    23
    Views
    1,330

    Re: Is it possible to make LCDOUT asynchronous?

    I remember several years ago I was feeling quite confident with my PBP skills. I ran into an issue where the PBP command set was inadequate for my needs, sort of like LCDOUT is for you right now. ...
  9. Replies
    56
    Views
    16,327

    Re: Stable Adc Reading Routine

    An approach I use to reduce UART transmissions of redundant data is to use a simple filter:



    AdcVal VAR BYTE
    OldAdcVal VAR BYTE

    ;Do ADC read into AdcVal
    IF AdcVal != OldAdcVal THEN
    ;Do...
  10. Replies
    56
    Views
    16,327

    Re: Stable Adc Reading Routine

    Do your division first looking at the integer result (796 / 10 = Result) then do it again looking at the remainder/modulus (796 % 10 = Modulus). If modulus >= 5 Then Result += 1.

    That will give...
  11. Re: Generate a non-blocking pulse with an Interrupt Service Routine

    CuriousOne, the original poster (boroko) was using a PIC12F683 with only basic Timers 0/1/2. I don't know if you have spare timers to use for such an interrupt, but the newer PIC12_6F1xxxx parts can...
  12. Replies
    3
    Views
    368

    Re: Annoying MicroCode Studio quirk/issue

    Charles told me that the automatic switching works for just about all PICs except the PIC16F17xx series. Something about the way the Registers are addressed differently on those chips.
  13. Replies
    10
    Views
    1,100

    Re: Help with Using the Catalex MP3 Player

    My best guess is that you may occasionally get dial pulses while the software is somewhere other than the top of "dial:".

    You could use CASE SELECT instead of a bunch of IF/THEN clauses. With...
  14. Re: Glitches when changing portD seen on other ports

    You wrote to LATD but are writing to PORTE. Write to the LAT and read from the PORT. Writing to the PORT involves a READ - MODIFY - WRITE sequence that might be exacerbating your power supply...
  15. Replies
    10
    Views
    1,100

    Re: Nextion Touchscreen LCD User Interface

    It was supposed to be the current Nuts & Volts, but to my surprise, my article wasn't there. I don't use the SEROUT command, so was just going from the book. As for creating your own "command...
  16. Replies
    2
    Views
    556

    Re: 18F4680 Internal Oscillator

    This may or may not get you where you want to be, but if you go to C:\\Programs(x86)\PBP3_1\DEVICE_REFERENCE you will have a list of every PIC processor PBP can program. Click on your 18F4680. What...
  17. Replies
    10
    Views
    1,100

    Re: Nextion Touchscreen LCD User Interface

    I actually wrote an article for Nuts and Volts on using the Nextion with the PIC using PBP.

    Another thought, when you look at the User's Guide in the section that covers error codes (near the end...
  18. Replies
    10
    Views
    1,100

    Re: Nextion Touchscreen LCD User Interface

    Furthermore, numeric values must be transmitted in ASCii as well:


    "n2.val=", $22, "123", $22, $FF, $FF, $FF

    where you're not transmitting a single byte value of 123, you're sending $31, $32,...
  19. Replies
    10
    Views
    1,100

    Re: Nextion Touchscreen LCD User Interface

    The manual lists all of the serial commands & error codes. It specifies when to use spaces. If not mentioned, use no space.


    t1.txt="Hello World"

    When you want to send that through UART, it...
  20. Replies
    5
    Views
    1,111

    Re: Au-full quiet out here lately...

    Personally, I fell in love with the new PIC16F18426 and ME Labs hadn't gotten around to including it in the latest PBP update. I felt obliged to learn how to program in "C" and use MPLABX just so I...
  21. Replies
    7
    Views
    969

    Re: SSD1315 oled display

    Have you dissected the Audrino Include code? If you post it as .txt we could look at it with you.
  22. Re: AD8302 Phase and magnitude to complex impedance

    What ideas do you have so far? There are some of us that have no experience with what you are using, but may contribute snippets of wisdom if we have a good starting point. What PIC processor did...
  23. Re: Getting data from user, how to store it properly? (kinda dialog interface)

    My son is building a video game (just the screen software, no hardware). What you are discussing is sounding familiar.

    Not sure what you're building (3-D printer?) but I just saw this on the...
  24. Re: DC Motor constant speed controller, is Picbasic fast enough?

    The HPWM command occasionally has glitches where it hangs high or low. PBP is certainly fast enough to handle your request, but you can actually work the SFRs manually within the PBP environment. ...
  25. Replies
    18
    Views
    1,602

    Re: Programmer help

    https://www.microchip.com/mplab/mplab-x-ide
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4