Thanks Art, it works quite well ;)
I've no more latency done by the HSEROUT command.
Thanks!
Type: Posts; User: pxidr84; Keyword(s):
Thanks Art, it works quite well ;)
I've no more latency done by the HSEROUT command.
Thanks!
You say that I should use a low priority interrupt for sending all my bytes?
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...
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...
Thanks Henrik :)
I will let the DT-INTS clear the flag, I think it's more "efficient" than clear the flag manually...
However what's that "reset flag"?
Do I need to clear myself the PIR3.4 flag?
Thanks a lot Pedja!
I didn't know that a main loop was mandatory in order to execute an 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...
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
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....
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...
I can't use that, too program time-consuming, my main timing interrupt is refreshing every 92µs or so...
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...
Thanks a lot Henrik, it works fine.
The only problem I got is that HSERIN hangs my loop...
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,...
Thanks, I see that, so I will do a little modification on the PCB (sadly).
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...
Yes I've see your post, but I've not tried it yet, I will do that today.
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...
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...
I will try that, thanks!
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...
A special PIC for motor control, it's the PIC18F4431, 10MHz quartz with PLL enabled (so 4*10=40MHz).
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
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...