Search Results - MEL PICBASIC Forum

Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.07 seconds.

  1. Replies
    7
    Views
    1,656

    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...
  2. 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...
  3. Replies
    5
    Views
    579

    Re: 18F87J50 I/O problems

    It's a Bluetooth module.
  4. 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. ...
  5. Replies
    6
    Views
    485

    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...
  6. 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...
  7. Replies
    5
    Views
    622

    Re: PIC to Pic Signaling

    You can certainly implement some sort of handshaking. You can implement a pooling strategy where the main controller sends queries to the slave device, asking if it's got any data OR you couls just...
  8. Replies
    15
    Views
    1,312

    Re: Filling an array

    In this basic example the compiler could/would know but in many other cases it simply can't know, before hand, what the index might be (as it can be a result of a calculation for example). So it's...
  9. Replies
    15
    Views
    1,312

    Re: Filling an array

    Also, arrays are indexed starting at 0.
    Writing to L0B0[16] will be writing outside of the array corrupting whatever might be there.

    /Henrik.
  10. Re: HSERIN/HSEROUT strange behavior receiving data with DEC modifier

    MyData is declared as a BYTE so it can't hold the value 270.

    /Henrik.
  11. Replies
    35
    Views
    2,119

    Re: Neopixel shocker ?

    So you've found several PBP examples - which you don't want to use because they are "lengthy" and "looked more complicated than you initially imagined". Bugger that, I'll write my own much simpler...
  12. Replies
    35
    Views
    2,119

    Re: Neopixel shocker ?

    Michael,
    Yes, 32MHz will make it easier (I did mine at 32MHz) since one instruction cycle then becomes 125ns and you're trying to "hit" times of ~400ns and ~800ns.
    So set pin, wait 3 or 4 cycles,...
  13. Replies
    35
    Views
    2,119

    Re: Neopixel shocker ?

    Certainly not using SEROUT. Look at the datasheet. The pixeldata stream is an 800kHz signal where a '1' is 450ns "high" followed by a 850ns "low" and a zero is a 850ns "high" followed by a 450ns...
  14. Replies
    35
    Views
    2,119

    Re: Neopixel shocker ?

    Michael,
    It's correct, they do need 3 bytes of data each which really isn't that hard to spit out. It does become a bit more tricky writing nice and clean PBP code once you start looking at timing...
  15. Replies
    6
    Views
    576

    Re: Can't blink a led wih 16F1519

    You have MCLR enabled.
    Do you have a pullup on that pin and does your devices programmer (provided you're doing ICSP) release the MCLR signal, allowing the device to start up?
  16. Replies
    6
    Views
    576

    Re: Can't blink a led wih 16F1519

    Turn off analog - or rather, turn on digital.
    Also, have you checked that the PBP default config for that chip is internal oscillator?

    /Henrik.
  17. Replies
    6
    Views
    690

    Re: Auto reset MCLR

    I don't see how it could NOT work. MCLR is pulled up thru the normal resistor and also connected to a normal I/O.
    When that I/O is set LOW it'll pull MCLR low which will reset the PIC. As soon as...
  18. Replies
    6
    Views
    690

    Re: Auto reset MCLR

    If you have a spare I/O then you could have the PIC pull its own MCLR down. Or, perhaps you can use the watchdog timer to "force" a reset.

    /Henrik.
  19. Replies
    5
    Views
    865

    Re: PICKIT 3 -- never used it

    ZIF-socket with a PICKit3? EBAY clone?

    Anyway, generally you use it In-Circuit, wire up PGD, PGC, Vpp, Vss, Vdd to the approriate pins of the target device. On the software side you can use...
  20. Replies
    5
    Views
    579

    Re: 18F87J50 I/O problems

    For the original code using the MSSP module, yes because it works on the development hardware. For the SHIFTOUT/SHIFTIN no, but if you look at the logic analyzer trace you'll see that part of the...
  21. Replies
    5
    Views
    579

    18F87J50 I/O problems

    After spending two fruitless nights on this I ask for help.
    After weeks of developing code on a PIC Clicker 2 with 18F87J50 I received the actual hardware on which the code is supposed to run on...
  22. Replies
    3
    Views
    662

    Re: PIC16F18855 and DT elapsed timer

    Several versions of ELAPSED_INT seems to exist. One that predates the existance of DT-Ints and one which is supposed to work WITH DT-Ints. For the one that's using DT-Ints it looks like you also need...
  23. Replies
    131
    Views
    61,100

    Re: PID-filter routine (2nd try).

    Mark,

    It provides some filtering to the input of the integrator and slows down its response some. The integrator does run on every call but the output of it is only added to the total output every...
  24. Replies
    131
    Views
    61,100

    Re: PID-filter routine (2nd try).

    I think it's the integral clamp that's the root cause.
    When the actual value is getting closer to the target, the output from the proportional term gets smaller and the integral term needs to "build...
  25. Replies
    131
    Views
    61,100

    Re: PID-filter routine (2nd try).

    You have quite high integral gain I'm surprised the system doesn't become unstable with that.
    I'd try setting Ki and Kd to 0, then increase Kp until you're starting to get oscillation then back Kp...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4