Re: float in interrupt function?
2005-04-09 by ed_hage
Thanks for the explanation. I defined it as volatile and really it still does not work. ... volatile unsigned long DC0 = 10; void IRQMotorOut (void) { PWM_MR4
Yahoo Groups archive
Messages
Page 197 of 329 · 16407 messages matched
2005-04-09 by ed_hage
Thanks for the explanation. I defined it as volatile and really it still does not work. ... volatile unsigned long DC0 = 10; void IRQMotorOut (void) { PWM_MR4
2005-04-09 by charlesgrenz
When ever you use a global variable, you have to specify it as a volatile to tell the compiler not to opitmize the variable out of the equation when working
2005-04-09 by capiman@t-online.de
The volatile is the thing, which makes it worth trying out... Regards, Martin ... From: ed_hage To: Sent:
2005-04-09 by ed_hage
I don t want to define DC1 = 20 inside the IRQfunction. That works already. I want to use the value of DC1 = 90 instead that is defined a a global, Already
2005-04-09 by charlesgrenz
Hi guys, just a thought, try this instead volatile unsigned long DC1 = 90; void IRQfunction(void) { DC1 = 20; } regards, Charles
2005-04-09 by ed_hage
Latest update: When I reassign a value to DC1 in the function it works, example: int DC1 = 90; void IRQfunction (void) { DC1 = 20; PWM_MR4 = (PWM_MR0 * DC1) /
2005-04-09 by Jeetendra Singh
Yes i already Pulled up SSEL to 3v3 by a 47K Resister and not used for CS(MMC_CS). I am using another GPIO for the purpose of CS MMC_CS). Notice that In
2005-04-09 by ed_hage
... Hello Dan, That s the point. I have it already running hard coded! I have a simular setup in a PWM_Init () function and I get great 5% DC on my output-pin
2005-04-09 by embeddedjanitor
... ARM ... For such nuggets I really suggest the ARM System Developer s Guide which has the following: @ r0 is source/dest @ r1,r2 are scratch mvn r2,
2005-04-09 by James Dabbs
Is there a clever, quick way to do 16-bit and 32-bit byte swaps in ARM with only one or two instructions? Thanks, James Dabbs
2005-04-08 by Dan Beadle
I would first try hard coding MR4. I assume that you are in the Single Edge mode. Verify that with fixed numbers you have everything else set up, then come
2005-04-08 by ed_hage
... Yes, correct. I loose precision when I first devide and then multiply.I altered it as you specified here but still the problem seems to be using the
2005-04-08 by ed_hage
... I get a 100% dutycycle as output (constant high).
2005-04-08 by Dan Beadle
What is the value of MR0? By dividing first, you are losing precision (unless the lower 7 bits are all zeroes). For example if MRC has 1289 decimal in it and
2005-04-08 by Robert Adsett
... Your order of arithmetic is wrong. Change to: PWM_MR4 = (PWM_MR0 *DC1)/100; or if PWM_MR0 *DC1 will EVER overflow 32bits PWM_MR4 = (PWM_MR0 *(long
2005-04-08 by ed_hage
Hello Dan, thank you for the info. That is a good and simple way to avoid floats. The only thing that I can not get done is to use a global variable to
2005-04-08 by peterburdine
Where do you get these, and how much do they cost? Do you use the backlight version?
2005-04-08 by Robert Adsett
... Two methods are available - The complex way is to save the floating point state, init a new floating point state, do your calculations and restore the
2005-04-08 by Marko Pavlin (home)
I used in one pressure transducer prototype the EM Marin LCD module, similar to this one: http://www.emmicroelectronic.com/Products.asp?IdProduct=221 it has
2005-04-08 by Dan Beadle
In general, try to keep interrupt functions short and sweet. Floating brings in many more cycles, for very little benefit in cases like this. You can get
2005-04-08 by ed_hage
I am using a LPC2106-board from Olimex to drive two motors via PWM. I have a simple interrupt-function for the PWM which reads the duty cycle variable and then
2005-04-08 by aumat123
You must pull up the SSEL of the SCI that you are using. Seem be that the SCI in master mode need that the SSELx must be connected and pulled up externally for
2005-04-08 by Mark Crow
Is SSEL1 pulled up? ... From: Jeetendra Singh [mailto:jeet77_7@yahoo.com] Sent: Friday, April 08, 2005 9:44 AM To: lpc2000@yahoogroups.com Subject: [lpc2000]
2005-04-08 by valdef78
... comunicate ... clock ... conversions. ... line must ... presumably have ... conversion. I ... byte ... third ... select is ... actually perform ... normal
2005-04-08 by charlesgrenz
Hi Jeff, I m still waiting for a response about the 4.20 update. So far this is what I found on the website.
2005-04-08 by aumat123
Hello I have the same problem a days ago. You need: -Apply 3v3 to pin SSEL0 (SSEL1) - In the pin Connect block put this pin as connected to SPI - Use another
2005-04-08 by Lowry, Jeff
Hi Charles, Yes. I had to get some updated files from them for flash downloading, etc. I have a project that works with the Keil 2130 (LPC2131) eval board
2005-04-08 by charlesgrenz
Hi Jeff, Just recieved some files with 2138 stuff and demo s as well from my rep. He also mentioned that there will be an update soon to 4.20. Do you currently
2005-04-08 by Lowry, Jeff
I talked with IAR tech support and they said they will modify the 8 or so files necessary to support the 2131. He says it s about a 2 hour job. I should have
2005-04-08 by Robert Adsett
... It depends on how it works Option 1 - The device only works when connected. IE the select line must be held low during conversion. In that case the A/D
2005-04-08 by acetoel
I have used KS0108 Based LCD, which are monocrome but 128x64, I would like to use a bigger screen. Anyway, take in consideration that most LCD needs 5V, and
2005-04-08 by valdef78
... clock ... conversions. ... you had to send/read 3 bytes on the SPI to give the necessary clock to the ADS8325 and take the data from it.. you should have a
2005-04-08 by dasbento@aeiou.pt
Thanks Robert! I m using an AD (ADS8325, texas instruments) and i want to comunicate with SPI. But i don t know how. The ADS8325 not have an internal clock .
2005-04-08 by charlesgrenz
Hi Jeff, There isn t one. I assumed that it should read 213x since there is no actual part 2130. I have my rep. looking into it now to be on the safe side and
2005-04-08 by Robert Adsett
... I don t believe so. It would only result in missing data. Robert Freedom has no meaning of itself. There are always restrictions, be they legal,
2005-04-08 by Lowry, Jeff
Thanks Charles. Mine too. I m not aware of a philips 2130...just 2131/2/8. I wonder if the 2130 is really 2131...I ll give it a try. Jeff. ... From:
2005-04-08 by Robert Adsett
... Semantics I believe. Cannot in this case means not that the flash won t get written, but that the value that results from the write won t match the actual
2005-04-08 by dasbento@aeiou.pt
Hello, Is it possible to generate a continuous serial clock on the SPI? _________________________________________________________ CEAC Cursos de formação
2005-04-08 by charlesgrenz
Hi Jeff, I just checked my version and only found a lpc2130.i79 and ddf. I am currently running 4.11. regards, Charles
2005-04-08 by Lowry, Jeff
Been working with LPC2138 with IAR just fine. Trying to move to smaller LPC2131. When I download the same app it won t run to main. Anybody do this yet? I
2005-04-08 by Jeetendra Singh
Hi friends i am working in Lpc2106 and facing problem in spi mdule. Actualy i am using spi module in master mode. i checked my code in jtag debugger(wiggler
2005-04-08 by Leon Heller
... From: Marko Pavlin To: Sent: Friday, April 08, 2005 1:08 PM Subject: [lpc2000] (OT): good LPC900 group ... There is
2005-04-08 by Leon Heller
... From: Aalt Lokhorst To: Sent: Friday, April 08, 2005 12:57 PM Subject: Re: [lpc2000] Re: Wiggler with
2005-04-08 by Marko Pavlin
Is there LPC900 group which is as good as this LPC2000 group? Thanks.
2005-04-08 by Aalt Lokhorst
Hello Leon, In first instance I used a HC244 and it was working fine in combination with the KEIL MCB2100 board. After several days I connected some extra
2005-04-08 by Leon Heller
... From: Aalt Lokhorst To: Sent: Friday, April 08, 2005 11:26 AM Subject: Re: [lpc2000] Re: Wiggler with
2005-04-08 by Bill Knight
Answers interspersed -Bill On Fri, 08 Apr 2005 13:35:28 +1000, Bruce Paterson wrote: ... Bill, Just been having a look at your routines as I need to do some
2005-04-08 by Aalt Lokhorst
Hello Leon, I am using your circuit without problems. I had only one issue. In your schematic is a HC244 buffer. The problem with this one, at least with the
2005-04-08 by Leon Heller
... From: yekai1k To: Sent: Friday, April 08, 2005 5:45 AM Subject: [lpc2000] Re: Wiggler with LPC2124 ...
2005-04-08 by Boris Králik
http://rod.info/arm.html ... Regards / S pozdravom Boris Kralik http://www.geocities.com/kralikbo/ ... Send instant messages to your online friends