Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    341

    Re: 125KHz HW PWM Output

    Referencing the Mister e Calculator, it looks like the best resolution you can get is 0 to 160, where 160 will be 100% Duty Cycle.
  2. Re: "Variable already an alias" - is there a way to avoid this?

    He made one other seemingly useless post with his fence company link embedded. I deleted this one. Maybe I should have deleted the other one. At least in the other one his fence link looked like a...
  3. Replies
    2
    Views
    161

    Re: Hserout overides debug and serout2

    My first question is why would you try to do the same thing 3 different ways in such a way as they conflict with each other?!?

    HSEROUT is Hardware based. If you look at the data sheet for...
  4. Replies
    4
    Views
    366

    Re: fusses info in PB3

    When I bought PBP3.1 I spent a few bucks extra and got the paper version of the Manual. I read through many times, underlined things, wrote in the margins, and highlighted excerpts in different...
  5. Re: Adding and reading byte variable from the bit array?

    The best I can think of is shifting & bit masks. If you want to use bits 2 through 5, create a generic temporary variable to put the interim result. Right shift it to put the 1st needed bit at the...
  6. Re: How to detect variable going below zero, without using PBPL ?

    Whether signed or unsigned, 0 = 0.
    With an Unsigned BYTE (let's start simple), the range is 0 to 255. From 255, add 1 and you get 0 again, as the BYTE rolls over.
    With a Signed BYTE, the range is...
  7. Re: How to detect variable going below zero, without using PBPL ?

    Zero VAR BYTE
    Variable VAR BYTE
    OtherVar VAR BYTE

    ADCIN, Zero
    ADCIN, Variable
    IF Variable < Zero THEN
    Zero = [some newly calculated value]
    ENDIF
    OtherVar = Variable - Zero
  8. Re: How to detect variable going below zero, without using PBPL ?

    ADCIN Baseline
    ADCIN Reference
    IF Reference < Baseline THEN
    'Sign = negative
    'Use subtraction in calculation
    'Denote a reduction
    ELSE
    'Sign = positive
    'Use addition in calculation
    ...
  9. Re: Adapting a PICAXE program to PBP, to program a PIC (compiler Errors)

    It's been quite a few years since I played with PICAXE, but what I do remember is that to configure the TRIS Registers, with PICAXE an Output = 1, but with PBP an Output = 0; they're backwards.
    ...
  10. Replies
    8
    Views
    794

    Re: Positive Feedback?

    I've been trying to over-use it to let the productive folks know it's there.
  11. Replies
    8
    Views
    794

    Re: Positive Feedback?

    Thank you Lester! Let's see how it's received. Haven't gotten that far yet, but did you make a General Forum announcement?
  12. Replies
    8
    Views
    794

    Positive Feedback?

    On most forums, there are little icons at the bottom to allow signed-in users to "Like", "Agree", "Disagree", and so forth. The Microchip Forum has a 5-Star rating for individual posts. Even the...
  13. Replies
    13
    Views
    1,069

    Re: SEROUT2 Byte Array In HEX Format

    You are probably overwriting the TXREG before it's finished sending the previous packet. You didn't mention which PIC you're using, so refer to the appropriate data sheet for the exact Register...
  14. Replies
    5
    Views
    495

    Re: Programming problem

    Did you get the latest PBP3.1.5 update? If so, you need to update the U2 software as well. If you did update both, maybe there's a new bug in one of the two.
  15. Replies
    1
    Views
    375

    PBP3.1.5 Update

    Charles posted that he updated PBP3.1 Pro last week:

    https://support.melabs.com/member/3-charles-leo

    Seems to affect the Q10 and Q43 Families mostly.
  16. Replies
    12
    Views
    1,214

    Re: Pic18f47q43 i/pt 44pin tqfp

    Beware, some companies will -- at best desolder chips from used circuit boards or -- at worst, sell dummy chips marked with the labeling of what you want. I've seen numerous articles recently about...
  17. Replies
    12
    Views
    1,214

    Re: Pic18f47q43 i/pt 44pin tqfp

    I have several PIC18F47Q43 in DIP-40 and I have a couple PIC18F57Q43, but not what you need.
  18. Replies
    2
    Views
    317

    Re: DT_Ints with PIC18F45K80 problem

    Each Special Function Register (SFR) Interrupt used by DT_INT is denoted with an IntFlagReg (PIRx), while the switch controlled by each bit within the SFR is denoted as a IntFlagBit (bit within...
  19. Replies
    6
    Views
    3,284

    Re: PBP3 and DT Interrupts

    You omitted the .bas (or .pbp) suffix from your INCLUDEs.
  20. Replies
    8
    Views
    819

    Re: Best General Purpose PIC

    For 8-pin, I use the PIC16F18313
    For 14- & 20-pins, the PIC16F18426-446
    For 28- & 40-pins, the PIC18F27_47Q43

    Of course, there are times I need specific functions, like USB. As a USB...
  21. Re: How to set port to high impedance? TRIS seems not to be working.

    Newer PICs have LATx registers that eliminate the RMW issues.
  22. Re: How to set port to high impedance? TRIS seems not to be working.

    In your example code you clear all TRIS bits making them all outputs. Try:


    TRISA = 111111
    TRISB = 111111
    TRISC = 111111

    frak:
    TRISA.6 = 0
    TRISC.3 = 0
  23. Replies
    2
    Views
    470

    Re: 12LF1552 -- support?

    It appears to have a unique analog feature CVD. I've not used it, but it involves an output pin. You might want to look that over, as it is not a common feature. My PBP3.1 Gold supports the...
  24. Replies
    2
    Views
    448

    Re: 1 microsecond rising edge pulse detection

    I've never worked with that part number, but it should have an INT or INT0 function. Somewhere (INTCON is where I find it on the PICs I play with) there is a bit to determine if you get an Interrupt...
  25. Replies
    3
    Views
    495

    Re: Simple TTL input pin coding.

    pescador, "ANSELA = PORTA.5" != "TRISA.5 = 1 'make porta.5 input". You are setting your ANSELA SFR to either %00000000 or %00000001, depending on the state of PORTA.5. Neither will do what you want.
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4