AN2104 Freescale Semiconductor, AN2104 Datasheet
AN2104
Related parts for AN2104
AN2104 Summary of contents
Page 1
... CPU is executing user code, with no degradation in real-time operation. This is an example of the BDM being enabled but not active. © Freescale Semiconductor, Inc., 2004. All rights reserved. © Motorola, Inc., 2001 For More Information On This Product, Go to: www.freescale.com Order this document by AN2104/D AN2104 ...
Page 2
... The host PC is connected to the POD with a DB-25 2. HOST PC BDM INTERFACE INTERFACE POD PARALLEL CABLE12 FROM P&E CABLE MICROCOMPUTER SYSTEMS Figure 1. BDM System For More Information On This Product, Go to: www.freescale.com TARGET BOARD BDM 6-PIN BDM CONNECTOR CABLE SEE FIGURE 2 AN2104 ...
Page 3
... The control logic watches the bus for any free bus cycles that it can use to execute the hardware command. By using the free bus cycles, the CPU is not disturbed. If, however, a free cycle is not found within a specified time, it will use a bus cycle, which temporarily freezes the CPU. AN2104 For More Information On This Product, BKGD 1 ...
Page 4
... Write to memory with BDM out of map (may steal cycles 16-bit data in if external access) must be aligned access. For More Information On This Product, Go to: www.freescale.com Description AN2104 ...
Page 5
... READ_X READ_Y READ_SP WRITE_NEXT WRITE_PC WRITE_D WRITE_X WRITE_Y WRITE_SP TRACE1 TAGGO AN2104 For More Information On This Product, Table 2. When the BDM is active, it has control of the Table 2. BDM Firmware Commands Opcode (Hex) Data 62 16-bit data out 63 16-bit data out Read program counter ...
Page 6
... BDM cannot be made active (hardware commands still allowed BDM can be made active to allow firmware commands. For More Information On This Product, Go to: www.freescale.com Mnemonic INSTRUCTION STATUS SHIFTER ADDRESS CCRSAV for a description of the bits TRACE Bit AN2104 ...
Page 7
... Here is a brief description of what transpires when going into the active of Active BDM BDM: • • AN2104 For More Information On This Product BDM not active 1 = BDM active and waiting for serial commands 0 = Tagging not enabled or BDM active 1 = Tagging active (BDM cannot process serial commands while tagging is active ...
Page 8
... Normal modes — Provide protection for control registers from being accidentally modified Special modes — Allow access to these control registers for system development and special testing also shows that the states of the BKGD, MODA, and MODB pins For More Information On This Product, Go to: www.freescale.com Table 4) for the M68HC12 AN2104 ...
Page 9
... Next, coming up in the special mode, the part can change to the normal mode, but must write to the SMODN bit in this register two times, as the first write is ignored. AN2104 For More Information On This Product, Table 4. Mode Selection Mode ...
Page 10
... The limitations to this are listed in Figure 5. When in normal operating mode, special modes cannot be accessed. For More Information On This Product, Go to: www.freescale.com Bit 0 IVIS EBSWAI 0 EME Table 4). AN2104 ...
Page 11
... Internal FLASH using P&E Microcomputer Systems’ Cable12 POD and software (see Figure evaluation board. AN2104 For More Information On This Product, Background Debug Mode Application Examples When in normal operating mode, another normal operating mode can be accessed, but this can be done only once. ...
Page 12
... Do not leave the programming voltage on the FLASH. FLASH of the MC68HC912B32 using the BDM. Select Verify Module to verify that this programming is correct. The code also can be viewed by selecting Show Module at address $8000. For More Information On This Product, Go to: www.freescale.com Figure 6. Figure 7. position AN2104 ...
Page 13
... Freescale Semiconductor, Inc. AN2104 For More Information On This Product, Background Debug Mode Application Examples Figure 6. P&E’s WinIDE Window Go to: www.freescale.com Application Note 13 ...
Page 14
... Connect the 6-pin BDM cable from the POD to the evaluation 14 Figure board making sure that pin 1 of the cable is connected to pin 1 of the POD and target. On the evaluation board, make sure that For More Information On This Product, Go to: www.freescale.com 1). The target board for this AN2104 ...
Page 15
... Breakpoints also can be set by selecting the line of code chosen for a breakpoint, clicking the right mouse button, and selecting Toggle Breakpoint at Cursor. AN2104 For More Information On This Product, Background Debug Mode Application Examples jumpers W3 and W4 are in the EVB positions and jumper the V position ...
Page 16
... Motorola’s M68HC12 Family of MCUs. By providing the appropriate connections for the BDM in the user’s application, and using a BDM interface POD with software easy to debug code, erase, or program the FLASH in the target application. 16 Figure 8. P&E’s Debugger Window For More Information On This Product, Go to: www.freescale.com AN2104 ...
Page 17
... Freescale Semiconductor, Inc. Technical Resources • • • • • • AN2104 For More Information On This Product, Software and Hardware Engineering: Motorola M68HC12 by Fredrick M. and James M. Sibigtroth CPU12 Reference Manual, document order number CPU12RM/AD M68HC12B Family Advance Information, Motorola document order number M68HC12B/D ...
Page 18
... Freescale Semiconductor, Inc. Application Note 18 For More Information On This Product, Go to: www.freescale.com AN2104 ...
Page 19
... Freescale Semiconductor, Inc. AN2104 For More Information On This Product, Go to: www.freescale.com Application Note Technical Resources 19 ...
Page 20
... Freescale Semiconductor product could create a situation where personal injury or death may occur. Should Buyer ...