Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

corruption of VPBDIV via EXTMODE

2004-09-09 by supertoll_trinity

does anybody of you have experience with problems of the UART0-
connection after writing to EXTMODE.
from the errata-sheet:

"Problem: 
A write to either the external interrupt polarity register (EXTPOLAR) 
or the external interrupt mode
register (EXTMODE) will corrupt the VPBDIV register. A read of either 
EXTPOLAR or EXTMODE
will be corrupted BY the VPBDIV register. If VPBDIV is "1" or "2" 
prior to any write to EXTPOLAR
or EXTMODE, the CPU will hang up on the write to EXTPOLAR or EXTMODE.

work-around:
 If VPBDIV is non-zero, write all zeroes to VPBDIV before reading or 
writing EXTMODE or
EXTPOLAR, then write the proper value back to VPBDIV. In most 
applications this is a known and
fixed value, but if there is a possibility of dynamic changes in 
VPBDIV, software will need to read
VPBDIV, write zero to VPBDIV, read or write EXTMODE and/or EXTPOLAR, 
and then rewrite the
value previously read from VPBDIV."

i have also the problem when VPBDIV is zero. i tried a few ways to 
set it to zero before writing to EXTMODE, but i still can't use the 
serial-connection. 

what can i do?

thank you


andreas

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.