RE: Memory mapping on MPC556
"Randall Young" <[email protected]> Wed, 22 Nov 2006 14:58:28 -0800
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers |
|---|---|
| Message-ID | <[email protected]> |
> When I reset the CPU in debug mode, the PC is set to 0xFF?00100. > As internal EPROM of the CPU starts at 0x00000000, I am wondering why > this happens. As I recall, both the address the PC is set to (aka the vector table base location), and the address the internal EPROM starts at, can be configured by the Reset Control Word (RCW). Thus the chip can start either from internal EPROM or external (EP)ROM. If you are seeing the reset vector fetched from 0xFF?00100, then somehow the IP bit in the RCW is being set. > Why are the LOWER 16 address bits compared? Because Motorola numbers bits backwards. Bit 0 is actually the most significant bit in 99% of their documentation. (Note however that there is at least one section in the MPC565/566 manual where bit 0 is the LSB.) Randall Young Senior Software Engineer NavCom Technology, Inc. A John Deere Company CONFIDENTIALITY. This electronic mail and any files transmitted with it may contain information proprietary to NavCom Technology, Inc., or one of its affiliates, and are intended solely for the use of the individual or entity to whom they are addressed, shall be maintained in confidence and not disclosed to third parties without the written consent of the sender. If you are not the intended recipient or the person responsible for delivering the electronic mail to the intended recipient, be advised that you have received this electronic mail in error and that any use, dissemination, forwarding, printing, or copying of this electronic mail is strictly prohibited. If you have received this electronic mail in error, please immediately notify the sender by return mail.