If the interrupt structure is anything like other micros you need to disable any pending interrupt flags before re-enabling the interrupt, since, whatever is causing the pulse (and I assume its caused by switching the RS485 pins together) has caused a pulse anyway while ints were disabled, and this has not yet been cleared. Al Richard wrote: > > I am driving a 485 transceiver (SN65HVD10) with the LPC2104. The > RE/ and DE lines are tied together and to a GPIO pin for direction > selection. My problem is that when I enable transmission the bus is > driven low and a pulse is seen at my RXD input causing an > interrupt. I have tried disabling the UART1 interrupt before I > toggle the direction pins of the 485 transceiver but the receive > interrupt fires off as soon as I enable the UART interrupts again. > Tying the direction pins of the tranceiver results in a race > condition so I have added a small delay to let the pins settle. > > Thanks for the help > > Richard > > > > > > Yahoo! Groups Sponsor > ADVERTISEMENT > <http://us.ard.yahoo.com/SIG=129j4rjba/M=295196.4901138.6071305.3001176/D=groups/S=1706554205:HM/EXP=1103679979/A=2128215/R=0/SIG=10se96mf6/*http://companion.yahoo.com> > > > ------------------------------------------------------------------------ > Yahoo! Groups Links > > * To visit your group on the web, go to: > http://groups.yahoo.com/group/lpc2000/ > > * To unsubscribe from this group, send an email to: > lpc2000-unsubscribe@yahoogroups.com > <mailto:lpc2000-unsubscribe@yahoogroups.com?subject=Unsubscribe> > > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of > Service <http://docs.yahoo.com/info/terms/>. > >
Message
Re: [lpc2000] 485 Driver Issues (Slightly OT)
2004-12-21 by onestone
Attachments
- No local attachments were found for this message.