Axiom CML12S-DP256 User Manual Download Page 1

    

 2000

 2813 Industrial Ln.  

  Garland, TX  75041  

  (972) 926-9303   FAX (972) 926-6063

email:  [email protected]   

   web:  http://www.axman.com

xiom

anufacturing

CML12S-DP256

 Development Board for Motorola MC9S12DP256

Summary of Contents for CML12S-DP256

Page 1: ... 2000 2813 Industrial Ln Garland TX 75041 972 926 9303 FAX 972 926 6063 email Sales axman com web http www axman com xiom anufacturing CML12S DP256 Development Board for Motorola MC9S12DP256 ...

Page 2: ...rupt Support 10 NOICE OPERATION 11 MON12 and NOICE Memory Map 11 BDM OPERATION 12 AUTOSTART 12 OPTIONS AND JUMPERS 13 MEM_EN 13 ECS 13 MODC 14 AUTO OFF spare 14 MODE 14 OSC_SEL 14 ROM_OFF 14 JP1 and JP2 15 CUT AWAY OPTIONS 1 6 15 PORTS AND CONNECTORS 15 MCU_PORT 15 ANALOG PORT 16 BUS_PORT 17 TB1 and J1 Power 15 KEYPAD PORT H 17 P_COM1 and P_COM2 17 CAN PORT 18 P1 P4 HCS12 Header Ring 19 LCD_PORT 1...

Page 3: ...r by applying a BDM cable with supporting host software The MON12 monitor provides an effective debug method for assembly level software but has limitations in C code developments For C C code development it is recommended that source code or symbolic debug capability be provided in the debugging environment The NOICE monitor or BDM interface with supporting software tools should be applied for C ...

Page 4: ... provided set it s parameters to 9600 baud N 8 1 1 Set the CML12Sxxx board Option jumpers to default positions MEM EN IN ECS IN JP1 IN NOAUTO SPARE IN MODC Out JP2 do not care see COM Ports 2 Connect one end of the supplied 9 pin serial cable to an available serial COM port on your PC Connect the other end of the cable to the P COM port on the CML12Sxxx board 3 Apply power to the board by plugging...

Page 5: ...ration running under a debugger your program can be written to Internal Flash Memory using the included programming utilities The Mon12 firmware in the MCU flash provides the interrupt vectors in Ram memory and an Autostart feature to launch your application Your program may then run automatically whenever the board is powered on or RESET is applied TUTORIAL This section was written to help you ge...

Page 6: ...stalled in the flash is not required The BDM software tools may have the capability to erase and program the flash memory If this is the case you may develop code in the external ram memory or internal flash without applying the monitor resources The MON12 S record is provided on the support CD to program into the flash if desired The BDM will allow locating programs in memory and applying resourc...

Page 7: ...tion check the web site for updates Running your application After creating a Motorola S Record file you can upload it to the development board for a test run The provided example HELLO ASM was created to run from external RAM so you can use the MON12 Monitor to test it without programming it into Flash If you haven t done so already verify that the CML12Sxxx board is connected and operating prope...

Page 8: ...opy of HELLO ASM then use a text editor to modify it 2 Remove the comment character before one of the following lines to initialize the stack pointer which is necessary when running outside of a debugger LDS 3F80 initialize stack location 3 Re Assemble HELLO ASM as described in the Assembling Source Code section 4 Select Program from the AxIDE menu and follow the message prompts When prompted for ...

Page 9: ...tart 0xFEC 0xFEF Internal EEprom Monitor application provides for redirection of interrupt vectors through the ram based interrupt table initialization of SCI0 serial port initialization of HCS12 flash and EEprom programming clock rates initialization of 8 MHz E clock from 4Mhz reference crystal and detection of auto start enabled operation The HCS12 memory map is fixed under monitor operation The...

Page 10: ...VE StartAddress EndAddress DestAddress Move a block of memory RD Display all CPU registers RM Modify CPU Register Contents STOPAT Address Trace until address T count Trace count instructions MON12 Interrupt Support All interrupt services under MON12 are provided through the ram vector table see Table 2 Each location in the table is initialized to a value of 0000 to cause the trap of an unscheduled...

Page 11: ...tor Table 3E00 3F8B Internal Ram Monitor reserved ram memory Stacks and variables 1000 3DFF Internal Ram User Internal Ram memory 0400 0FEB Internal EEprom User EEprom memory Monitor reserves FEC FEF for Autostart user should avoid FF0 FFF memory use 0000 03FF HCS12 Registers Monitor or user access to control registers NOICE OPERATION NOICE is a development software provided by www NOICEdebugger c...

Page 12: ...ion installed will force Special Single chip Mode on Reset 2 The BDM initialization of the HC12 should set the correct operating MODE Expanded Wide for memory access The EME EMK LSTRB RW ROMEN and Stretch configuration bits should be set for proper external memory access operation The Axiom support CD contains sample set up macros for the AX BDM12 3 While using the BDM the user has full control ov...

Page 13: ...ry mapping first Make sure the AUTO OFF Spare Option jumper is idle or open If the application applies the XIRQ interrupt the interrupt must be idle high level during any Reset sequence Hardware may need to be applied if XIRQ signal level cannot be guaranteed high during Reset 4 To perform a test Autostart and apply the external ram for program space the following precaution should be observed Exp...

