|
|
![]() |
|
|
|
|
|
|
|
Frequently Asked Questions |
The red LED is attached to PortA, bit 6. It simply lights up whenever there is a logic high on that pin. If the red LED lights up or blinks, it means that the MCU must be writing to the PortA data register. If your program doesn't write to PortA, then it would imply that your program is not running (something else is). If the MCU doesn't know where your program is, it won't execute it. The mechanism that the 68HC11 uses to define where your program starts is called the Reset Vector. This is a pre-defined two-byte address location ($FFFE and $FFFF). The MCU automatically dumps the 16-bit contents of these two addresses into its program counter following a reset event. It's up to you to make sure the starting address of your program is in these memory locations. In assembler, this is as simple as:Q4. Why does the red LED blink randomly when I press Reset after loading my program?ORG $FFFE
FDB STARTwhere START is the label you put on the first line of code in your program (note that you could call it anything you like). Refer to the simple examples in the Starter Package manual, and the demo program on the HC11 disk for more details.