The HCS12 Microcontroller and Embedded Systems Source Code -- 1st Edition

These code are for your Trainer running with the CodeWarrior only. If you are using DeBug12 Monitor program with the AsmIDE and ImageCarft C click here for the codes.

Chapter 2
Example 2-3 Example 2-5
Example 2-6 Example 2-7
Example 2-8 Example 2-10
Figure 2-9 Figure 2-11
Figure 2-15


Chapter 3
Example 3-1 Example 3-2
Example 3-4 Example 3-5
Example 3-6 Example 3-9
Example 3-14 Example 3-15
Program 3-1 Program 3-2
Figure 3-8


Chapter 4
Example 4-1a Example 4-1b
Example 4-2 Example 4-3a
Example 4-3b Example 4-4
Example 4-5 Example 4-6
Example 4-7 Example 4-8


Chapter 5
Example 5-1 Example 5-2
Example 5-3 Example 5-4
Example 5-5 Example 5-6
Example 5-7 Example 5-8
Example 5-10 Example 5-11
Example 5-12 Example 5-13
Example 5-14 Example 5-15
Example 5-16 Example 5-17
Example 5-18 Example 5-19
Example 5-20 Example 5-21
Example 5-22 Example 5-23
Example 5-24 Example 5-25
Example 5-26 Example 5-27
Example 5-28 Example 5-29
Example 5-30 Example 5-34
Example 5-35 Example 5-36
Example 5-37 Program 5-1
Program 5-2 Program 5-3


Chapter 6
Example 6-1a Example 6-1b
Example 6-1c Example 6-2a
Example 6-2b Example 6-3
Example 6-4 Example 6-5
Example 6-6 Example 6-8
Example 6-9a Example 6-9b
Example 6-9c Example 6-10
Example 6-11 Example 6-12
Example 6-13 Example 6-14
Program 6-1 Program 6-2
Program 6-3 Program 6-4
Program 6-5 Program 6-6 MAIN
Program 6-6 CALCCSB Program 6-6 TESTCSB


Chapter 7
Example 7-1 Example 7-2
Example 7-3 Example 7-4
Example 7-5 Example 7-6
Example 7-7 Example 7-8
Example 7-9 Example 7-10
Example 7-11 Example 7-12
Example 7-13 Example 7-14
Example 7-15 Example 7-16
Example 7-17 Example 7-18
Example 7-20 Example 7-21
Example 7-22 Example 7-23
Example 7-24 Example 7-25
Example 7-26 Example 7-27
Example 7-28 Example 7-29
Example 7-30 Example 7-31
Example 7-32 Example 7-33a
Example 7-33b Example 7-33c
Program 7-1 Program 7-2


Chapter 8
Example 8-2 Example 8-2 in C
Example 8-3 Example 8-3 in C
Program 8-1 Program 8-1 in C
Trainer Test Program Trainer Test Program in C
Figure 8-10


Chapter 9
Example 9-3 Example 9-6
Example 9-7 Example 9-8
Example 9-9 Example 9-10
Example 9-11 Example 9-12
Example 9-13 Example 9-15
Example 9-16 Example 9-17
Example 9-18 Example 9-19
Example 9-20 Example 9-22
Example 9-23 Example 9-24
Example 9-25 Example 9-26
Example 9-27 Example 9-28
Example 9-29 Example 9-30
Example 9-31 Example 9-32
Example 9-33 Example 9-34
Example 9-35 Example 9-36
Example 9-37 Example 9-38
Example 9-39 Example 9-40
Example 9-41 Example 9-42
Example 9-43 Example 9-44
Example 9-45 Example 9-46


Chapter 10
Example 10-2 Example 10-3
Example 10-4 Example 10-5
Example 10-7 Example 10-8
Example 10-9 Example 10-10
Example 10-11 Example 10-12
Program 10-1


Chapter 11
Example 11-1 Example 11-1 in C
Example 11-2 Example 11-2 in C
Example 11-3 Example 11-3 in C
Example 11-5 Example 11-5 in C
Example 11-6 Example 11-6 in C
Example 11-7 Example 11-7 in C
Example 11-2 Example 11-2 in C
Example 11-9 Example 11-9 in C
Example 11-11 Example 11-1 in C
Example 11-12 Example 11-12 in C
Example 11-18 Example 11-18 in C
Program 11-1 Program 11-1 in C
Figure 11-3


Chapter 12
Program 12-1 Program 12-1 in C
Program 12-2 Program 12-2 in C
Program 12-3 Program 12-3 in C
Program 12-4 Program 12-4 in C


Chapter 13
Program 13-1 Program 13-1b
Program 13-1 in C Program 13-2
Program 13-2 in C Program 13-3
Program 13-3 in C Program 13-4
Program 13-4 in C Program 13-5
Program 13-5 in C Program 13-6
Program 13-6 in C


Chapter 14
Program 14-1 Program 14-2
Program 14-3 Program 14-4
Program 14-5 Program 14-6 in C
Program 14-7 in C Program 14-8
Program 14-9 Program 14-10 in C
Program 14-11 in C


Chapter 15
Example 15-1 Example 15-3
Example 15-4 Program 15-1


Chapter 16
Program 16-1 Program 16-1 in C
Program 16-2 Example 16-3
Example 16-3 in C Example 16-4
Example 16-4 in C


Chapter 17
Example 17-1 Example 17-2
Example 17-3 Example 17-4
Example 17-5 Example 17-6
Example 17-11 Example 17-12
Example 17-13 Example 17-14
Example 17-15 Example 17-16
Example 17-17 Example 17-18