|ARM Technical Support Knowledge Articles|
Applies to: C51 C Compiler
Information in this article applies to:
There is a problem with early steppings of the Dallas Semiconductor DS80C390 that causes erroneous results from the DIV AB instruction if the A and B registers are loaded in a particular sequence.
The problem also appears in the current stepping of the Dallas DS80C400.
The problem exhibits itself when the register Accumulator is accessed immediately before a DIV AB instruction.
The solution is to load A, load B, and then execute DIV AB.
Dallas Semiconductor has already corrected this problem in the B4 revision of the 390.
The Keil C51 Version 6.14 compiler and higher generates Contiguous Mode code that works with the early versions of the DS390 and the DS400 device. If you have problems, you may download the latest updates from the Keil Website.
If you use the classic 8051 mode of the 390, you should upgrade to the B4 revision of this device.
Article last edited on: 2004-10-13 11:17:43
Did you find this article helpful? Yes No
How can we improve this article?