background image

Freescale Semiconductor

Document Number: KT33912UG

User’s Guide

Rev. 2.0, 10/2009

© Freescale Semiconductor, Inc., 2007 - 2009. All rights reserved.

KIT33912EVME System Basis Chip 
with LIN Tranceiver Setup Instructions

Summary of Contents for KIT33912EVME

Page 1: ...eescale Semiconductor Document Number KT33912UG User s Guide Rev 2 0 10 2009 Freescale Semiconductor Inc 2007 2009 All rights reserved KIT33912EVME System Basis Chip with LIN Tranceiver Setup Instructions ...

Page 2: ...tc Should this evaluation kit not meet the specifications indicated in the kit it may be returned within 30 days from the date of delivery and will be replaced by a new kit Freescale reserves the right to make changes without further notice to any products herein Freescale makes no warranty representation or guarantee regarding the suitability of its products for any particular purpose nor does Fr...

Page 3: ...SBCLIN Evaluation Module 7 2 4 Start Graphic User Interface 8 Chapter 3 FreeMASTER Control Page 3 1 Overview 10 3 2 Setup Instruction 10 3 3 Description of the Control GUI 10 3 4 SPI Registers Control Status Array 11 3 5 Pulse Width Modulation 12 3 6 Watchdog Service 12 3 7 Wake up Sources 13 Chapter 4 LIN Master Control Page 4 1 Overview 14 4 2 Setup Instruction 14 4 3 Description of the Control ...

Page 4: ...3 7 2 2 ReadVariable Function Example 24 Chapter 8 ActiveX LIN Master Object 8 1 Overview 25 8 2 Quick Reference 25 Chapter 9 Interconnect Board Description 9 1 Overview 27 9 2 J1 RS232 27 9 3 J201 Background Debug Mode BDM 27 9 4 J3 External Control 28 9 5 CON1 LIN Bus Connector 28 9 6 CON2 HSx LSx Outputs 29 9 7 CON3 Lx Inputs 29 9 8 CON4 The MCU Input Output Pins 29 9 9 CON5 ISENSE Inputs 30 Ch...

Page 5: ...igure 3 2 Control Status Array 12 Figure 3 3 Pulse Width Modulation Control Panel 12 Figure 3 4 Watchdog Control Buttons 13 Figure 3 5 Wake up Configuration Panel 13 Figure 4 1 Description of Graphical User Interface LIN Control 14 Figure 4 2 LIN Port Control Panel 15 Figure 5 1 GUI for SBCLIN User Helpful Control 16 Figure 5 2 Status Register Tab Panel 17 Figure 5 3 Control Register Tab Panel 18 ...

Page 6: ...KIT33912EVME System Basis Chip with LIN Tranceiver Setup Instructions Rev 2 0 LOF 2 Freescale Semiconductor ...

Page 7: ...ion 17 Table 9 1 J1 Serial Peripheral Interface Terminal Definitions 27 Table 9 2 J201 Program Debug Terminal Definition 27 Table 9 3 External Control Pin Description 28 Table 9 4 LIN Connector Pin Out 28 Table 9 5 CON2 Output Connector Pin Definitions 29 Table 9 6 CON3 Output Input Terminal Definitions 29 Table 9 7 MCU Pins not used in the Application 29 Table 9 8 ISENSE Connector Pin Out 30 Tabl...

Page 8: ...KIT33912EVME System Basis Chip with LIN Tranceiver Setup Instructions Rev 2 0 LOT 2 Freescale Semiconductor ...

Page 9: ...ections and are shown in text as all upper case characters the external supply voltage VBAT Terminal Values Terminal values are the currents to from a terminal and are shown as upper and subscripted text In Stop Mode the voltage regulator still supplies the MCU with VDD Active High Signals Logic One No special symbol attached to the signal name A0 SCLK Active Low Signals Logic Zero Noted with an o...

