Content originally posted in LPCWare by MaNi on Fri Jul 29 10:00:45 MST 2011
Thanks Zero for your reply,
Quote: Zero
That's nonsense, you can't use a pin as EINT and GPIO at the same time.
Ok...good to know. I thought it is possible to declare the Pin as an external interrupt and also read the logical level of it.
Quote: Zero
EINT can't detect rising & falling, so use GPIO.
But in the user manual it is written: [I]Each port pin can be programmed to generate an interrupt on a rising edge, a falling edge, [COLOR=Red]or both[/COLOR].[/I]
Quote: Zero
Are you aware that there's a QEI in LPC1769
Yes, i've seen this. But if i understand it right, there's only one QEI. Later i've got 2 motors with 4 hallsensors...so i think i can't use it for all four sensors!?
I don't think the hole code is wrong. With an resolution of 180digits/round the code works.
The only thing i want to improve is to evaluate every change of the both pins EINT0 and EINT1.
I think at the moment it only works with one edge an so i have the lower resolution of 180digits/round and not 360digits/round.
Regards,
MaNi