HC12 Musils board: Difference between revisions
Appearance
No edit summary |
(No difference)
|
Revision as of 12:46, 21 June 2006
How to setup the Miroslav Musil's HC12 board
The following section is a "How to" document dealing with HC12 board, developed at the Department of Control Engineering at Czech Technical University in Prague. The work is based on diploma thesis [1] and [2].
How to setup the board
- Disconnect the board from power supply
- Short JP1 and JP2 to 1-2 (Expanded Wide Mode)
- Disconnect JP6 (no auto run)
- Connect I/O module to CON1
- Connect RS232 bridge
- Canon connector to COM1:
- black connector to board connector CON4
- Connect the CAN interface to CAN bus
- Connect board to 12VDC power supply
How to download code from CodeWarrior to HC12
- Setup Codewarior
- Code can be simulated (see Help and included examples)
- Open Musil's VLoader application
- Open generated *.sx file
- Select correct serial port (eg. COM1 or COM2)
- Test HC12 connection (Test button)
- Download file to HC12
- Run application (Run button)
How to run HC12 application stand alone
- Disconnect the board from power supply
- Short JP6
- Connect board to 12VDC power supply
Jumper setup
- JP1, JP2 - uC mode
- Single chip ()
- Expanded Narrow ()
- Expanded Wide (1-2, 1-2)
- JP3 - Include RAM memory to uC address memory space or not
- JP4 - Include FLASH memory to uC address memory space or not
- JP5 - HW memory lock
- JP6, JP7 - FLASH memory bank selector
- Memory bank 0
- Memory bank 1
- Memory bank 2
- Memory bank 3
- JP8 - RAM memory bank 0 and 1 mapping
Connector list
- CON1, CON2 - Data/Adress interface
- pins 5 .. 12 - I/O port PH
- pins 15 .. 22 - I/O port PG
- CON3 - Data/Adress interface
- not important
- CON4 - BDM interface
- not important yet
- CON5 - RS232 programming interface
- 1 - VCC
- 2 - RESET*
- 3 - PS1
- 4 - PS0
- 5 - GND
- 6 - not connected
- CON7 - Power supply 12V
- 1 - 12VDC
- 2 - GND
- 3 - GND
- CON6 - CAN interface
- 1 - CAN V+
- 2 - CANH
- 3 - CAN SHLD
- 4 - CANL
- 5 - CAN GND