;Sending "YES" to Hyperterminal (or Tera Terminal) via Serial COM0 (SCI0) on HCS12 MCU Module ;The HCS12 MCU Module comes with one serial port with DB-9 connector ready to go. ;On HCS12 MCU Module, the SCI0 pins of TX and RX of HCS12 are connected to DB-9 COM port ;It is done via a MAX232-compatible chip for converting TTL to RS232. ;They SCI0 signales are accessed via both COM-USB and COM_EN jumpers. They are located close to USB connection. ;Make sure COM-USB and COM_EN jumpers are set. Also Make sure VB jumper for PWR_SEL is set too ;Also make sure the VB jumper for Power_SEL (next to power jack) is set since it is powered via USB cable ;connect the COM port of MCU Module to COM port of x86 PC via a via null serial cable. ;If you do not have COM port on your x86 PC, then you need a USB-COM converter. ;Configure the HyperTerminal (for XP) or Tera Terminal (for Vista or Windows 7. See tutorial on this website). ;//Modfied from Example 10-3 in HCS12 textbook by Mazidi & Causey ;//In codewarrior, Make sure you are in TBDML Mode before downloading ;//Press F7 (to Make), then F5(Debug) to downLOAD,and F5 once more to start the program execution ABSENTRY Entry ; for absolute assembly: mark this as application entry point ;Include derivative-specific definitions INCLUDE 'mc9s12dt256.inc' ;CPU used by Axiom CPU Module board ;code section ORG $4000 ;Flash ROM address Entry: LDS #$4000 ;Stack LDAA #$0 STAA SCI0BDH LDAA #13 STAA SCI0BDL ;4MHz/2=2MHz, 2MHz/16=125,000 and 125,000/9600=13 LDAA #0 STAA SCI0CR1 LDAA #$0C STAA SCI0CR2 OVER LDAA #'Y' JSR TRANS LDAA #'E' JSR TRANS LDAA #'S' JSR TRANS LDAA #' ' JSR TRANS BRA OVER ;---------- TRANS HERE: BRCLR SCI0SR1, $80, HERE STAA SCI0DRL RTS ;------------------- ;************************************************************** ;* Interrupt Vectors * ;************************************************************** ORG $FFFE DC.W Entry ;Reset Vector. CPU wakes here and it is sent to start of the code at $4000