background image

This document is the ownership of EMAC, Inc. Copyright 2003.  Unauthorized duplication or copying of this document is strictly forbidden. 

 

iPac HCS12 Manual.doc 

- 11 -

 

Rev 1.2  -  11/11/03 

 

                      

 

            

 

3.  Software 

 

3.1  Introduction 

 

The iPac HCS12 can be programmed in a variety of languages. There are a number of Free compilers, interpreters, and 
assemblers available allowing the iPac to be programmed in C, Basic or Assembly languages. EMAC has written all the 
drivers for the iPac board in C using Cosmic commercial C compiler/debugger and have ported these drivers to the GNU 
Open Source C compiler. The Cosmic compiler can be purchased from EMAC if the customer is interested in using this 
compiler and the GNU compiler can be downloaded freely from http://www.gnu-m68hc11.org/. 
 
The resident flash on the iPac can be programmed via it's serial bootloader firmware over the RS232 com port or via it's 
BDM port. Software can be written with Cosmics HC12 paged compiler or the Free GNU compiler located at 
http://www.gnu-m68hc11.org/. See the associated Read-Me files for further information on the use of these compilers with 
the iPac. 
 
EMAC provides Driver object files and Demo application source code usable by the free GNU or Cosmic compilers, 
allowing the user to quickly develop custom applications. Programs developed in this manner can download over the 
provided serial bootloader at no extra cost to the user other than the original purchase of the hardware. 
 
Also optionally available is a full function Modbus client software module, that turns the iPac into a fully compliant Modbus 
slave. See the iPac Modbus manual for additional details. 
 
 

3.2  Bootloader 

 
The iPac serial bootloader provides a free, industry standard method for users to program the flash of an IPAC HCS12 as 
opposed to the BDM cable with required software which would be purchased. 
 
All iPacs ship with serial bootloader firmware installed within their f000 protected sector. This bootloader is activated by 
shorting together pins 10 and 11 of the keypad header and then resetting the board. Once Shorted, the bootloader then issues 
a menu through the RS232 port at 115200 baud. From this menu users can change the baud rate, erase the EEPROM, erase 
the FLASH, and program the FLASH using the S record format. 
 
This bootloader is a slightly modified version of Motorola’s serial bootloader. Users wanting more information should 
reference the Motorola serial bootloader app note AN2153. For all programming purposes the iPac bootloader is exactly the 
same except the baud rate defaults to 115200 instead of 9600. 
 
Further documentation and an example Linux program to automatically communicate and download code to the bootloader 
are provided within the GNU iPac project, located on the provided CD and available for download on the EMAC website. 
 

Содержание iPac HCS12

Страница 1: ...iPac HCS12 Users Manual Copyright 2003 EMAC Inc 2390 EMAC Way Carbondale IL 62902 Phone 618 529 4525 Fax 618 457 0110 http www emacinc com...

Страница 2: ...2 1 2 Options 2 1 3 Other Options 3 2 Hardware 3 2 1 Specifications 3 2 2 Jumpers 3 2 3 JTAG BDM 4 2 4 Processor Based Multi Purpose Digital I O 5 2 5 PLD Based General Purpose Digital I O 6 2 6 Analo...

Страница 3: ...ocessor running with a CPU clock speed of about 50 MHz with BDM debugger capability MEMORY 128K of internal Flash in circuit programmable 2K byte EEPROM 8K of RAM and 96 bytes of battery backed RAM DI...

Страница 4: ...ital outputs with 500 ma sink drive capability and a maximum total I O drive of 1500 ma for these 8 lines All Digital I O lines terminate to standard 50 pin I O Rack compatible header connectors ANALO...

Страница 5: ...as the channel number designated next to it 2 2 7 JB2 VIN Config This jumper block selects the iPac s input voltage requirements JB2 configures VIN to be a direct 5V connection or a 9 14V connection S...

Страница 6: ...drive 10 ma and when used as inputs the input voltage should not exceed 5 Vdc Besides being bit configurable I O lines they can also be used as PWMs and PT lines can be used as 16 bit counters For sof...

Страница 7: ...these 8 lines Table 3 PLD BASED DIGITAL I O Connector HDR1 Pin Signal Pin Signal 1 PY7 2 GND 3 PY6 4 GND 5 PY5 6 GND 7 PY4 8 GND 9 PY3 10 GND 11 PY2 12 GND 13 PY1 14 GND 15 PY0 16 GND 17 PX7 18 GND 1...

Страница 8: ...D in addition to the 0 5 Volt inputs can be jumpered using JB1 to 5 20 ma All D A channels provide 0 5 Volt outputs with a drive capability of 5 ma Table 5 ANALOG HDR2 Pin Signal Pin Signal 1 ANI00 2...

Страница 9: ...ND 6 RTS PK0 7 NC CTS PH0 8 NC RTS PK0 9 GND 10 NC 2 8 RS 232 422 485 SERIAL 1 UART The iPac HCS12 provides one jumper JP 3 selectable RS 232 422 485 UART which has software configurable baud rates Bo...

Страница 10: ...lines PM0 PM1 Jumpering JP 2 enables the terminating resistor for end of network termination Table 9 CAN HDR4 Pin Signal DB9 Description 1 NC 2 NC CANL 3 CANL GND 4 CANH 5 GND 6 NC 7 NC CANH 8 NC 9 NC...

Страница 11: ...BUS 3 PB4 DBUS 4 PK7 LCD Backlight PB5 DBUS 5 PB6 DBUS 6 PB7 DBUS 7 2 11 Keypad This header provides an interface for a 4x4 4x5 or 4x6 matrix Keypad These row and column scan lines are directly connec...

Страница 12: ...in this manner can download over the provided serial bootloader at no extra cost to the user other than the original purchase of the hardware Also optionally available is a full function Modbus clien...

Страница 13: ...and HDR3 are selectively used depending on the desired connectivity If HDR3 has the desired connectivity then use the short 50 pin ribbon cable If HDR1 connectivity is desired then the long twisted c...

Страница 14: ...16 HDR2 Pin 13 A D12 Term 6 Pin 7 HDR3 Pin 21 Port 1 5 PT5 Term 2 Pin 17 HDR2 Pin 14 A D13 Term 6 Pin 8 HDR3 Pin 23 Port 1 4 PT4 Term 2 Pin 18 HDR2 Pin 15 A D14 Term 6 Pin 9 Gnd Gnd Term 2 Pin 19 HDR2...

Страница 15: ...n 16 HDR2 Pin 13 A D12 Term 6 Pin 7 HDR1 Pin 21 Port 1 5 X5 Term 2 Pin 17 HDR2 Pin 14 A D13 Term 6 Pin 8 HDR1 Pin 23 Port 1 4 X4 Term 2 Pin 18 HDR2 Pin 15 A D14 Term 6 Pin 9 Gnd Gnd Term 2 Pin 19 HDR2...

Отзывы: