asin function on LPC1768

OP (Company: Coinel Technology Solutions) #1802489
Rate this post
• ▲ useful
▼ not useful
Hello

I am using LPC1768 for a motor control application. The motor will be 
controlled with a series of pulses each of 2us wide.

I use a asin function to calculate the time between two pulses. (The 
motor moves clock and anti-clock wise, hence a sin function is 
considered)

when asin function is called, the code tends to break. ie it gets stuck 
at hardware handler routine.

I believe the issue is with the use of asin function, although i am not 
sure about it. I am using inbuilt asin in math.h

Can anyone kindly suggest me how to use a asin function on LPC1768. If 
anyone can provide me a small code for how to use it on LPC1768 would be 
of great help.

I have tried the code on rowley crossworks and on Keil. Both seem to 
give the same error. But in simulator asin function is working fine.

Kindly suggest.

Regards

Prakash

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.