Page 10: ...Basis Chip with LIN Transceiver DOCUMENTATION MC33912 Data Sheet MC9S08DZ60 Data Sheet FREEMASTERFS pdf Fact Sheet FreeMASTER for Embedded Applications User Manual SOFTWARE GUI GUI FreeMASTER application FMASTERSW exe FreeMASTER Software Project abs HCS08X embedded software HARDWARE KIT33912EVME PCB Serial Cable 1 3 System Requirements To successfully create the demonstration system each of the fo...

Page 11: ...dule Kit Quick Guide This kit contains all the components to control SBCLIN devices SBCLIN Printed Circuit Board FreeMASTER based GUI to control the devices Figure 1 1 shows the SBCLIN Evaluation Module Kit quick guide NOTE This Evaluation Module Kit isn t appointed for EMC tests of MC33912 device KIT33912EVME Figure 1 1 SBCLIN Evaluation Module Kit ...

Page 12: ...IN Evaluation Module 2 4 Start Graphic User Interface 2 2 Install GUI on Host PC To set up the GUI on your PC you have to install the FreeMASTER software if not already installed If it is installed skip items 1 to 3 1 Start the FMASTERSW exe install shield wizard The file can be downloaded from http www freescale com Results The License Agreement box is displayed and you are prompted for further a...

Page 13: ... Setup Instructions Rev 2 0 Freescale Semiconductor 5 Figure 2 2 FreeMASTER Installation 3 Follow the instructions given by the Installation Wizard 4 Install the GUI Start the GUIxx exe installation file Results The Installation Wizard will prompt you for further actions ...

Page 14: ...Setup Instructions KIT33912EVME System Basis Chip with LIN Tranceiver Setup Instructions Rev 2 0 6 Freescale Semiconductor Figure 2 3 Graphical User Interface Installation Wizard ...

Page 15: ...in the MC33912 device c Place Jumper JP7 VDD to supply the MCU from an Internal Voltage Regulator 3 For communication from the MCU to a personal computer through FreeMASTER protocol place Jumpers JP202 TxD and JP203 RxD in positions 1 2 which connect the MCU and the TTL RS232 converter 4 Configure the KIT33912EVME to an on board control by ensuring that Jumpers JP10 JP16 and JP19 JP20 are in posit...

Page 16: ... time use on the host PC the GUI Initializing Required Components screen appears On subsequent use on the host PC the GUI Welcome screen appears NOTE Screen resolution 1280x1024 is recommended Starting GUI from a network folder is not recommended 2 Click the RETRY button to initialize all the required components Figure 2 5 Graphical User Interface Initialization Screen 3 Default serial port settin...

Page 17: ...ASTER control page see Chapter 3 FreeMASTER Control Page Choose the LIN Master button to open the control page with LIN communication see Chapter 4 LIN Master Control Page Choose the User Helpful button to open the page with a user friendly environment and FreeMASTER communication see Chapter 5 User Helpful Control Page Figure 2 6 Graphical User Interface Welcome Screen ...

Page 18: ...ower on place the communication jumpers JP202 TxD JP203 RxD in position 1 2 short the supply jumpers JP7 VDD JP8 VS2 and JP9 VS1 and than place the control jumpers JP10 JP16 JP19 and JP20 in position 1 2 To disable the LIN physical interface MCZ33661EF device place jumper JP204 3 3 Description of the Control GUI The following paragraphs describe the indicators and the controls on the GUI An indica...

Page 19: ...d to the actual units 8 Wake up Sources This section provides three wake up sources and helps the user to correctly set up one of the wake up events 9 Variable Watch Pane The Variable Watch Pane displays the variables assigned to the watch It displays the current variable values and allows the user to change them if enabled in the variable definition See FMASTXXX pdf document available at http www...

