Search Results - MEL PICBASIC Forum

Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.06 seconds; generated 53 minute(s) ago.

  1. Re: with the pic16f628a off, a voltage on an1 comes out from main voltage pin, why?

    Because the I/O-pins have protection diodes going to Vdd and Vss:

    8928

    /Henrik.
  2. Replies
    7
    Views
    326

    Re: Pickit3 -- hate the friggin thing

    Yes, I've found that pretty typical. You might not have exactly 5.000V at the USB port of the computer then you have a 1.2m (or whatever) long USB Cable introducing some voltage drop and then you...
  3. Replies
    9
    Views
    297

    Re: Lcdout macro problem

    The issue seems to be this line:

    LCDOUT CAL_DOW[0], CAL_DOW[1], " ", dec2 REG_VAL[5], "/", dec2 REG_VAL[4], "/", dec2 REG_VAL[6], " ", dec2 REG_VAL[2], ":", dec2 REG_VAL[1] , STR REG_VAL[0]...
  4. Re: Using Floating Point to integer subroutines

    Right, I didn't mean the math routines won't work but the support file(s) for them does not include any of the newer parts. At least it was not possible to compile for the 16F1789 while after...
  5. Re: Using Floating Point to integer subroutines

    I think I figured the conversion out. That's not to say I understand it but I now got PBP code that gives the same result as Darrels shows - I take his results are correct :-)
    I'll play around with...
  6. Re: Using Floating Point to integer subroutines

    Guys,
    I'm resurecting this old thread as I'm going to venture into some floating point stuff. As it turns out the FP files doesn't work with any modern device and I don't have time to figure THAT...
  7. Replies
    7
    Views
    581

    Re: DT_ints handling time.

    No, I don't think it could.
    It will tell you the size of the code (ie how much FLASH it occupies). It doesn't tell you anything about which system variables the code uses.

    /Henrik.
  8. Replies
    7
    Views
    581

    Re: DT_ints handling time.

    Hi,
    OK, the simple band-aid would be to up the frequency but since you're running at 64MHz already that won't work. You said you re-wrote one of the handler in ASM but did you also change the...
  9. Replies
    7
    Views
    581

    Re: DT_ints handling time.

    It depends on a couple of things. The device family (18 series in your case), if LONGs are being used, if your program has resulted in PBP using any of its T-variables, if you're using a PBP handler...
  10. Replies
    18
    Views
    6,348

    Re: 1st time COMPARATOR use...

    Seriously? You just have to look harder then.
  11. Replies
    18
    Views
    6,348

    Re: 1st time COMPARATOR use...

    Well, I just opened the datasheet for '886 (again, I suggest you do as well) and as it turns out one of the headlines in the comparator section happens to be PWM Shutdown. When using the PWM module...
  12. Replies
    18
    Views
    6,348

    Re: 1st time COMPARATOR use...

    On the 16F1789 (which happened to be what I was looking at just now) the typical response time is listed as 50ns but it may vary depending on the device you choose.

    The 16F1507 have both a CLC...
  13. Replies
    18
    Views
    6,348

    Re: 1st time COMPARATOR use...

    Might be, on a chip with CLC module(s).
    But with a little bit of code it can be done either by polling the comparator output in the main loop or using a comparator interrupt.

    /Henrik.
  14. Re: Generate a non-blocking pulse with an Interrupt Service Routine

    One possible way:
    If 500us is enough granularity for the timing BETWEEN pulses then make your interrupt fire every 500us. In the ISR first clear all outputs - always. Then increment counter(s) for...
  15. Re: need a low frequency pulse out while still performing serial comms

    As with most things it depends on the circumstances but in my experience 57k6 is slow enough to not be upset by a simple timer interrupt.

    Let's do some math:
    At 20MHz the context saving, using...
  16. Re: need a low frequency pulse out while still performing serial comms

    See, the fact that it's a narrow pulse and not a symetric squareware makes a big difference.

    Keep the HSERIN/HSEROUT stuff in your main loop (if that works OK now). Use TMR2 to create a timebase...
  17. Re: need a low frequency pulse out while still performing serial comms

    Doing it with interrupts is the obvious way but if you're not used to it is a bit of learning curve and there certainly are other ways but there are so many unknown specs that coming up with a...
  18. Re: It is Y2K19 but DS18B20PAR+ Returns either 127 or 85 depending on resistor value.

    MeConfig is abandonware.
    Charles wrote in a post somewhere that it was all Darrels project and since he passed away it won't be maintained.

    I know Darrel was a Delphi guy so I suspect it was...
  19. Replies
    7
    Views
    730

    Re: error collection with try or catch

    Not all errors have to be reported to the user via a console, certainly not in a small embedded system. But yeah, I believe something like TRY/CATCH is more for programs running on top of an...
  20. Replies
    7
    Views
    2,026

    Re: MPLAB ICD Memory Usage Gauge Issues

    Does the gauge actually show BYTES or the number of instructions?
    Yes, the 26K22 has 64kB of FLASH but that's equal to 32768 instructions. Add a NOP and see if the available space shrinks by one or...
  21. Re: Shiftout question about the manual statement

    Correct on both accounts. As the SPI clock frequency goes up there's not much gain going the interrupt route so you can just as well poll the flag like that. The MSSP module CAN be a bit tricky to...
  22. Replies
    5
    Views
    838

    Re: 18F87J50 I/O problems

    It's a Bluetooth module.
  23. Re: Shiftout question about the manual statement

    Hi,
    If you have WORD sized variable and specify 12bits, MSBFIRST, one might think that it would shift out bits 15-4 but it doesn't. It shifts out bits 11-0. With LSB first it shifts out bits 0-11. ...
  24. Replies
    6
    Views
    1,117

    Re: PIC12F1840 & serout2

    Can't say I've used that specific command with that specific part but apart from the usual stuff* I don't see why it shouldn't work.

    * Where the usual stuff would be:
    Correct oscillator...
  25. Re: Pic 12F675... Pulling GPIO.3 Low resets program

    On that old version, when setting the config bits from within your code you need to comment out the default ones from the device specific .in file or you'll get [ASM ERROR] Overwriting previous...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4