Page 14: ... the only nonvolatile program memory provided on the board single Chip Mode is default All other Modes can be enabled under software control from this mode of operation The MODE option jumper may be installed by the user by cutting the hard trace and applying 2 header pins with a shunt jumper With the shunt jumper removed the Reset mode will then be Normal Expanded Wide Note mask set 1K79X and ear...

Page 15: ...2 Port S6 SCK signal to the LCD_PORT shift register 4 Cut Away HCS12 Oscillator Crystal ground if another crystal is applied by the user this connection may require a capacitor to be installed Refer to the HCS12 CGM module information 5 Cut Away HCS12 Port M0 CAN_RXD0 signal to the CAN port transceiver 6 Cut Away CAN Port Transceiver enable connection to ground This connection enables the CAN Port...

Page 16: ...ternate connections on the development board PB0 7 D0 7 provide address data on the expanded HCS12 PK0 5 XA14 XA19 provide high order paged address lines on the expanded HCS12 PM0 1 CAN RXD0 TXD0 CAN channel 0 to CAN Port transceiver PS0 1 COM Port RXD0 TXD0 PS2 3 JP3 Port RXD1 TXD2 PS4 7 SPI Port provides LCD_PORT serial interface ANALOG PORT PAD0 AN0 1 2 PAD8 AN8 PAD1 AN1 3 4 PAD9 AN9 PAD2 AN2 5...

Page 17: ...high and R W low RESET HCS12 active low RESET signal KEYPAD PORT H The KEYPAD PORT H connector provides interface for the HCS12 port H or applying a keypad such as the Axiom Mfg HC KP When applied as a KEYPAD connector the interface is for a passive 4 x 4 matrix 16 key keypad device 1 PH0 2 PH1 3 PH2 4 PH3 5 PH4 6 PH5 7 PH6 8 PH7 This interface is implemented as a software key scan Pins PH0 3 are ...

Page 18: ...CS12 CAN channel 0 The port has a CAN Transceiver Philips PCA82C250 capable of up to 1M Baud data rate The user may isolate the HCS12 CAN channel 0 from the transceiver by CUT AWAY option 5 CAN Port Connections 1 GND 2 CAN H 3 CAN L 4 5V The CAN Port connector provides an interface to the MSCAN12 channel 0 in the HCS12 microcontroller CAN BUS TRANSMIT ENABLE The CAN port transceiver transmit drive...

Page 19: ...connected to the HCS12 SPI 0 port and applies a serial shift register to convert the data to parallel interface for LCD input This is required due to the fast timing characteristics of the HCS12 data bus and the slow timing of the standard LCD Modules Example LCD Port assembly language driver software is provided on the support CD to demonstrate typical LCD module operation using this technique Th...

Page 20: ...n header compatible with the Motorola Background Debug Mode BDM Pod This allows the connection of a background debugger for software development programming and debugging in real time without using HC12 I O resources BGND 1 2 GND 3 4 RESET 5 6 5V See the HC12 Technical Reference Manual for complete documentation of the BDM A Background Debug Module is available from the manufacturer TEST POINTS Th...

Page 21: ... performing a BULK command or disable the Autostart by following the procedure in the Autostart chapter 4 Verify the power source You should measure a minimum of 9 volts between the GND and VIN connections on the TB1 power connector with the standard power supply provided 5 If no voltage is found verify the wall plug connections to 115VAC outlet and the power connector 6 Verify the logic power sou...

Page 22: ...y exists See the Memory Map if you re not sure The MEM_EN and ECS options change the memory map If debugging under Mon12 make sure you re not over writing internal RAM used by it If you re running in a multi tasking environment such as Windows close all programs in the background to be certain no serial conflict occurs Code Execution Under Mon12 breakpoints may not be acknowledged if you use the C...

Page 23: ...r and Cursor Blink off 08 40us Display on Cursor and Cursor Blink off 0C 40us Display and Cursor on Cursor Blink off 0E 40us Display Cursor and Cursor Blink on 0F 40us Cursor Display Shift nondestructive move Cursor shift left 10 40us Cursor shift right 14 40us Display shift left 18 40us Display shift right 1C 40us Display Function default 2x40 size 3C 40us Character Generator Ram Address set 40 7...

Page 24: ...ERR 3FAE FFAE C1WU 3FB0 FFB0 C0TX 3FB2 FFB2 C0RX 3FB4 FFB4 C0ERR 3FB6 FFB6 C0WU 3FB8 FFB8 FEPRG 3FBA FFBA EEPRG 3FBC FFBC SPI2 3FBE FFBE SPI1 3FC0 FFC0 I2C 3FC2 FFC2 BDLC 3FC4 FFC4 CRGC 3FC6 FFC6 CRGL 3FC8 FFC8 PACBO 3FCA FFCA MCNT 3FCC FFCC PTHI 3FCE FFCE PTJI 3FD0 FFD0 ADC1 3FD2 FFD2 ADC0 3FD4 FFD4 SCI1 3FD6 FFD6 SCI0 3FD8 FFD8 SPI0 3FDA FFDA PACAI 3FDC FFDC PACAO 3FDE FFDE TOF 3FE0 FFE0 TC7 3FE...

Reviews: