Hardware Details
This section of the manual lists various details of the Adapt9S12D module, such as jumper settings, connector pinouts, etc. Since the pinouts for SCI0 and SCI1 have already been provided, they will not be repeated here.
Jumper Settings
The following table lists all the jumpers on the board, their function, and their default setting.
Jumper | Function | Default Setting |
W1 | CAN1 termination resistor | Jumper On |
W2 | CAN0 termination resistor | Jumper On |
W3 | PS2 controls R pin on RS485 |
Wire In |
W4 | PS3 controls D pin on RS485 |
Wire In |
W5 | TxD0 of S12 to RS232 (U4) |
Wire In |
W6 | RxD0 of S12 from RS232 (U4) |
Wire In |
W7 | Connect RS232 (J4) pin 4 to 6,1 | Open |
W8 | Connect RS232 (J4) pin 8 to 7 | Open |
W9 | Connect RS232 (J4) pin 6 to 1,4 | Open |
W10 | Connect RS232 (J4) pin 1 to 6,4 | Open |
W11 | RS485 termination resistor | Jumper On |
W12 | Power to RS232 level translator | PCB Trace |
W13 | Power from regulator | Wire In |
W14 | Ground is VRL |
Wire In |
W15 | VCC is source of VRH |
Wire In |
W16 | RxCAN0 to RxD (U6) |
PCB Trace |
W17 | TxCAN0 to TxD (U6) |
PCB Trace |
W18 | RxCAN1 to RxD (U7) |
PCB Trace |
W19 | TxCAN1 TxD (U7) |
PCB Trace |
W20 | RxD1 of S12 from RS232 (U4) |
Wire In |
W21 | TxD1 of S12 to RS232 (U4) |
Wire In |
W22 | not implemented | |
W23 | not implemented | |
W24 | not implemented | |
W25 | not implemented |
|
JB1 | ModA select | Jumper On 0 |
ModB select | Jumper On 0 | |
00=Single Chip mode | ||
JB2 | XCLK to Ground | Open |
JB3 | Dbug12 mode select; PAD0/1 | see D-Bug12 docs |
JB4 | XIRQ to Ground | Jumper Off |
SW1 | Reset | |
SW2 | Load/Run to PA6 | RUN = open |
D1 | LED to PP7 | remove R11 to disable |
Input/Output Connectors
The two I/O connectors each have 50 pins. Note that the pin-numbering sequence is sequential (i.e. not alternating, like a ribbon cable connector). The following table lists the signals for each pin. Several pins can have more than one function, depending on how the hardware registers are configured. Furthermore, some interfaces can be moved to different ports. Refer to the Freescale manual for the MC9S12D for details.
H1 Pin | Signal Name | H1 Pin | Signal Name | |
1 | PS4/MISO0 | 50 | GROUND | |
2 | PS5/MOSI0 | 49 | GROUND | |
3 | PS6/SCK0 | 48 | PS0/RXD0 | |
4 | PS7/SS0* | 47 | VCC | |
5 | PS1/TXD0 | 46 | PE1/IRQ* | |
6 | PT7 | 45 | PE0/XIRQ* | |
7 | PT6 | 44 | RESET* | |
8 | PT5 | 43 | PE7/XCLK* | |
9 | PT4 | 42 | PH0/KWH0 | |
10 | PT3 | 41 | PH1/KWH1 | |
11 | PT2 | 40 | PH2/KWH2 | |
12 | PT1 | 39 | PH3/KWH3 | |
13 | PT0 | 38 | PH4/KWH4 | |
14 | PP7/PWM7/SCK2 | 37 | PH5/KWH5 | |
15 | PP6/PWM6/SS2* | 36 | PH6/KWH6 | |
16 | PP5/PWM5/MOSI2 | 35 | PH7/KWH7 | |
17 | PP4/PWM4/MISO2 | 34 | PS2/RXD1 | |
18 | PP3/PWM3/SS1* | 33 | PE4/ECLK | |
19 | PP2/PWM2/SCK1 | 32 | PS3/TXD1 | |
20 | PP1/PWM1/MOSI1 | 31 | VRL | |
21 | PP0/PWM0/MISO1 | 30 | VRH | |
22 | PAD00/AN00 | 29 | PAD04/AN04 | |
23 | PAD01/AN01 | 28 | PAD05/AN05 | |
24 | PAD02/AN02 | 27 | PAD06/AN06 | |
25 | PAD03/AN03 | 26 | PAD07/AN07 |
H2 Pin | Signal Name | H2 Pin | Signal Name | |
1 | PA7 | 50 | VCC |
|
2 | PA6 | 49 | GROUND | |
3 | PA5 | 48 | PE7/XCLK* | |
4 | PA4 | 47 | PK7/ECS* | |
5 | PA3 | 46 | PK5 | |
6 | PA2 | 45 | PK4 | |
7 | PA1 | 44 | PK3 | |
8 | PA0 | 43 | PK2 | |
9 | PB7 | 42 | PK1 | |
10 | PB6 | 41 | PK0 | |
11 | PB5 | 40 | PJ0/KWJ0 | |
12 | PB4 | 39 | PJ7/SCL | |
13 | PB3 | 38 | PJ6/SDA | |
14 | PB2 | 37 | PM7/TxCAN3 | |
15 | PB1 | 36 | PM6/RxCAN3 | |
16 | PB0 | 35 | PM5/TxCAN2 | |
17 | PE2/RW* | 34 | PM4/RxCAN2 | |
18 | PE4/ECLK | 33 | PM3/TxCAN1 | |
19 | PE3/LSTRB* | 32 | PM2/RxCAN1 | |
20 | PE1/IRQ* | 31 | PM1/TxCAN0 | |
21 | PJ1/KWJ1 | 30 | PM0/RxCAN0 | |
22 | PAD08/AN08 | 29 | PAD12/AN12 | |
23 | PAD09/AN09 | 28 | PAD13/AN13 | |
24 | PAD10/AN10 | 27 | PAD14/AN14 | |
25 | PAD11/AN11 | 26 | PAD15/AN15 |
Voltage Regulator Configuration
The Adapt9S12D module has an on board low-dropout voltage regulator (LM2937ET-5) to provide stable power to the electronics. It can be seen mounted on the underside of the card. This takes the filtered DC voltage (6-12 VDC) applied to the J1 two pin connector on the board, and provides a smooth regulated 5 Volts DC to the components. The advantage of the regulator chosen is that it does not need a driving voltage much above the target 5 volts to run. If the board is run as a stand alone unit, the regulator will not require a heat sink to operate either.
However, if you plan to use the on board regulator to power your own circuits in addtion to the module, please be aware that the regulator is designed to only supply a maximum of 500 mA of current, even with a heat sink added to it. At room temperature, the regulator by itself will only be able to dissipate about two watts of heat. The amount of dissipation needed will depend both on the input voltage applied, and the current drawn to feed the electronics. So a power supply at 6 volts will not cause the regulator to heat up as much as a 12 volt supply will. If you need to dissipate more heat than two watts though, you must add a heat sink to the regulator.
If your DC power supply connected to J1 is using a long cord to connect to the module, or is not well regulated DC, or is operating in a low temperature environment, then it is recommended that an additional capacitor be added on the board. You will need an electrolytic capacitor of 10uF at 25 VDC rating, with radial leads about 0.1 inch apart. This will be mounted on the board as C19, which is located directly behind the J1 power connector. Be sure to take standard electrostatic protection when soldering in the part. (i.e. Grounded soldering iron, etc.) The capacitor will have to be oriented on the C19 mounting area so that the positive (+) lead is towards the center of the board. Inserting an electrolytic capacitor backwards is guaranteed to do bad things, so don't do it.
The final power option available is to disable the regulator completely. This is recommended if you need more than 500 mA for your circuits, and will therefore be supplying your own regulated 5 volt DC power to the system. To disable the regulator, cut the wire jumper W13 on the board. W13 is located next to the solder pads that connect to the regulator. This is a permanent change, and breaking the W13 connection will prevent the 5V power you apply via the H1 or H2 headers from flowing into the regulator's output pin should something be connected to J1. Your power supply can feed 5 Volts in at the pins on the H1 or H2 header connectors on either side of the card.
Analog Voltage Reference
The module provides the option of adding a precision voltage reference for measuring analog voltages. You will need to obtain an LM336Z or similar reference device supplied in a TO-92 package. This will be mounted onto the card as U8, which is located next to pin 22 of the H1 header socket. The flat part of the TO-92 package will face towards the center of the board when it is installed. Standard electrostatic precautions are required during installation.
Once this is done, you will be able to program the S12 MCU to measure analog voltages applied to the AD port pins at 10 bit resolution.
Optional Oscillator
The circuit board was designed to accommodate an optional half-size oscillator circuit, which can be used in place of the supplied crystal osciallator circuit. Here is how to implement this option:
Use an Epson SG531P or similar 5-Volt oscillator. The input voltage level for the EXTAL pin of the MCU is 0 - 2.5V, so a simple resistive voltage divider is implemented via R17 and R18 on the board to scale the oscillator's 5V output waveform by 50%. The recommended value for both R17 and R18 is 1K, and the footprint is designed for standard 0805 surface mount parts. Be sure to use ESD-protection guidelines when handling and soldering the circuit board. First, carefully remove the existing crystal (Y1) and associated capacitors (C1 and C2). Next, mount the 1K surface mount resistors. Finally, install the oscillator over top of the resistors. Pin 1 of the oscillator should be inserted in the pin 1 pad on the circuit board (indicated by a square pad surrounding the hole). Solder the pins on the back of the circuit board, using a solder containing a no-clean flux core. Before operating the board, place a shorting plug on JB2 so that the XCLK* pin is pulled low. The MCU will now be clocked by the waveform coming from the external oscillator, via the EXTAL pin.