Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    29
    Views
    8,865

    Re: Better code check before compile?

    I agree with peja089, the colon acts as a virtual line break.
    If more than a signle statement should execute as a result of the evaluation use IF-THEN-ENDIF.

    With that said... In section 5.35 of...
  2. Replies
    4
    Views
    183

    Re: Redefinition of Label error

    A quick look at the datasheet for the 877A indicates that it does not even have a T0CON register (it does have a T1CON register though).
    Are you sure that's the device that the code was originally...
  3. Replies
    4
    Views
    183

    Re: Redefinition of Label error

    From the manual:


    Try replacing Symbol TMR0ON = T0CON.7 with TMR0ON VAR T0CON.7 and see if that makes any difference.
  4. Re: What is software SPI speed for various OSC speeds?

    No, why do you think that? All it means is that the chip can load the information about what it should display at that rate, it takes a lot longer for it to actually "render" the information on the...
  5. Re: What is software SPI speed for various OSC speeds?

    Never used the MAX7219 so correct me if I'm wrong but reading the datasheet it looks like for each digit on the display you need to shift out 16bits. 4 digits x 16bits = 64bits.
    If the SPI clock is...
  6. Re: What is software SPI speed for various OSC speeds?

    The manual states that the clock runs at about 50Khz depending on oscillator, they're probably basing that figure on a 4MHz oscillator. At 8MHz I would expect around 100Khz.

    I'm currently using...
  7. Replies
    1
    Views
    348

    Re: after reinstall cannot comile

    Check if, in fact, the file IS read-only. If not, try moving out of any "virtual folder" like Documents and put in something like C:\PBP\Projects or something.

    /Henrik.
  8. Replies
    40
    Views
    12,156

    Re: SSD1306 INCLUDE for PBP3

    Thank you Richard!
    Replacing the glcd_clrxy subroutine with that from post #38 seems to have fixed it.
    It also seems to have made GLCD_BAR more predictable but I have not looked into how they're...
  9. Replies
    40
    Views
    12,156

    Re: SSD1306 INCLUDE for PBP3

    Well, it turns out I don't have to worry about manually blanking out "stuff" - it just works. Still curious about the GLCD_CLR though.
  10. Replies
    40
    Views
    12,156

    Re: SSD1306 INCLUDE for PBP3

    I'm using Richards code with a small 0.96" 128x32 OLED display, soft I2C (because the 18F46K42 doesn't have the "old" MSSP module).
    I've managed to print text and variables on the screen but in...
  11. Replies
    4
    Views
    646

    Re: Bumpless Transfer PIC18F

    What if the incoming value changes as the output is ramping towards one end? Should that change in input signal be ignored or should there be an equal change in the output?
  12. Replies
    8
    Views
    1,164

    Re: 16f1847 hserout

    FOR i = 0 to 7
    Correct.0[7-i] = Mistake.0[i]
    NEXT
    or

    Correct = Mistake REV 8
  13. Re: HSEROUT using STR modifier - length parameter as variable not working

    Of course, since the macro only uses the low byte of R4 to index the array. That would also make it fail when using a constant >255.

    In any case, the "example" posted in the first place had a BYTE...
  14. Re: HSEROUT using STR modifier - length parameter as variable not working

    Which device are you using?

    I compiled two different version and looked at the .lst and with my limited understanding of assembly I'd say it "should work"

    First, HSEROUT [STR Buffer\16]


    ...
  15. Re: HSEROUT using STR modifier - length parameter as variable not working

    I don't know and I can't test/try if your code right now but a simple workaround would be

    For i = 0 to BalCount ' (Or possibly BalCount-1)
    HSEROUT [BalBuffer]
    NEXT
    HSEROUT [26,13]
  16. Re: PIC18F1220 - Variables initialisation placement makes a change

    Further, variables aren't automatically initialized (ie set to a specific value).

    Where in your code you put the declaration of the variable can change the ORDER of the variables in RAM so if,...
  17. Re: Unable to fit variable XXX in requested bank 0

    I don't know but the way I understand and interpret it is that between user variables that HAVE specific bank requests and those that don't the first ones ARE handled first - but still AFTER the PBP...
  18. Re: Unable to fit variable XXX in requested bank 0

    Remember that PBP itself uses a bunch of variables and it most likely needs to use BANK0 for them for the same reason that you want to use BANK0. The number of variables PBP uses depends on what...
  19. Replies
    33
    Views
    3,865

    Re: Rotary encoder with DT interrupts

    I was a little quick with that PCON thing, on startup set PCON = %00011111 then let the program run



    serout2 PORTC.6, 16468, ["Power-on:", BIN8 STATUS, " - ", BIN8 PCON, 10,13]
    PCON =...
  20. Replies
    33
    Views
    3,865

    Re: Rotary encoder with DT interrupts

    Since the I'm alive output is outside of and before Main it looks to me as if the PIC is resetting and starting over. Try something like:

    serout2 PORTC.6, 16468, [BIN8 STATUS, " - ", BIN8 PCON,...
  21. Replies
    1
    Views
    450

    Re: Datasheet RANT

    Hmm, section 1.4 in the datasheet I happen to look at seems to show, in quite some details, how data is exchanged and they let you know that more details can be found in the SH-2 Reference Manual.
    ...
  22. Replies
    4
    Views
    761

    Re: HEF EE OK with WRITE ?

    The datasheet for the 16F19176 seems to indicate that the device has actual EEPROM on board and does not mention HEF (High Endurance Flash) so I would expect DATA/READ/WRITE to work with that device....
  23. Replies
    4
    Views
    761

    Re: HEF EE OK with WRITE ?

    Disclaimer: Have never actually used HEF so this is not based on experience but rather on how I believe/think it works.

    Since HEF is part of FLASH I'd say the command(s) to use is...
  24. Replies
    10
    Views
    1,345

    Re: Logical AND/OR/ Sequencing question

    The gold and silver editions allows you to install and activate PBP on up to 3 machines, do you have that many and still need that extra laptop?
  25. Replies
    2
    Views
    616

    Re: 18F1220 - DEBUGIN not working

    The pin you're trying to use is configured for analog input.
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4