// This program tests the functionality of the // Technological Arts MC9S12C32 board // This program tests the module/docking combination // ************************************************************ // YOU MUST ATTACH THE HARDWARE CONNECTIONS TO RUN THIS TESTER // ************************************************************ // operates only in RUN mode, not BOOT mode because it uses SCI // 1) plug 9S12C32 into testing protoboard/ZIF socket // 2) connect RS232 cable to docking module // 3) place the 9S12C32 in boot mode // 4) apply power to the docking module // 5) hit reset on the docking module // 6) run Metrowerks and download this program (Project->Debug) // 7) quit Metrowerks and start a terminal program e.g., Hyperterm // set COM port to match the cable, and baud rate 115200 bits/sec // 8-bit data, no parity, no hardware flow control // Hardware connections: // PT0-PT4-PE0 via 1k resistors // PT1-PT5-PE1 via 1k resistors // PT2-PT6 via 1k resistor // PT3-PT7 via 1k resistor // PAD0-PAD1-PAD2-PAD3-PAD4-PAD5 via 10k resistors // PAD6-PAD7 via 1k resistor // PM4(MOSI)-PM2(MISO) via 1k resistor // PM3(SS)-PM1 via 1k resistor // PM5(SCLK)-PM0 via 1k resistor // PS1->PS0 connected to RS232 to the PC // This program assumes that if you can download object code then // the flash EEPROM and serial ports are functional. // This example accompanies the books // "Embedded Microcomputer Systems: Real Time Interfacing", Thomson, copyright (c) 2006, // "Introduction to Embedded Microcomputer Systems: // Motorola 6811 and 6812 Simulation", Thomson, copyright (c) 2002, // Jonathan W. Valvano 3/21/06 // You may use, edit, run or distribute these file // as long as the above copyright notices remain The output should look like TechArts 9S12C32 tester 3/21/06 - JWV Type any character, V for verbose, P for pause PORTT test: passed PORTE test: passed Digital PAD test: passed Analog PAD test: passed Digital PORTM test: passed SPI test: passed RTI interrupt test: passed TOF interrupt test: passed ++++++++++++++++++++ + BOARD IS OK + ++++++++++++++++++++