Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    15
    Views
    384

    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...
  2. 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) {
    ...
  3. 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. ...
  4. Replies
    56
    Views
    15,507

    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...
  5. Replies
    56
    Views
    15,507

    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...
  6. 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...
  7. Replies
    3
    Views
    193

    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.
  8. Replies
    10
    Views
    675

    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...
  9. 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...
  10. Replies
    10
    Views
    785

    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...
  11. Replies
    2
    Views
    368

    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...
  12. Replies
    10
    Views
    785

    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...
  13. Replies
    10
    Views
    785

    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,...
  14. Replies
    10
    Views
    785

    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...
  15. Replies
    5
    Views
    810

    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...
  16. Replies
    7
    Views
    650

    Re: SSD1315 oled display

    Have you dissected the Audrino Include code? If you post it as .txt we could look at it with you.
  17. 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...
  18. 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...
  19. 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. ...
  20. Replies
    17
    Views
    1,311

    Re: Programmer help

    https://www.microchip.com/mplab/mplab-x-ide
  21. Replies
    17
    Views
    1,311

    Re: Programmer help

    When Microchip introduced the new MPLABX IDE, the also introduced the MPLABX IPE for programming. The IPE takes the place of legacy programming software like PICkit. It is designed to work with all...
  22. Replies
    17
    Views
    1,311

    Re: Programmer help

    True. If you want cheap, Microchip has their Snap Programmer, runs about $20 US. Works similar to the PICkit3.

    Over the years I accumulated an Olimex (never could get it to work), a PICkit2...
  23. Thread: Indented lines

    by mpgmike
    Replies
    2
    Views
    402

    Re: Indented lines

    White space matters with Labels and ASM. Labels must be tight to the left with a colon ":" at the end. If adding a single line of ASM, it is preceded by an At sign "@", white space, then the ASM...
  24. Replies
    17
    Views
    1,311

    Re: Programmer help

    ME Labs has the U2 Programmer. I own and use one.

    http://store.melabs.com/prod/u2/U2BUN.html
  25. Re: HPWM outputs only on two channels on PIC16F886, when it should do more.

    Another one with 16-bit PWM is the PIC16F17xx series. The PIC16F1778_9 even has 12-bit ADC.
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4