|
⒏Ask: How to emulate P89C669?
Answer: If your P89c669 is
new one, first you should use programmer or Flash Magic that provided with
Philips to change the BSB
(Boot Status Byte)
to "00" before emulating.
NOTES: After erasing the chip with programmer ,you should change the BSB to "00" again.
It wouldn't normally
emulate when BSB is not "00" or the chip is in
security status.
Using the Flash Magic
Software to change BSB value: Start Flash Magic software, click
"ISP->Boot Vector and Status Byte" to enter (Shown
in Figure 1);Set Boot Vectors to 0X00FC,Status Byte=0X00,then click Reprogram
(shown in Figure2).

Figure 1

Figure 2
Then initialize the JY-E2X00
emluator with Philips Specific Driver. Operating
Frequency should be lower than 18MHZ.
Initialization Settings: Select P89C669 from Device Database and select
6 clocks(shown in figure 4); If the code size
is below 64k bytes, please select MX2(64K),
or else select MX2 (128K)(shown in figure 5)。

Figure
3

Figure 4

Figure
5
When
the lights keeping in normal
after the initialization ,
you can start to debug your application.
All
the models (JY-E2100A/JY-E2200/JY-E2300)support
the Standard SFRs and the Extended SFRs of P89C669;
Keil
AX51 or CX51 compiler and LX51 linker should be provided in
order to support the extension instructions.
JY-E2300B
is the only one supporting 128K code space. Please expand
the 16-bit to 23-bit bus in application by "ORL MXCON,#07H"
instructions and locate the instruction at the address lower
than 0x00FB;
How to use "For669Int.asm": Download
1.Add this file to your project
2. Set
"Interrupt Vectors" (only to C) in
Keil:
Select "Interrupt Vectors at a
0x0000" in the "Option For
Target - CX51" dialog,
and change the value
to 0x0001 in the edit box";
In JY2X00: Open
the dialog "Setting-Compiler option - CX51",and
add the
Interrupt vector value(0x0001) to the edit box of "Add Control
";
NOTES: Please reserve "nop"
in not used interrupt entrance in your files!
|