Page 20: ... watchdog When the pin is directly connected to the ground place JP1 JP2 this terminal disables the watchdog function When this terminal is left open move JP2 the watchdog period is fixed to its default value of 150ms If the on board resistor is connected place JP2 move JP1 to this terminal then it configures the watchdog period to 16ms If the on board watchdog resistor is connected and the GUI is...

Page 21: ...ong wake up settings and places the mouse over the low power buttons the invalid cell will be red and a help hint will be displayed in the Last Error Message panel A forced wake up requires the High Side Switch outputs disabled and a predetermined low power period This period is selectable in a drop down menu On first use the period value must be changed to a setting corresponding to bits in the T...

Page 22: ...VS2 and JP9 VS1 then place the control jumpers JP10 JP16 JP19 and JP20 in position 1 2 For LIN communication place jumpers JP202 TxD JP203 RxD in position 2 3 Route the LIN signal to the MC33912 device by placing jumper JP205 and connect the MC33912 to the MCU through the SCI jumpers JP17 JP18 in position 1 2 To enable the LIN physical interface MCZ33661EF device move jumper JP204 4 3 Description ...

Page 23: ...g the STOP button see Figure 4 2 Transmission speed is set by default to 9600 Baud Figure 4 2 LIN Port Control Panel If an order is carried out to enter one of the low power modes LIN Master communication will be suspended This is due to one simple reason which is the possibility of a wake up from a low power mode by a LIN dominant wake up event If this wake up event occurs the slave node sends to...

Page 24: ...S1 and then place the control jumpers JP10 JP16 JP19 and JP20 in position 1 2 To disable the LIN physical interface MCZ33661EF device place jumper JP204 5 3 Description of User Helpful Page The User Helpful control page has some of the same panels as the FreeMASTER or LIN Master control pages such as Graph Pulse Width Modulation Wake up Sources SPI Watchdog Last Error Message and System Status Reg...

Page 25: ...is detected then the user is warned and the control page reverts to the default state and the reset flag is displayed in the third white area 7 Graph The Graph indicator shows analogue voltage from the ADOUT0 and ADOUT1 outputs The blue line indicates the voltage on the current sense input in mV and the blue label calculates the current through the resistor connected to these inputs A second line ...

Page 26: ...updated and shown at the bottom of the panel This value is transferred to the device by clicking the SEND button The SEQ button saves the actual panel configuration an exact byte representation of the register to a sequence variable more in Section 5 6 Sequence Pane The Timing Control Register allows the configuration of the cyclic sensing periods together with the CYSX8 bit in the Configuration R...

Page 27: ...of the sequence is done by clicking the RUN button Throughout the flow of control the number of the actual command is displayed in the pane and the state of the control and status elements are changed or updated The RUN button changes itself to a STOP button with which the execution of the sequence can be halted A further click will continue interrupted sequence For checking the created sequence t...

Page 28: ...sponses Requests are always sent in master request frames and responses are always sent in slave response frames The Master request frame has a fixed identifier 60 0x3C and a fixed size 8 bytes The Slave response frame has a fixed identifier 61 0x3D and a fixed size 8 bytes The meaning of each byte in a PDU is defined in the following sections 6 2 1 Generic Control PDU Structure The Generic Contro...

Page 29: ...equest M0 SPI request M1 0xFF M2 0xFF M3 0xFF M4 0xFF M5 0xFF Response S0 SPI response S1 0xFF S2 0xFF S3 0xFF S4 0xFF S5 0xFF PWM PWM commands transmit data to the pulse width modulation registers in the MCU To adjust the pulse width modulation requires the frequency duty cycle and range of the MCU clock prescaler Values of the frequency and duty cycle are separated into two bytes This command us...

Page 30: ...ommands bytes M0 M1 M2 are used The message structure is described as follows Request M0 stop watchdog window clear M1 accept reset M2 accept interrupt M3 0xFF M4 0xFF M5 0xFF Response No response TOOLS_TO_PC TOOLS_TO_PC is a response LIN frame with the watchdog interrupt and reset information For these commands bytes S0 S1 S2 are used The message structure is described as follows Request M0 0xFF ...

