|
HC05 Datasheet, PDF (204/232 Pages) Motorola, Inc – High-density complementary metal oxide semiconductor (HCMOS) microcontroller unit | |||
|
◁ |
B.8.3 Serial RAM loader
This mode is similar to the RAM load/execute program for the MC68HC05X32 described in
Section 2.1.2.1, with the additional features listed below. Table B-5 shows the entry conditions
required for this mode.
If the ï¬rst byte is less than $B0, the bootloader behaves exactly as the MC68HC05X32, i.e. count
byte followed by data stored in $0050 to $00FF. If the count byte is larger than RAM I (176 bytes)
then the code continues to ï¬ll RAM II then RAM III. In this case the count byte is ignored and the
program execution begins at $0051 once the total RAM area is ï¬lled or if no data is received for 5
milliseconds.
The user must take care when using branches or jumps as his code will be relocated in RAM I, II
and III. If the user intends to use the stack in his program, he should send NOPâs to ï¬ll the desired
stack area.
In the RAM bootloader mode, all interrupt vectors are mapped to pseudo-vectors in RAM (see
Table B-6). This allows programmers to use their own service-routine addresses. Each
pseudo-vector is allowed three bytes of space rather than the two bytes for normal vectors,
because an explicit jump (JMP) opcode is needed to cause the desired jump to the users
service-routine address.
Table B-6 Bootstrap vector targets in RAM
Vector targets in RAM
SCI interrupt
Timer overï¬ow
Timer output compare
Timer input capture
IRQ
SWI
$0063
$0060
$005D
$005A
$0057
$0054
B.8.3.1 Jump to start of RAM ($0051)
The Jump to start of RAM program will be executed then the device will be brought out of reset
with PD2 and PD3 at â1â and PD4 at â0â.
15
MOTOROLA
B-20
MC68HC705X32
MC68HC05X16
Rev. 1
|
▷ |