background image

    

 2000

 2813 Industrial Ln.  

  Garland, TX  75041  

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

email:  [email protected]   

   web:  http://www.axman.com

xiom

anufacturing

CME-12D60

 

Development Board for Motorola

68HC912D60 Microcontroller

Summary of Contents for CME-12D60

Page 1: ... 2000 2813 Industrial Ln Garland TX 75041 972 926 9303 FAX 972 926 6063 email Gary axman com web http www axman com xiom anufacturing CME 12D60 Development Board for Motorola 68HC912D60 Microcontroller ...

Page 2: ...ication 7 Programming Flash EEPROM 8 MEMORY MAP 9 CONFIG SWITCH 10 JUMPERS 11 MON SEL JUMPER 11 PG_PULL PH_PULL JUMPERS 11 JP1 Oscillator Select JUMPER 11 PORTS AND CONNECTORS 12 LCD_PORT 12 KEYPAD 12 MCU_PORT 13 CAN_PORT 13 COM1 14 COM2 14 ANALOG PORT 14 BUS_PORT 15 BDM IN 15 TROUBLESHOOTING 16 TABLES 18 TABLE 1 LCD Command Codes 18 TABLE 2 LCD Character Codes 18 TABLE 3 Mon12 Monitor Commands 19...

Page 3: ...is board Board Startup Follow these steps to connect and power on the board This assumes you re using the provided AxIDE utility installed in the previous section or a similar communications terminal program on your PC If you re using a different terminal program than the one provided set it s parameters to 9600 baud N 8 1 1 Make certain the CONFIG SWITCH is set as follows 1 2 3 4 5 6 7 8 ON ON ON...

Page 4: ...Software Development Software development on the CME12B32 can be performed using either the Mon12 monitor utility installed in EPROM sockets U6 U7 a third party debugger NoICE CodeWarrior etc or a Background Debug Module BDM connected to the BDM IN connector Any of these tools can be used to assist in creating and debugging your program stored in RAM see Memory Map After satisfactory operation run...

Page 5: ...elopment board s use of Memory and Addressing when writing source code so you can locate your code at valid addresses For example when in debug mode you should put your program CODE in External RAM In assembly language you do this with ORG statements in your source code Any lines following an ORG statement will begin at that ORG location which is the first number following the word ORG for example...

Page 6: ...You must select your board from the pull down menu first or it may not build correctly DO NOT use long path names 8 characters The free assembler is an old DOS tool that does not recognize them If there are no errors in your source code 2 output files will be created HELLO S19 a Motorola S Record file that can be programmed into memory HELLO LST a common listing file which shows the relationship b...

Page 7: ... prompt again Type GO 1000 This tells Mon12 to execute the program at address 1000 which is the start of our test program 5 If everything is working properly you should see the message Hello World echoed back to your terminal screen Press RESET to return to the monitor 6 If you do not get this message see the TROUBLESHOOTING section in this manual You can modify the hello program to display other ...

Page 8: ...wered on org fffe reset vector fdb START 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 a file name enter the new HELLO S19 file 5 Set the CONFIG SWITCH positions 1 5 all ON The red VPP light should come on 6 Press the RESET button on the board before clicking OK When prompted to Erase...

Page 9: ...DF CS4 BC0 BCF CS3 BB0 BBF CS2 BA0 BAF CS1 B90 B9F CS0 B80 B8F 9FF 800 Internal Registers see note 1 below See 68HC912D60 Technical Reference Manual 7FF 000 Internal RAM On Chip 1 The Internal Register base address is relocated from 000 to 800 on startup by the debug utilities Mon12 and NoICE To preserve this memory map you must also do this in your software when booting from flash To do this load...

Page 10: ...PE6 3 EXT External Memory enable 1 PORT A B Ext Bus 4 MON Monitor Memory enable 2 N A 5 VPP Flash VPP voltage enable N A 6 RXD0 COM1 Serial Port RXD0 input enable PS0 RXD0 7 RXD1 COM2 Serial Port RXD1 input enable PS3 RXD1 8 CAN Port RX enable PCAN0 1 Enables memory bus operation for access to board memory Expanded bus must be on for proper operation 2 Enables monitor EPROM s in memory map at 0xC0...

Page 11: ...d Disabling of the internal PLL and external clock oscillator X1 Default configuration is XCLK position The PLL is disabled in this position and the oscillator is provided by X1 external clock PLL Enables PLL crystal oscillator see below XCLK Disables PLL crystal oscillator R1 should be installed default To enable PLL clock do the following 1 Remove R1 on the bottom of the board to isolate the X1 ...

Page 12: ...ister BF1 LCD Vee is supplied by U13 and is adjusted by the CONTRAST Potentiometer adjustable resistor See the file KLCD12D6 ASM for an example program using this LCD connector J3 LCD3 2 1 LCD2 4 3 LCD4 Additional lines can be used as enables for larger panels and are mapped as LCD2 BF4 BF5 LCD4 BFC BFD LCD3 BF8 BF9 KEYPAD 1 PH0 2 PH1 3 PH2 4 PH3 5 PH4 6 PH5 7 PH6 8 PH7 The KEYPAD connector is a p...

Page 13: ...e Chip Mode XIRQ XIRQ interrupt input VFP Programming voltage 12v when CONFIG switch position 5 is on LSTRB LSTRB PE3 output indicates 8 bit bus access Should be enabled in software for bus use PP0 PP7 Port P I O or PWM port PT0 PT7 Port T I O or Timer port PS0 PS7 Port S I O or Serial Port lines PG0 PG7 Port G I O or Key wakeup pins PH0 PH7 Port H I O or Key wakeup pins Also used by the KEYPAD Po...

Page 14: ...ignaling levels This connector supports a standard IDC ribbon cable to DB9 socket Pins 1 2 and 7 are connected for default handshake standards Pins 4 and 6 are connected for default handshake standards ANALOG PORT The ANALOG port provides access to the Port AD0 and Port AD1 Analog to Digital input lines of the HC912D60 as follows PAD0 1 2 PAD10 PAD1 3 4 PAD11 PAD2 5 6 PAD12 PAD3 7 8 PAD13 PAD4 9 1...

Page 15: ... Enable signal Active Low Valid with ECLK high and R W low IRQ HC12 IRQ PE1 Interrupt Input RW HC12 Read Write PE2 control signal E HC12 ECLK PE4 bus clock signal Stretch should be enabled in software P SEL Selects Peripheral area register following space 8 bits wide J2 RESET HC12 active low RESET signal A14 1 2 A15 MODA PE5 3 4 MODB PE6 GND 5 6 5V BDM IN The BDM IN port is a 6 pin header compatib...

Page 16: ...that your communications port is working by substituting a known good serial device or by doing a loop back diagnostic 2 Verify the jumpers on the board and the CONFIG switch settings are correct 3 Verify the power source You should measure approximately 9 volts between the GND and 9V test point pads on the board 4 If no voltage is found verify the wall plug connections to 115VAC outlet and the po...

Page 17: ...G switch changes the memory map If debugging under Mon12 make sure you re not over writing 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 Make sure the CONFIG SWITCH is set for the proper mode CONFIG switch 3 must be ON to access the external bus LCD display etc even if exec...

Page 18: ... 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 7F 40us Display Ram Addres...

Page 19: ...odify Memory Bytes CR Examine Modify next location or Examine Modify same location or Examine Modify previous location Exit Modify Memory command MOVE 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 1 Mon12 uses internal RAM space from 600 700 DO NOT use this ...

Reviews: