Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.06 seconds.

  1. Re: Is it possible to make LCDOUT asynchronous?

    Exactly. I've done it manually a couple of times but it's tedious and prone to errors and you have to redo it whenever you change the ISR...
    Good for you that you're that good at ASM, I bought PBP...
  2. Re: Is it possible to make LCDOUT asynchronous?

    Unfortunately DT-Ints will always save all the "default" system variables. There are some additional variables that gets defined only when needed and they are only saved (obviously) if they are...
  3. Re: Is it possible to make LCDOUT asynchronous?

    Right, good thing I didn't spend too much time on my example because if you can't allow more than 300us it wouldn't work anyway.

    Three alternatives (not the ONLY three of course):

    1) Use timer...
  4. Re: Is it possible to make LCDOUT asynchronous?

    CuriousOne,
    There are likely several ways this can be handled but we know WAY to little about your code.

    * How often or fast does your main loop have to run?
    * How often does the LCD need to...
  5. Replies
    6
    Views
    206

    Re: Component recomendations

    I don't agree, it won't work properly being driven with a gate drive voltage of only 5V. My suggestion is to ditch the logic level gate requirement and instead use a proper gate drive IC.

    The...
  6. Replies
    6
    Views
    206

    Re: Component recomendations

    There's a lot more to it than voltage… Like, for example, how much current you're going to switch with it.
    Just go to Digikey or Mouser, type in MOSFET and start narrowing it down from there....
  7. Re: Is it possible to make LCDOUT asynchronous?

    It's not really the LCDOUT command that is "slow" but the HD44780 controller, not so much for data but quite so when sending commands and the timing requirement can differ quite a bit between...
  8. Re: Non standard, 160 char LCD text displays, SPLC780 controller, anyone?

    HD44780 based 40x4 LCD does exist. The thing is that it has TWO controllers and therefor TWO enable lines. The two top lines is driven by the first controller chip and the two bottom lines are driven...
  9. Re: the simplest way to remotely control a pic?

    A pot wired to an analog input?
  10. Re: Doing something at predefined amount of steps?

    No, 200-300=65436.
    65435 is -101 in two's complement because 65435+101 = 65536 which, when being truncated to 16 bits is 0.

    If what you want is the difference between the two numbers while not...
  11. Re: Doing something at predefined amount of steps?

    It will wrap around, 0-1=65535 provided the variable where the result is stored is a WORD.
  12. Re: Doing something at predefined amount of steps?

    I don't know for sure but since it involves division my guess is that this is slower. Speed isn't always everything though.

    Tell you what, why don't you try both ways and measure the difference,...
  13. Re: Doing something at predefined amount of steps?

    I think what you're looking for is the modulo operator (//).
    It will return the remainder of a division so whenever it returns 0 it means it was an "even division".



    MainCount = MainCount + 1...
  14. Re: Watchdog timer not working as expected

    Yeah, it's been covered on the forum many times over the years but it keeps coming back.
    It is NOT the keyword DEFINE that's case sensitive but what you're actually DEFINEing, ie RESET_ORG,...
  15. Re: Watchdog timer not working as expected

    This is not correct. The original code is fine.

    The keyword DEFINE is a PBP keyword so it's NOT case sensitive, can be define, DEFINE, DeFiNE, DEFine, however you want to write it. The thing that...
  16. Replies
    17
    Views
    966

    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...
  17. Replies
    17
    Views
    966

    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...
  18. Replies
    17
    Views
    966

    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...
  19. Replies
    17
    Views
    966

    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...
  20. Replies
    17
    Views
    966

    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...
  21. Replies
    17
    Views
    966

    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...
  22. 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.
  23. Replies
    12
    Views
    1,068

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

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