Search Results - MEL PICBASIC Forum

Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.09 seconds.

  1. Replies
    17
    Views
    213

    Re: 18F45K40 Can't set PORTD.1

    Nice, I'm glad you figured it out.
    Strange thing is that, according to the datasheet, RD1PPS defaults to 0 so you shouldn't need to clear that. It would be interesting to HSEROUT[DEC RD1PPS] on POR...
  2. Replies
    17
    Views
    213

    Re: 18F45K40 Can't set PORTD.1

    I can't help thinking it's an RMW issue even though you're clearly using LAT instead of PORT registers.

    What happens if you try to toggle ONLY RX1LED?
    What happens if you change the order in...
  3. Replies
    17
    Views
    213

    Re: 18F45K40 Can't set PORTD.1

    Nice catch Richard!
    However, looking at the datasheet the ODCOND register defaults to $00 which is push/pull for all pins. Nothing in the errata either.

    Which datasheet are you looking at?

    I...
  4. Replies
    17
    Views
    213

    Re: 18F45K40 Can't set PORTD.1

    I don't think that would (or should) be a problem but you're the moderator :-)
    I'm afraid, I for one, can't help you without more information, actual code, produced assembly listings and what not...
  5. Replies
    17
    Views
    213

    Re: 18F45K40 Can't set PORTD.1

    You know that assumption is the mother of all fuck-ups, don't you? :-)

    You didn't say ANYTHING about what you were doing, that you had "other" code running etc, how could I know that? Besides, you...
  6. Replies
    17
    Views
    213

    Re: 18F45K40 Can't set PORTD.1

    Are you sure the PIC is running?
    Are you using the deafult CONFIG with PBP and with "the other" compiler? They might be different...
    Can you toggle other pins?

    The output driver/buffer still...
  7. 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.
  8. Replies
    7
    Views
    421

    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...
  9. Replies
    9
    Views
    357

    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]...
  10. 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...
  11. 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...
  12. 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...
  13. Replies
    7
    Views
    618

    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.
  14. Replies
    7
    Views
    618

    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...
  15. Replies
    7
    Views
    618

    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...
  16. Replies
    18
    Views
    6,440

    Re: 1st time COMPARATOR use...

    Seriously? You just have to look harder then.
  17. Replies
    18
    Views
    6,440

    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...
  18. Replies
    18
    Views
    6,440

    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...
  19. Replies
    18
    Views
    6,440

    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.
  20. 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...
  21. 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...
  22. 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...
  23. 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...
  24. 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...
  25. Replies
    7
    Views
    827

    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...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4