Page 31: ...C04F176153 The registry name is MCB PCM 1 version independent name is MCB PCM FreeMASTER functions can be called from any HTML code via the FreeMASTER ActiveX control Insert the FreeMASTER ActiveX control into your HTML code by the Class ID number see the example below and set the dimensions height and width to zero to make the object invisible object name PCMaster width 0 height 0 classid clsid 4...

Page 32: ...24 Freescale Semiconductor 7 2 2 ReadVariable Function Example read FreeMASTER variable display error box in case of error on success value is returned function read_fmaster_variable varname var value var succ pcm ReadVariable varname if succ value pcm LastVariable_vValue else set_fmaster_err return value ...

Page 33: ...ring RS232 port to open Optional default COM1 vBaudRate numeric Communication speed Optional default 9600 void ClosePort Close RS232 port bool SendMessage vIdent vData vDataLen Send LIN message and return true if succeeded vIdent numeric Message ID byte vData string array Data to send passed either as a VBScript array or a semicolon delimited string vDataLen numeric Length of data to be sent Optio...

Page 34: ...ate vSet numeric if vSet is nonzero true then set RTS to otherwise bool SetDTR vSet Sets DTR to a given state vSet numeric if vSet is nonzero true then set DTR to otherwise property array LastRecvData This property retrieves the VBString array of the last data received by the last RecvMessage call property numeric LastRecvDataLength This property retrieves the number of bytes received by the last ...

Page 35: ...ns for the J1 connector Table 9 1 J1 Serial Peripheral Interface Terminal Definitions Terminal Terminal Name Definition 1 Not used Carrier detect 2 TXD Transmit data from MCU to PC 3 RXD Received data from PC to MCU 4 Not used Data terminal ready 5 GND Ground 6 Not used Data set ready Carrier detect 7 NC No connect 8 NC No connect 9 NC No connect 9 3 J201 Background Debug Mode BDM The MCU contains...

Page 36: ...SCLK SPI Serial Peripheral Interface clock input 6 CS SPI Serial Peripheral Interface control chip select input terminal 7 PGND Power ground 8 PWMIN High Sides and Low Sides Pulse Width Modulation Input 9 RST Reset I O terminal This is bidirectional allowing a reset of the entire system It is driven low when any internal reset source is asserted 10 IRQ Interrupt output terminal indicating wake up ...

Page 37: ... ohm series resistors are used between the connector and the device pins L1 input is directly linked to the connector Refer to Table 9 6 Table 9 6 CON3 Output Input Terminal Definitions Terminal Terminal Name Definition 1 PGND Power ground 2 L1 L1 terminal is a wake up capable digital input In addition can be sensed as analogue via the analogue multiplexer 3 L2 L2 terminal is a wake up capable dig...

Page 38: ...und 2 ISENSEH Current sense differential input 3 PGND Power ground 4 ISENSEL Current sense differential input 3 PTD1 Not used in application 4 PTD3 Not used in application 5 PTD4 Not used in application 6 PTD5 Not used in application 7 NC No connected 8 PTB0 Not used in application 9 PTB1 Not used in application 10 NC Not connected 11 PTA0 Not used in application 12 PTA3 Not used in application 13...

Page 39: ... is connected to current sensing resistor and with shorted JP4 to ISENSEH input Floating HS1 is not connected JP7 1 2 position Voltage Regulator output VDD is connected to supply MCU Floating VDD output is not connected to supply MCU JP8 1 2 position Supply MC33912 High Side Switches Module from VBAT Floating High Side Switches Module is not powered JP9 1 2 position Supply MC33912 from VBAT Floati...

