Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.07 seconds.

  1. Re: Using byte variable for storing two different values

    The decimal value 99 requires 7 bits so most you can save by packing values is 1 bit per value with the added overhead and complexity of unpacking them.

    If these values are to be in RAM (which I...
  2. Replies
    68
    Views
    2,003

    Re: GPS Project: PIC18F26K22 or PIC18F46K22

    Yes, you can have different baudrate(s) on different UARTs and yes you can change it at any time you want. But, as the posts in the other thread says, to change it you can't use PBPs DEFINE HSER_BAUD...
  3. Replies
    13
    Views
    562

    Re: EEPROM Issue

    Do you have (or can you add) a debug port (EUSART, SEROUT, DEBUG)?
    If so, then print the value of your variable out before calling the write routine, before executing the write command, after...
  4. Replies
    13
    Views
    562

    Re: EEPROM Issue

    Now there's a problem description if I've ever seen one :-)

    My bet is that it has something to do with the interrupts. Have you tried to disable the USB comms and change/save/read back the EEPROM...
  5. Replies
    120
    Views
    57,431

    Re: PID-filter routine (2nd try).

    As far as this PID code goes this is by far the most common question I've received over the years....

    If you have no integral gain then yes the output should (and will) be zero when the error is...
  6. Replies
    11
    Views
    990

    Re: 16-bit version of the WS2801 chip

    Don't know about a 16bit version but I just stumbled across the LDP1886 which is a 3x12bit LED driver.
    That's 4096 levels per channel or 68.7 billion colors.

    I have not looked at the datasheet to...
  7. Replies
    17
    Views
    1,518

    Re: Pic 18F26K40

    I'd say yes. But then again, my programs are usually not near the size of the memory size of the part in question and IIRC the bootloader does not reprogram the FULL memory while an ICSP device...
  8. Replies
    17
    Views
    1,518

    Re: Pic 18F26K40

    Hmm... My experience is the complete opposite. Using a bootloader is generally much faster than using ISCP (with a PK3 at least) - especially when loading small programs into chips with a lot of...
  9. Replies
    22
    Views
    2,882

    Re: PWM and audio noise

    I'm certainly no expert but can you show the schematic and PCB layout? It might give a better sense of what you're doing.
    I mean, are you dimming a LED or running an 500A TIG inverter with that PWM...
  10. Re: PBP3.1 Gold + MCSX+ + Microchip's ICD3 programmer?

    If you're using IPE then this thread might be helpful. It also targets the PICKit3 which is likely different from the ICD3 but as eagleman pointed out you should be able to find the corresponding...
  11. Re: SDI vs UART efficiency for wireless comms

    You mean SPI, not SDI right?
    SDI is a serial interface generally used for video and runs in the hundreds of megbits per second range, I don't think a PIC will cope with that :-)

    Technically, SPI...
  12. Replies
    5
    Views
    1,135

    Re: 18F26K42 TMR1 Interrupt troubles

    Hi,
    I don't have a definitive answer for you but here's a couple of things.

    First, if you haven't already, make SURE that you have Control of the pin where you have the LED connected. Make it...
  13. Replies
    15
    Views
    1,873

    Re: Unable to Open Include File

    Have you verified that the file extension is .bas and not .pbp?
    As long as the file is in the PBP folder or in the same folder as the source file from which you include the other file(s) it should...
  14. Replies
    42
    Views
    8,601

    Re: 18F2550 and Blink Led

    The oscillator block on the USB equipped devices are a bit complicated.
    It looks to me as if you're trying to run off of the internal oscillator at 8MHz (judging by OSCCON setting INTOSC to 8MHz)...
  15. Replies
    9
    Views
    1,111

    Re: EUSART vs. MSSP

    EUSART = Enhanced Universal Asynchronous Receiver Transceiver
    MSSP = Master Synchronous Serial Port

    Asynchronous means there is no dedicated clock line/signal, while synchronous means there IS a...
  16. Replies
    7
    Views
    794

    Re: PIC 18F46K22 Wierdness

    I believe it's basically the same issue as Ioannis had the other day when he tried to use HIGH/LOW on anything but a PORT register.

    Any command that automatically makes the pin in question and...
  17. Replies
    2
    Views
    538

    Re: lcd delay time

    If you look at the datasheet for the 44780 controller you can see the timing requirements, not all "compatible" controllers are equal though which is why PBP has the DEFINE LCD_COMMANDUS and...
  18. Replies
    9
    Views
    783

    Re: Good ol' 877

    HIGH/LOW are really only meant to be used on PORT registers.
    Those commands also clear the corresponding TRIS bit which is at certain offset from the register (PORT) in question. That offset is 80h...
  19. Replies
    67
    Views
    7,395

    Re: MicroCodeStudioPlus keeps crashing.

    Of course, and don't think for a second we haven't tried to but it really does feel totally random. Except for the fact that it has never ever (not for me at least) crashed when just sitting idle,...
  20. Replies
    15
    Views
    2,575

    Re: The book of dt interrupts

    You did ask Wayne for links to Darrels posts, I just wanted to make sure that you and/or Wayne hadn't missed the apparently obvious one, my appologies.
    I'd be happy to help where I can but setting...
  21. Replies
    15
    Views
    2,575

    Re: The book of dt interrupts

    You know about the "temporary" repository of Darrels work, right?
    http://www.picbasic.co.uk/forum/showthread.php?t=19638

    /Henrik.
  22. Replies
    67
    Views
    7,395

    Re: MicroCodeStudioPlus keeps crashing.

    If you read this thread on the MELABS forum you'll get some information and background to the problem. I just browsed thru it and see that I apparently had 80 logged crashes during the course of 2...
  23. Replies
    67
    Views
    7,395

    Re: MicroCodeStudioPlus keeps crashing.

    I've had MCSP crash on at least two different Machines, none of them DELL so no, that's not the key - either.
    It seems that everytime this issue is brought up people have forgot that it's been...
  24. Thread: Pbp3.1.1

    by HenrikOlsson
    Replies
    24
    Views
    2,593

    Re: Pbp3.1.1

    Since you're using assembly in the ISR there should be no issues as far as system variables goes. But, again, it's a completely different thing if start writing PBP code in the ISR.

    And just to be...
  25. Replies
    10
    Views
    1,215

    Re: Serial data transmission period

    Since your code executes about once every 5 seconds

    LoopCount VAR BYTE
    LoopCount = 0

    ' ------------------
    ' Rest of code goes here
    ' ------------------

    LoopCount = LoopCount + 1
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4