Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    5,294

    Re: Avoid HSEROUT command?

    Thanks Art, it works quite well ;)
    I've no more latency done by the HSEROUT command.

    Thanks!
  2. Replies
    8
    Views
    5,294

    Re: Avoid HSEROUT command?

    You say that I should use a low priority interrupt for sending all my bytes?
  3. Replies
    8
    Views
    5,294

    Re: Avoid HSEROUT command?

    Hi Henrik,

    I use the DT instant interrupts, i've one main loop, one high-speed high priority interrupt (running at 13kHz and doing some calculations) and one low-priority interrupt (running at...
  4. Replies
    8
    Views
    5,294

    Avoid HSEROUT command?

    Hi,

    I'm using a PIC18F2331 running at 40MHz and my program is quite heavy, the µC got a lot of work to do with a lot of interrupts.

    I usually use the HSEROUT command for sending 8 variables to...
  5. Re: Problems with DT interrupts (PT_INT interrupt)

    Thanks Henrik :)

    I will let the DT-INTS clear the flag, I think it's more "efficient" than clear the flag manually...
  6. Re: Problems with DT interrupts (PT_INT interrupt)

    However what's that "reset flag"?

    Do I need to clear myself the PIR3.4 flag?
  7. Re: Problems with DT interrupts (PT_INT interrupt)

    Thanks a lot Pedja!

    I didn't know that a main loop was mandatory in order to execute an interrupt ;)
  8. Problems with DT interrupts (PT_INT interrupt)

    Hello everyone :smile:

    I'm trying to use Instant Interrupts with the PT_INT interrupt (PWM time base) in my code.

    I'm using a 18F2431 with a 40MHz clock frequency. My PWM interrupt frequency is...
  9. Replies
    1
    Views
    2,225

    Re: Space vector PWM and ASM translation

    Finally found myself the carry problem... just to have to read the STATUS system register.

    if STATUS.0=%1 then
    @ incf _sector
    STATUS.0=%0
    endif
  10. Replies
    1
    Views
    2,225

    Space vector PWM and ASM translation

    Hello,

    I'm implementing Space Vector PWM in PBP in order to control with variable speed an 3-phase AC motor.

    The base of my work is the AN955 from Microchip....
  11. Replies
    8
    Views
    5,187

    Re: Decimal variable input with HSERIN command

    Oh thanks Henrik, I will see what I can do with this.
    But I think I'm gonna to use preselected values, less complicated to handle for the PIC...
  12. Replies
    8
    Views
    5,187

    Re: Decimal variable input with HSERIN command

    I can't use that, too program time-consuming, my main timing interrupt is refreshing every 92µs or so...
  13. Replies
    8
    Views
    5,187

    Re: Decimal variable input with HSERIN command

    Hmm right now I just want to retreive a 4-number decimal value in my loop, and put it in the "ref" variable. I don't even need a letter, I just send raw numbers (in ASCII) , like "0586" from my...
  14. Replies
    8
    Views
    5,187

    Re: Decimal variable input with HSERIN command

    Thanks a lot Henrik, it works fine.

    The only problem I got is that HSERIN hangs my loop...
  15. Replies
    8
    Views
    5,187

    Decimal variable input with HSERIN command

    Hello,

    I would like to do a simple thing with the HSERIN command :

    I send from my computer the ASCII chain "A1234". What I want it's to store the number (1234) in a variable (for instance,...
  16. Re: Reverse in software PWM4 and PWM5 pins (PIC18F2431)

    Thanks, I see that, so I will do a little modification on the PCB (sadly).
  17. Reverse in software PWM4 and PWM5 pins (PIC18F2431)

    Hi,

    I've got a PIC18F2431 (with hardware PWM).

    I generate three-phase waveform for an inverter with PWM0-5 outputs (each pair are complementary), so basically PWM0/2/4 generates low-side...
  18. Replies
    13
    Views
    7,820

    Re: Linear acceleration ramp

    Yes I've see your post, but I've not tried it yet, I will do that today.
  19. Replies
    13
    Views
    7,820

    Re: Linear acceleration ramp

    I think that my PBP 2.6 support LONGs... I can't exceed 65s, but right now it's not important.

    I've maybe find an another way (only for make a timer without PAUSE):

    -Use a "fixed" frequency low...
  20. Replies
    13
    Views
    7,820

    Re: Linear acceleration ramp

    Hi Steve,

    I've used what you said, and I've also included a deceleration ramp:
    (sorry for renaming the values, it's for a easier integration in my main program).



    ' PIC18F4431...
  21. Replies
    13
    Views
    7,820

    Re: Linear acceleration ramp

    I will try that, thanks!
  22. Replies
    13
    Views
    7,820

    Linear acceleration ramp

    Hi everyone,

    I would like to make a simple, linear acceleration ramp.
    I think that low priority DT interrupts can serve as a timebase.

    The thing I want is like that: increase linearly the...
  23. Replies
    9
    Views
    5,331

    Re: LCD freezing problem with interrupts

    A special PIC for motor control, it's the PIC18F4431, 10MHz quartz with PLL enabled (so 4*10=40MHz).
  24. Replies
    9
    Views
    5,331

    Re: LCD freezing problem with interrupts

    I've no problems with that (but I've modified this part to something like that):

    if rot=%0 then
    if run=%0 then
    if flag4=%0 then
    rot=%1
    flag2=%0
    flag4=%1
    endif
    endif
  25. Replies
    9
    Views
    5,331

    Re: LCD freezing problem with interrupts

    Actually I'm not at home so I will try to remove ocint and stopint next friday.

    And no, I'm not getting into Fltsub when my LCD is frozen: in reality, the menu is reseted to the very first...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4