Remove Text Formatting
Loading...

Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.05 seconds.

  1. Thread: Pbp3.1.1

    by HenrikOlsson
    Replies
    24
    Views
    633

    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...
  2. Replies
    10
    Views
    292

    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
  3. Re: Microcode studio problem with include

    1) I don't think it searches all open files, just the active tab. You can say that's a bug or feature or missing feature or whatever. Personally I'm fine with that but an option to search all open...
  4. Thread: Pbp3.1.1

    by HenrikOlsson
    Replies
    24
    Views
    633

    Re: Pbp3.1.1

    Well done! I have not got the update nor any K42's to play with yet.

    Regarding the vectored interrupts, don't forget that STILL can't use PBP inside your interrupt handlers, doing so without...
  5. Re: High priority/low priority program parts

    So, now you're saying it does - sort of - work? No more 300ms delays?

    Regarding the LCD: You can try tweaking the default 1500us setting but it's highly dependant on the specific LCD module you're...
  6. Re: High priority/low priority program parts

    If that's the complete code for the '88 it does not seem to be the culprit after all....

    The message being sent is 12 bytes, that's 6.35ms @19200 baud, then you have 500us pacing so that's Another...
  7. Re: High priority/low priority program parts

    No, HSERIN/HSEROUT does not do handshaking automatically, in the background.
    The UART in the PIC can receive one byte/character (and almost a second full byte/character) without the code doing...
  8. Re: High priority/low priority program parts

    HSERIN/HSEROUT won't make any difference on it's/their own.

    You need to look at the system level. Why is this code taking up to 300ms to execute? Because it sits here waiting for data for 300ms...
  9. Re: hserin 100, main [flag] causing 18f24k22 to become unstabloe

    For the sake of testing, can you try moving the code in the getchar subroutine to the actual place where the GOSUB getchar is? In other words, don't use a GOSUB just place the actual code "in line"...
  10. Re: High priority/low priority program parts

    Hi,
    > the HPWM glitch doesn´t matter because its driving an electric fuel pump.
    OK, no problem with that then.

    > I read the UART section in the old PBP handbook and it says: "very complicated"...
  11. Re: High priority/low priority program parts

    Since you have a WAIT state in the DEBUGIN statement that part of the code will take as many millesconds or years it takes for that "*" to arrive - simple as that.

    You have lot of nice...
  12. Replies
    16
    Views
    1,784

    Re: String & WRITE

    When you use the HEX modifier with SEROUT, DEBUG, LCDOUT, HSEROUT, ARRAYWRITE and so on it converts FROM a numeric value TO an ASCII string representing the numeric value as hexadecimal. In other...
  13. Replies
    16
    Views
    1,784

    Re: String & WRITE

    Hi,
    It looks like the HEX modifier can only do 8 digits "by it self" so one way is to resort to the good old FOR loop

    For i = 0 to 15 ' We're doing 16 hex digits
    DEBUGIN 150, Continue, [HEX...
  14. Replies
    16
    Views
    1,784

    Re: String & WRITE

    Welcome to the forum!
    If you use the HEX modifier while receiving the ASCII string each byte in the string/array will contain the numeric value (0-15) represeneted by the ASCII character (instead of...
  15. Re: Symbol not previously defined (EEPROM_START) - PIC16F15325

    MichelJasmin,
    You seem to be missing the point.... DATA, READ, WRITE are commands used to access on chip EEPROM.
    You can't use DATA, READ, WRITE on the 16F15325 because it does not have any on chip...
  16. Re: Symbol not previously defined (EEPROM_START) - PIC16F15325

    And how much on-chip EEPROM does the datasheet says that the 16F15325 has?

    /Henrik.
  17. Replies
    7
    Views
    319

    Re: 16F88 and external Oscillator

    OK, so it is a proper oscillator.
    Then just drive both PICs directly from it it. The way you have it now the second PIC will run at 1/4 the speed of the first one.

    Use .png instead of .bmp for...
  18. Re: How to use the Microchip XPRESS drag and drop bootloader with MCSP

    Here it is: https://www.mikroe.com/clicker-2-pic18fk
    Digikey is carrying MikroE's products but they don't seem to have this one yet. It's also unfortunate that they named it the same as the old one...
  19. How to use the Microchip XPRESS drag and drop bootloader with MCSP

    The previous version of the MikroE PIC Clicker 2 for 18F67K40 had the standard FTDI USB to serial IC and the 67K40 came pre-programmed with a serial bootloader so you can use bootloader application...
  20. Replies
    7
    Views
    319

    Re: 16F88 and external Oscillator

    To post the schematic, either make a screen dump and post the image or print/export to .pdf and post that.

    I was going to say exactly what tumbleweed just did so now I won't, but I'll say this:...
  21. Replies
    3
    Views
    226

    Re: Micro Code Studio and Studio Plus

    You have to realise that the "debugging" provided in MCSP is a software/firmware solution.
    Between each of your PBP statements the debugger inserts code of its own to talk to the software running on...
  22. Replies
    8
    Views
    339

    Re: Vintage Pic 16C73

    Yes, later generation, more capable, cards updated automatically or perhaps the user could do it with the remote or something. But the ones we we etched at home and put C84's on was not that...
  23. Replies
    8
    Views
    505

    Re: A/D converter PIC16F1827

    You don't have to first do a "manual conversion" (via the GO/DONE bit) and then do a ADCIN (which basically does the same thing for you).
    If you're going to use ADCIN then add a DEFINE ADC_BITS 10....
  24. Replies
    30
    Views
    8,717

    Re: PBP 3.0 really needed?

    I'm sorry but I'm afraid you're mistaken, variables most certainly WAS modified. I'm not talking about "your" variables, I'm talking about PBPs internal variables.
    You say that it's a lot "cleaner"...
  25. Replies
    8
    Views
    339

    Re: Vintage Pic 16C73

    Honestly, I have NO idea. I knew nothing about how it worked (still don't really). I barely knew what a PIC was or how you actually wrote a program for it.
    I had done a tiny bit of 8051 stuff in...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4