MICROGenMICROGen Hardware Overview
MICROGen I/Os
MICROGen Communications
Simon Clarke
Technical Director
Introduction to MICROGen MG5xxP hardware
• Protocol converter CAN-CAN, CAN-LIN, LIN-RS232, CAN-RS232, etc
• Rapid control prototyping unit (RCP)
• Robust and protected signal conditioned I/O when required
• Better than 9-18V operation (12V variant, 24V variants available)• CPU operates from 6V upwards
• Compensated backlight and LCD not guaranteed below 9V
• Automotive specification - meets instrumentation EMC and temperature range -30oC to +85oC
• Load Dump and transient protection
• I/O abuse resistant
• Two variants of CPU MPC555, MPC565
MICROGen hardware concept
• Small rugged construction
• Automotive specification
• Highly configurable
• Easy access to user switches
• In-built signal conditioning
• Configurable signal conditioning
• Highly expandable within existing box
Introduction to the MG5xxP
Front of unit Rear of unit
Note: USB socket is no longer functional
MICROGen Architecture
• Stack boards are optional connected via the expansion interfaces
• CLOUD boards also available as a stack board
• Two variants of the CPU board now in use
• MPC565 has more communications• +2 LIN, +1CAN
MICROGen’s I/O Capabilities
• Processor I/O routed to Genix and Standard inputs and PWM’s O/P’s• Higher speed MIOS*, MDA*, QADC*, COMMS etc
• Supports high speed PWM outputs
• Supports high speed PWM inputs
• Support high speed ADC measurement
• Supports communications (CAN LIN etc)
• Expansion Rainbow Stack board option supports TPU*s
• ‘The Stack’ - large amount of high speed I/O via plug-in connectors
• Lower speed requirements met by Queued SPI• Display, DAC’s, Relays, Aux O/P’s• Low Speed Expansion (Rainbow etc)
* For information on these sub modules, refer to MPC5xx documentation.
I/O Capabilities – MICROGen extensions
• External Memory (EEPROM, SDCARD) [MG555 also supports limited eFlash and eRAM]
• Display (LCD Display, LEDS, Sounder)
• Configurable I/O (ADC, Dig I/P, Timing I/P)
• DAC outputs (SPI bus)
• PWM Outputs (With optional Genix Output capability)
• Relays (SPI bus)
• Additional CAN 2.0b Ports
• RS232 Interface (RS485 option)
• LIN Interfaces
• Power-down microcontroller
MicroGen Memory
• 36KB Internal RAM (26KB MPC555)
• 1MB Flash (448KB MPC555)
• 32KB EEPROM (4KB MPC555)
• SDCard 4GB Max (optional, not on MG555)
CPU showing SDCard socket
MICROGen Display Panel
• 10 discrete wide angle bright LEDs
• Backlit LCD display
• Up to 16 Characters of text and symbols
• Backlight may be adjusted (Off – DIM – BRIGHT)
• Contrast may be adjusted
• Sounder with adjustable pitch and duration
Built-in signal conditioning
• Voltage levels shifted from micro-controller to 5 or 18V range according to input type
• Input Protection against static, spikes and load dump
• EMC filtering on inputs to improve signal quality
• Outputs all protected against abuse due to shorts and overloads• Protected outputs limit total current
• Protected outputs have temperature trips
• Software supports scaling to make modelling easier
Genix Inputs
• Genix inputs are configurable via software at build and run-time
• The circuitry feeds both analogue, digital and frequency inputs for the highest possible flexibility
• Configuration as follows:
Genix Signal Conditioning Circuitry
* Gain* Pull Up/Down* Input load* Filtering
GND
VT
MICROGenGenix I/PConnector
MPC555QADC MODULE
MPC555MDA
Equivalent “Genix” Input
• Active Pull up /Down via software
• Active gain selection
• Active Loading selection
“Genix” Input Applications
• Hall effect wheel speed sensors (non directional)
• Digital input sensors
• Analogue position sensors
• PWM – analogue measurement (with filter)• Synchronised with PWM if required
• General ignition enabled switch applications
• Current inputs, eg: 4..20mA inputs
• Thermistor sensor inputs
• Thermostat sensors
• Most digital / analogue signals up to 1KHz…and many more!
Digital input sensors
Analogue Sensors
Current sensors
PWM control
Thermistor inputs
Hall effect sensors Fuel sensor inputs
Voltage monitoring
“Standard” Inputs
• 12 Channels grouped as 3 blocks of 4 inputs
• Uses “Standard Inputs” connector
• Used as analogue inputs
• May be used as digital (with hysteresis) via model
• May be configured with pull up or pull down resistors using internal switches.
• Fixed gain (scaling via software possible)
• Fixed anti-aliasing hardware filter (can sample up to 1mS)
• Fixed input load (4K7) pull-up or down via switches.
• Vt (Pull-to) voltage may be Ignition or external in groups of four
• Non-ignition inputs
“Standard” Inputs
• Genix inputs are configurable via jumper-links.
• The circuitry feeds both analogue and digital inputs but analogue is recommended due to the high digital threshold
• Configuration as follows:
Fixed Signal Conditioning Circuitry
* Fixed Gain
* Pull Up/Down* Fixed Input load* Filtering
GND
MICRO GenStandard I/P
Connector
MPC555QADC MODULE
“Standard” Inputs Cont’d
• One of four channels in group shown
• Pull up / Down to RL
“Standard” Inputs applications
• Switch sensor inputs
• Analogue voltage measurement
• Limit switches
• Finger trap / obstacle sensors
• Analogue position sensors
• System voltage diagnostics
• General switch applications
• Thermostat sensors
…and many more!
switches
Sensor inputs
LED controls
Obstacle sensors
Limit switches
Position sensorsFuel sensors
“DAC” outputs (via SPI Bus)
• 8 Channels of 12 bit DAC
• Uses DAC and Aux connector.
• Scaled for 0 to 18V operation.
• Limits at around Vbatt. (perhaps 500mV less) ideal for 5V and 10V signals
• Controlled from the SPI bus at high speed
• Most suitable for relatively slow or DC voltages
• Up to 30KHz (2 points) achievable by output hardware but speed realistically limited by software sample rates – assume 500Hz max square wave.
“DAC” Outputs cont’d
• Basic configuration…
• 8 Channels available on MG5xxP
“DAC” Output applications
• Analogue meter driver
• Throttle body simulation
• Adjustable LED driving
• Analogue voltage driver to external ECUs
• Analogue signal translations
Scaling, Lookup tables, filtering, special functions
• Outputs from model-based analogue converters
• Temperature sensor simulation
• Multi-Resistance keypad simulation …and many more!
Meter drivers
ECU interfacing
Driving LEDs
Temperature simulation
Analogue RCP
Keypad Simulation
Low current “Aux” Outputs
• 8 Outputs up to max SPI sample rate (no faster than 1ms recommended)
• Up to 1A per channel
• Total of 2.4 amps all channels
• Overload and short circuit protected
• Internal switch for bulb drive to “soften” protection
“Aux” output applications
• Warning lamps
• Up to 12W external lamps
• Switch inputs to other ECUs
• External relay coil drivers
• Switched supply for sensor return
…and many more!
Switch simulation
Driving HMI Interior lighting
Warning lampsExternal lamps
Relay drivers
“PWM” Outputs
• 8 Channels
• Main I/O and additional I/O connector
• 5A @ 100% duty cycle
• Lower frequency PWMs
• Overload protected
• Short circuit protected
• Transient protected
• Driven from MIOS sub module
• “Genix” output re-configurability
“PWM” Outputs Cont’d
• General Configuration
• Programmable logic is “Genix” configuration IC software configuration
“PWM” Driver Equivalent circuit
• General configuration
• Take care with inductive current measurement
• Can be configured as• Low side
• High side
• Active High/Low
High Side Driver
Low Side Driver
One of eight PWM outputs on MICROGen MG555E and PInductive clamping arrangement
Ge
nix
Contr
ol C
ircu
itry
Optional Clamp
PCB V3.0
Vt PWM
PWMCOM
O/P
“PWM” Applications
• Solenoid drives
• Active suspension
• Valves
• Clutches
• Motor control
• Full bridge motors control with dynamic braking
• External contactor drives
• Switched / dimmed Lamps (Up to 60W)…and many more!
Solenoids
Clutches Full bridge motors
Motor controlValves
Active suspension
Driver lighting
“Relays” (via SPI Bus)
• 8A continuously rated normally open relays (NO) and 3A rated for changeover contacts (NC)
• Main I/O (NO) and Additional I/O (NC) connectors
• 25A Short term rated (<100ms)
• Change over contacts (NO, NC and COM)
• Protected by thermally re-settable fuses
• Medium speed contacts (<10mS)
• Long life relays (107 operations)
• May be paralleled if care taken with model.
“Relays” Cont’d
• Configuration
“Relays” - Applications
• Fan motor drives
• Driving lamps
• Clutch drives
• Isolated switch applications (30V max)
• Single speed motor bridge drives
• Combinational bridge drive with PWM control (more efficient use of resources than PWM bridge)
…and many more!
Solenoids
FAN Motors Combi-bridge motors
Isolated switchesSingle speed motors
Clutch Drives
Driving lamps
MICROGen Communications Capability
• On processor communications• CAN A, B and C (MG555 does not have C)
• Gateway between any two ports possible
• SC1 and SCI2 (LIN / RS232 / RS485)
• Extended communications facilities• CAN Cx and Dx (CAN 2.0b)
• Gateway to any other ports (within bandwidth limits)
• USB (MG555 only via RS232)
• Externally connected RS232-USB now recommended.
• 2 more LIN channels
Main CAN 2.0b Ports
• Uses COMMS connector
• Drivers on CPU board (COMMS board option)
• Other CAN driver configurations available (to order) supporting most common physical interface ICs
• 120R Termination resistors switchable for Terminating ECU
• Terminating ECU Loading capacitors switchable
• Up to 1Mbit performance (500K Baud recommended for download / CCP port)
• 15 Receive identifiers per port available
Additional CAN 2.0b Ports
• Uses COMMS connector
• Drivers on COMMS board (Speed options available)
• Other CAN driver configurations available (to order) supporting most common physical interface ICs
• 120R Termination resistors switchable for Terminating ECU
• Terminating ECU Loading capacitors switchable
• Up to 1Mbit performance
• Up to 6 Receive identifiers per port available
RS232 Port
• RS232 serial interface driver• Supports MICROGen external touch panel option
• Standard 9-Pin DIN
• Basic download facility via Matlab (Requires UART swap option, generally not recommended)
• For 3rd party diagnostics / Calibration tool support / Model profiling
• Can be used for other equipment, such as PSUs, test equipment etc
• Your custom interfacing requirements
• Embedded target for MPC555 supports single byte or 8/16 byte buffered Tx/Rx
• Up to 115,200 Baud achievable
• MICROGen toolbox supports enhanced fast buffered interrupt driven serial library
LIN Port
• LIN driver circuitry• Standard Local Interconnect Network
• Uses COMMS connector
• Single wire 12 Volt bus
• Message based system
• Master and slave supported
• LIN blockset supplied as part of the Toolbox
• Many devices now coming onto the market
• Software does not support LIN standard 2.x yet
CPU Board
• Few direct external connections (None on MG555)
• Main CPU 56MHz (MG555 40MHz)
• Internal RAM 36K (MG555 26k)
• Internal Flash 1MB (MG555 448K)
• No External RAM (MG555 up to 4M)
• No External FLASH (MG555 up to 4M, shorter life expectancy)
• SDCARD up to 4GB (Not supported by MG555)
• EEPROM 16MB (MG555 4MB)
Additional Facilities
• Power-down management microcontroller can put system into ‘sleep mode’ to reduce current.• Enhanced quiescent current (<30mA vs > 100mA)
• Wake up via ignition
• Wake up via CAN activity
• Wake up via external input
• Wake up via LIN activity
• Watch-dog• The CPU can be monitored via the display CPU
• Audible and visual indication of issues
• Software configurable via Simulink
• 5V Regulated Sensor Supply
Wrap up MICROGen hardware I/O overview
Feedback on session
Thank you.