Bruce,
I tried debugging the below code using the Keil MicroVision3
debugger.
/* Configuring EXTMODE and EXTPOLAR */
VPBDIV=0x0;
EXTMODE=0x1;
VPBDIV=0x1;
VPBDIV=0x0;
EXTPOLAR=0x1;
VPBDIV=0x1;
VPBDIV=0x0;
It works fine on my end. Please dont single-step through these
instructions. You need to place a breakpoint at the instruction
following
VPBDIV=0x0;
When this breakpoint is hit, on the Memory Window of the debugger,
EXTMODE and EXTPOLAR should reflect 0x1
Best Regards,
Philips_apps
--- In lpc2000@yahoogroups.com, Bruce Paterson <bruce@t...> wrote:
> jbhoudry wrote:
> >
> > I have the same problem, impossible to put 1 in EXTPOLAR and
EXTMODE
> > for EINT0 (no problem for 1 to 3). I program all the
recomendations
> > from philips :
> > Before writing to the EXTMODE and EXTPOLAR registers,
> > 1> Write 0x0 to VPBDIV
> > 2> Then write the desired value to EXTMODE or EXTPOLAR register.
> > 3> Then write the same value to VPBDIV ( additional step)
> > 4> Restore the VPBDIV to the previously saved value or simply
write
> > to the register again with the desired value.
> >
> > I test on 2 LPC2294 the same, so now i use IT capture 0 timer 1
>
> Could Philips urgently confirm or not this EINT0 edge problem
exists on
> a LPC2124 ?
>
> Just about to change a layout to use EINT0 in edge sensitive mode
> (wasn't using it at all before) to WAKEup out of sleep mode, so I'm
not
> in a position to test this till it's all too late !!
>
> --
> Cheers,
> Bruce
> -------------------------------------------------------------------
> /\\\/\\\/\\\ / / Bruce Paterson
> / \\\ \\\ \\\ / / Senior Design Engineer
> / /\\\/\\\/\\\/ / 8 Anzed Court, Mulgrave, Vic, 3170
> / / \\\ \\\ \\\ / PO Box 4112, Mulgrave, Vic, 3170, Australia
> / / \\\/\\\ \\\/ Ph: +61 3 8561 4232 Fax: +61 3 9560 9055
> Tele-IP Ltd. Email: bruce@t... Icq: #32015991
> WWW: http://www.tele-ip.com VK3TJN
> -------------------------------------------------------------------Message
Re: external interrupt edge sensitive don't work
2005-03-31 by philips_apps
Attachments
- No local attachments were found for this message.