Page 40: ... position Interrupt output IRQ is connected from MC33912 to MCU interrupt pin 2 3 position Interrupt output IRQ is connected from MC33912 to J3 header Floating IRQ is not connected JP20 1 2 position Reset output RST is connected from MC33912 to MCU reset pin 2 3 position Reset output RST is connected from MC33912 to J3 header Floating RST is not connected JP21 1 2 position LED diode D2 is connecte...

Page 41: ...terface is enabled JP205 1 2 position LIN signal from LIN physical interface MCZ33661EF is connected to device MC33912 and connector CON1 Floating LIN signal from LIN physical interface MCZ33661EF is not connected JP206 1 2 position LIN pull up resistor and diode are connected Master Mode Floating LIN pull up resistor and diode are disconnected Slave Mode Table 10 1 Jumper Connection Name Descript...

Page 42: ...ide KIT33912EVME System Basis Chip with LIN Tranceiver Setup Instructions Rev 2 0 34 Freescale Semiconductor Appendices Appendix A Quick Guide CON2 CON5 CON2 CON2 CON4 J1 J201 J3 J2 J4 J5 Figure A 1 Quick Guide ...

Page 43: ...Schematics KIT33912EVME System Basis Chip with LIN Tranceiver Setup Instructions Rev 2 0 Freescale Semiconductor 35 Appendix B Schematics Figure B 1 Schematics System Basis Chip ...

Page 44: ...Schematics KIT33912EVME System Basis Chip with LIN Tranceiver Setup Instructions Rev 2 0 36 Freescale Semiconductor Figure B 2 Schematics MCU ...

Page 45: ...Schematics KIT33912EVME System Basis Chip with LIN Tranceiver Setup Instructions Rev 2 0 Freescale Semiconductor 37 Figure B 3 Schematics Loads ...

Page 46: ...lacement and Layout KIT33912EVME System Basis Chip with LIN Tranceiver Setup Instructions Rev 2 0 38 Freescale Semiconductor Appendix C Placement and Layout Figure C 1 Placement Top Figure C 2 Copper Top ...

Page 47: ...Placement and Layout KIT33912EVME System Basis Chip with LIN Tranceiver Setup Instructions Rev 2 0 Freescale Semiconductor 39 Figure C 3 Copper Bottom mirrored ...

Page 48: ...C204 C205 1UF 0 1μF Ceramic SMD 0805 50V 9 1 C5 10UF Aluminium Electrolytic Capacitor 10μF 16V EEE1CA100SR 10 1 C207 22UF 0 22μF Ceramic SMD 0805 50V 11 1 C208 100UF Aluminium Electrolytic Capacitor 100μF 6 3V EEEFKJ101UAR 12 1 C7 100PF Not Populated 13 1 D1 STPS340U Schottky Diode STPS340U 14 7 D2 D3 D4 D101 D102 D103 D104 LXT0805GW LED SMD 0805 Green 15 2 D5 D6 S2A Diode DO 214AA S2A 16 2 D7 D8 ...

Page 49: ...4 5 6K Resistor SMD 5 6K 0805 34 4 R105 R106 R107 R108 330 OHM Metal Oxide Resistor 330R 2W 35 2 R110 R112 2 2K Resistor SMD 2 2k 0805 36 1 R201 1K Resistor SMD 1k 0805 37 1 R202 4 7K Resistor SMD 4 7k 0805 38 1 R111 10K Cermet potentiometer 3362P 1 103LF 39 4 S1 S101 S102 S201 KSC221J Switch KSC221JLFS 40 14 TP1 TP2 TP3 TP4 TP5 TP6 TP7 TP8 TP9 TP10 TP11 TP12 TP13 TP101 Terminal Not populated 41 1...

Page 50: ...n in this document Freescale Semiconductor reserves the right to make changes without further notice to any products herein Freescale Semiconductor makes no warranty representation or guarantee regarding the suitability of its products for any particular purpose nor does Freescale Semiconductor assume any liability arising out of the application or use of any product or circuit and specifically di...

Reviews: