Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
I do it, but this not print me number ... and I try with snprintf , and this is ok.
How doesn't want to see this IF loop in the IRQ function? How can I make it to do me only changes? I'm his configure to capture the rising edge of the pulse. Something like this video ...
Can I do it with switching on/off led, like if impulse come to Arm, turn on led in place of
printing 'x' ? I think that my program not go on ISR !!! Because, I was disabled line with printing 'x'.. And I very slowly rotate axle of encoder, between, I rotate third channel, not A and B, than Z...
Friends, thank you for your answers, but I can disable line with printing 'x'. Problem is not with 'x' . Problem is with irq or timer initialization. I write line with jirq++, he can print a some character if j>1 .
I think that problem is not in printing
Hi
I checked hardware. It's all alright. With encoder I have no problems because I tested his work on oscilloscope. The signals are clean. I think that the problem is in ISR routine, that's why I set it to show me some sort of characters. Uart is functioning great, it shows me what I want, for...
Thank you Klaus for your reply.
The problem is that the processor doesn't want to read impulses from port p0.2. So that means that program is not getting (going) in IRQ routine. I want to rotate easily axle of rotary encoder, so it can count impulses who are received on CAP periphery of encoder...
This is my code for capture egde from rotary encoder. Can anyone help me .
The problem is in code.
#define MOJTIP (unsigned char *)
#define MR0I_FLAG (1<<0)
/**********************************************/
void UART0_Init(void);
void UART0_Ispisi(unsigned char vrednost);
void...
Now, I can see that my stepper motor make mistakes with steps... I don't know how... I using Big Easy Driver, and sometimes he is precise sometime isn't.
Before all, I am bad at english.
I have stepper motor and driver for his Big Easy Driver (BED).
Also I have ballscrew with 17 mm movement.
One full step = 1,8* (degrees)
How I can calculate number of impulses for 50, 100, 200 mm..?
I was convert string 'brmmstring' to number 'BRMM', and MAX is...
Thank you for reply, yes Arduino is very popular mcu, and everyone can find code for every problem (for arduino), for Arm it is more difficult :)
Yes, but for complete ''job'' i would buy arduino, but for learninig i must working with arm 7 :(
If anyone working with Arm 7, please send me...
This is my first post on your site, actually my first presentation.
Accordingly, I would like to ask you nicely to not take me asbad if sent this to the wrong place by this question and this post.
The final year of study at the school I worked with a microcontroller.
I already have enough...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.