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; generated 44 minute(s) ago.

  1. Replies
    27
    Views
    504

    Re: Who sees my stupid mistake?

    Unless you happen to sit down at EXACTLY the right time your ass will be stuck in the debounce loop.
  2. Replies
    27
    Views
    504

    Re: Who sees my stupid mistake?

    You mean this:

    Progstart:
    if PORTB.0 = 1 then
    Toggle PORTB.6
    endif

    Debounce:
    Pause 20 ' ? shorter ?
    If PORTB.0=1 then
  3. Replies
    27
    Views
    504

    Re: Who sees my stupid mistake?

    I think the first version should work - but do so quite unreliably.
    The reason: If the button being pressed happens to FIRST be checked in the debounce routine the code will be stuck there until the...
  4. Replies
    27
    Views
    504

    Re: Who sees my stupid mistake?

    16384+12 seems correct for (inverted) 31250 but should it BE inverted and why 16384+3313? (I don't know MIDI...)

    Can you do a standard baudrate like 9600 and verify that data is coming out by...
  5. Replies
    7
    Views
    324

    Re: PIC10F322 6 pin chip

    The 6-pin and 8-pin versions are exactly the same only packaged differently.
    The 8-pin package has 2 pins that are N/C so there really is no difference and no reason why it should not work with the...
  6. Re: Budget 3in1 - 120MHz Oscilloscope Multimeter Signal Generator

    Yeah, once upon a time those boat anchors were the ducks guts. When I got into the electronics hobby in the early nineties I could only dream of having an oscilloscope, even the cheapest/simplest...
  7. Re: Budget 3in1 - 120MHz Oscilloscope Multimeter Signal Generator

    Or "Manual".
    Either is in opposite to automatic or, perhaps, display the manual on the screen. Or something completely unrelated to both Menu and Manual....

    Ah, so it does have a battery, then it...
  8. Re: Budget 3in1 - 120MHz Oscilloscope Multimeter Signal Generator

    This is one of those things where the answers is "It depends", and it depends a LOT.
    What's your usecase? On the hobby bench for the odd PIC project looking at 3.3V and 5V logic signals or in your...
  9. Re: ESP8266 - transfer some bytes PCPIC over wifi

    Quick note about something I re-learned yesterday.
    It started when I tried to update the firmware of my ESP-01 module, it only has 4Mbit of FLASH so it did not work. Dug out an ESP-12F module and...
  10. Re: ESP8266 - transfer some bytes PCPIC over wifi

    I tried with an old module I had laying around.
    I got the same issue no matter which CWMODE. But in the Stackoverflow post I linked to user urbanSoft (so all credit to him) writes:

    So I tried...
  11. Re: ESP8266 - transfer some bytes PCPIC over wifi

    Have you tried with CWMODE = 3?

    Also, see this:

    https://stackoverflow.com/questions/55083806/esp8266-atcwlap-gives-generic-error-message-with-no-details
  12. Re: NEC IR decoding issues (and another thread is closed)

    The value returned by PULSIN for a specific pulse width is dependent of the speed at which the PIC runs.
    At 4MHz the resoulution is 10us, at 20MHz it's 2us (all according to the manual).

    This...
  13. Replies
    6
    Views
    4,619

    Re: WiFi to setup a PIC based device

    I'm sure UART over WiFi is possible but if the goal is to use a smartphone with a terminal program then I would think Bluetooth would be easier.
    Something like a HC-06 module on the PIC side and...
  14. Re: GOTO statement causing jitter in output frequency, can be this fixed?

    And since the four pins are on the same port you could do away with the individual RMW-instructions for each pin and just do

    x = 0
    masfrk:
    PortC = x
    x = x + 16
    pauseus 194
    goto masfrk
    ...
  15. Replies
    41
    Views
    5,722

    Re: PBP3 download trial and purchase links

    Strange - and sad. Very sad.
    I would have given up already and went to a competing product.

    Crownhill (the company that hosts this forum) did have their own compiler. It's now end of life but...
  16. Replies
    41
    Views
    5,722

    Re: PBP3 download trial and purchase links

    You still not been able to purchase it?
    My guess is sales of PBP is pretty low these days so it's a pitty that someone who actually wants to buy it seems to not be able to...

    In the meantime you...
  17. Replies
    41
    Views
    5,722

    Re: PBP3 download trial and purchase links

    Someone is overthinking and overcomplicating things. This is not Linux :-)

    The confusion likely comes from the following:


    In the referenced dialog you do set the path to the compiler, ie PBP...
  18. Replies
    41
    Views
    5,722

    Re: PBP3 download trial and purchase links

    If the drive crashes and you're not able to deactivate the license I'd contact MeLabs and ask them for help. Given their record I'm sure they'll help you out.

    The Activation Manager needs internet...
  19. Replies
    41
    Views
    5,722

    Re: PBP3 download trial and purchase links

    Although Ioannis is correct in that you are indeed allowed to activate PBP on more than one machine don't forget to use the PBP Activation Manager to "deactivate" the license on that Alienware laptop...
  20. Replies
    6
    Views
    1,815

    Re: Quadcopter on an 18F25K20

    If I truly understood the math behind it I could probably write it in PBP but I really don't and that, my friends, is why my robot has never balanced properly for more than a couple of seconds before...
  21. Replies
    6
    Views
    1,815

    Re: Quadcopter on an 18F25K20

    Nice work Dave!
    I'd love to see some more details, what sensors or IMU? How was the complementary filter implemented?
    I'm not into drones but I have a two-wheel robot that's supposed to balance but...
  22. Re: Using as many internal peripherals as possible.

    How about this?


    Main:
    n = n + INTCON.2
    INTCON.2 = 0

    IF n.3 THEN
    LATA = LATA ^ %000011
    n=0
  23. Replies
    29
    Views
    4,804

    Re: DT Ints not working on 16F18426

    I think you also need to enable the interrupt

    @ INT_ENABLE IOC_INT
  24. Re: 18F26K80 Serial setting sanity check and 4xPLL.

    I'll admit, I've been sceptical about relying on overclocking for something that is actually being used but I suppose if it works at 96MHz(!) then dialing it back to 80MHz does provide some margin....
  25. Replies
    7
    Views
    2,773

    Re: 18F26K80 Code Optimisation.

    Do you NEED it to run faster? Are you at or close to the limit or do you just want to see what can be done?

    I would not bother with overclocking the PIC, running it 25% above its specification,...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4