Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.02 seconds.

  1. Re: Using old tricks on "new" hardware can yeld nice results (1602 LCD hack)

    I guess that you won't tell us :)
    Also won't to tell how to animate nixie :) Still waiting on update...
  2. Replies
    8
    Views
    534

    Re: Data through GPRS - How to?

    You could use your own acc. So server would see traffic from you and your device.
    I never had problem with that.
  3. Replies
    8
    Views
    534

    Re: Data through GPRS - How to?

    Just another suggestion. You can use FTP or EMail.
    Look at SIM800c. There is fw with implemented FTP and EMail client.
  4. Replies
    14
    Views
    929

    Re: String matching?

    That would be fastest option, and you can jump to specific letter when starting. But there are some wasted FLASH...
    Henrik, why speed is so important?
    I used arrayread for parsing simple...
  5. Replies
    14
    Views
    929

    Re: String matching?

    Maybe make Keyword label? And check each?
    But reading flash is fast, so I think simple loop can do that really fast.
    Eg:
    If (char<>cmdChar) then gosub ReadToEnd
    ReadToEnd:
    READCODE Addr,TmpB...
  6. Replies
    19
    Views
    9,624

    Re: NeoPixel (WS2812B) Demo

    Sorry for bringing old topic. I just wanted to share my result.
    I got neopixel working on 8MHz. Just change few lines in original includes for 800nS and 400nS.

    Pulse 800nS
    NeoPin = 1
    @ nop...
  7. Replies
    22
    Views
    9,712

    Re: Darrel's Multiple Software PWM

    I didn't test with multiple camera, but flicker should be much less than PWM at same freq.
  8. Replies
    4
    Views
    492

    Re: Hserin and string handling help.

    Word can have 2 bytes. So LengthHigh1 and LengthLow1 must be bytes. And that is 0 to 255.
    But don't complicate that, just put DEC4 Length. And declare length as word. But be careful max value for...
  9. Replies
    4
    Views
    492

    Re: Hserin and string handling help.

    Try something like this

    IF charin(0) = "P" THEN '<--- works fine jumps to this block
    ARRAYREAD PARTIN1,[DEC3 PARTIN2, DEC3 lengthhigh2,DEC3 Lengthlow2 ] '

    SEROUT2...
  10. Replies
    22
    Views
    9,712

    Re: Darrel's Multiple Software PWM

    Why not?

    Take look at MIBAM it is designed for driving LEDs, and you can have 256 levels of intensity with just 16 interrupts per cycle. That is far less than SPWM.
  11. Replies
    22
    Views
    9,712

    Re: Darrel's Multiple Software PWM

    Also take look at MIBAM...
  12. Re: SWAP COMMAND extended to Longs and array variables

    Just seen this post...
    It is possible
    X = X XOR Y
    Y = Y XOR X
    X = X XOR Y

    Just run 2 arrays, with for loop and this swap byte method, and they will be swapped.
  13. Re: Doing something at predefined amount of steps?

    Logic look good to me.

    But you have very inefficient part of code...

    IF A//E=0 and X>Y then GOSUB PULSEY
    IF A//E=0 and Y>X then GOSUB PULSEX
    This 2 line generate more than 400bytes of code,...
  14. Replies
    1
    Views
    367

    Re: PWM calculated?, not table

    I would use table.
    It is simpler and quicker, than calculating. And once you have one table, you can use same table for 3 phase.
    If you want to have less data points for some reason, use linear...
  15. Replies
    15
    Views
    1,117

    Re: Revisiting Timers & Time Stamps

    I agree with you. You are right.
  16. Replies
    15
    Views
    1,117

    Re: Revisiting Timers & Time Stamps

    :wink:

    16bit mode shouldn't make any difference. Because timer clock is much more slower than processor clock. So even 4 instruction clock needed to read and store 2 register into 2 values, won't...
  17. Replies
    15
    Views
    1,117

    Re: Revisiting Timers & Time Stamps

    Yes. Set some pin HI before and low after pause 65000. But you probably need to use something lower, like pause 1000.
    I think that I described it accurately, but it was typo
    It is error of just...
  18. Replies
    15
    Views
    1,117

    Re: Revisiting Timers & Time Stamps

    Probably inaccuracy of PAUSE command.
    It is error of just 0.9-1uS per mS(60uS/65000). And that is just one instruction time when running on 4MHz(4 000 000MHz/4clock per instruction =1000000...
  19. Replies
    23
    Views
    1,604

    Re: Is it possible to make LCDOUT asynchronous?

    I'm not that good in asm. But You can always look at disassembly window in MPLAB X to see how PBP compiler done it.
    Also Step by step debugging helps a lot.
  20. Replies
    23
    Views
    1,604

    Re: Is it possible to make LCDOUT asynchronous?

    This is off topic, but...
    Default vars are must to save. Because those are internal PBP vars inside compiler subroutines.
    That what you want is great, but require too much work if you ask me.
    You...
  21. Replies
    23
    Views
    1,604

    Re: Is it possible to make LCDOUT asynchronous?

    I'm really glad that you tried it. I didn't have time to do it, but wanted...
    I don't know why everyone assumes always that PBP is slower than C. In my experience it was opposite.
    Speed of DT int...
  22. Replies
    23
    Views
    1,604

    Re: Is it possible to make LCDOUT asynchronous?

    Actually you don't need C. Just google Bresenham's line algorithm...
    https://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm
    Also I want to point that you do stuff totally opposite as it should...
  23. Replies
    23
    Views
    1,604

    Re: Is it possible to make LCDOUT asynchronous?

    LCDOUT can be quick. If you just update values that was changed, not whole display.
  24. Replies
    1
    Views
    405

    Re: QR Code encoder

    Interesting...
    It doesn't look too easy. But it could be done.
    Arrays and pointers are used almost same way as in PBP.
    But I would suggest to store table data in ASM so it would use much less...
  25. Re: Non standard, 160 char LCD text displays, SPLC780 controller, anyone?

    That is too much money for that type of display, if you ask me. For that money you can have 7" display with touch, animation, etc...
    Just recently looked up nextion...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4