Epics@GSI Webhome

HadCon 2 - Documentation

Documentation

Technical Documentation of HadCon2 and its components

  • Summarizing:
    • Microcontroller: ATMEL AT90CAN128
      • I2C
      • CANbus
      • SPI
      • ADCs
      • ...
    • FPGA: Lattice MachX02-1200-HC
    • FTDI USB to serial UART interface
      • USB 2.0 connector
      • Power over USB
    • I2C devices
      • 6 × Single-Channel 1-Wire Master
      • 1 × 8-channel I2C-bus multiplexer with reset
      • 2 × 4-channel 8-Bit DAC - Digital-to-Analog Converter
    • galvanically isolated CAN - High-speed CAN Transceiver
      • optional external power supply
    • 2 × Rotary Code Switches, hexadecimal coding
    • Reset Button for ATMEL
    • 11 × LED's, free programmable

Layout

Microcontroller ATMEL

FPGA

FTDI USB to serial UART interface

USART - Universal Synchronous and Asynchronous serial Receiver and Transmitter

  connects to
USART0 FTDI (USB)
USART1 FPGA

I2C

1 × 8-channel I2C-bus multiplexer with reset

  • pdf PCA9547, local copy
    • ATMEL's SDA/SCLsignals are multiplexed to up-to 8 lines.
      Multiplexer outDeviceSignals
      ATMEL's SDA/SCL SD0/SC0 DAC1: 4-channel DAC (DAC5574) DACOUT1 ... DACOUT3
      DAC2: 4-channel DAC (DAC5574) DACOUT4 ... DACOUT7
      SD1/SC1, SDA1 / SCL1 Connector JDI2C1
      SD2/SC2, SDA2 / SCL2
      SD3/SC3, SDA3 / SCL3
      SD4/SC4, SDA4 / SCL4
      SD5/SC5 2 × Single-Channel 1-Wire Master OWIO0 ... OWIO1
      SD6/SC6 2 × Single-Channel 1-Wire Master OWIO2 ... OWIO3
      SD7/SC7 2 × Single-Channel 1-Wire Master OWIO4 ... OWIO5
    • Addressing:
      DeviceI2C sub addressSignals
      A2A1A0
      U2: 8-channel I2C-bus multiplexer 0 0 0 OWIO0
  • The configuration can be set via I2C.
    • Device Addressing: (from manual)
      0b1110sssd, s:hardware selectable, d:direction R/\\bar(W)
    • Channel Select via Control Register:
    • Table 4. Control register
      Write = channel selection; Read = channel status
      D7 D6 D5 D4 B3 B2 B1 B0 Command
      X X X X 0 X X X no channel selected
      0 0 0 0 1 0 0 0 channel 0 enabled; power-up/reset default state
      X X X X 1 0 0 0 channel 0 enabled
      X X X X 1 0 0 1 channel 1 enabled
      X X X X 1 0 1 0 channel 2 enabled
      X X X X 1 0 1 1 channel 3 enabled
      X X X X 1 1 0 0 channel 4 enabled
      X X X X 1 1 0 1 channel 5 enabled
      X X X X 1 1 1 0 channel 6 enabled
      X X X X 1 1 1 1 channel 7 enabled
  • Connected to ATMEL's pin PB5 (OC1A) [...] pulling the RESET pin LOW resets the I2C -bus state machine causing all the channels to be deselected, except Channel 0 so that the master can regain control of the bus (from the manual].

6 × Single-Channel 1-Wire Master

  • pdf I2C-to-1-Wire® bridge device DS2482-101, local copy
  • Features:
    slew-rate control
    "To optimize 1-Wire waveform generation, the DS2482-101 performs slew-rate control on rising and falling 1-Wire edges and provides additional programmable features to match drive characteristics to the 1-Wire slave environment."
    pullup features
    "Programmable, strong pullup features support 1-Wire power delivery to 1-Wire devices such as EEPROMs and sensors."
  • Addressing:

Device I2C sub address Signals
A1 A0
U3: Single-Channel 1-Wire Master 1 0 OWIO0
U6: Single-Channel 1-Wire Master 1 1 OWIO1
U4: Single-Channel 1-Wire Master 1 0 OWIO2
U7: Single-Channel 1-Wire Master 1 1 OWIO3
U5: Single-Channel 1-Wire Master 1 0 OWIO4
U8: Single-Channel 1-Wire Master 1 1 OWIO5

2 × 4-channel 8-Bit DAC - Digital-to-Analog Converter

Device I2C sub address Signals
A1 A0
UDAC1: 4-channel DAC (DAC5574) 1 0 DACOUT1 ... DACOUT3
UDAC2: 4-channel DAC (DAC5574) 0 0 DACOUT4 ... DACOUT7

galvanically isolated CAN-bus

Can - High-speed Can Transceiver

iCoupler Digital Isolator

decoupling ATMEL's JTAG from ADC input

8-bit noninverting translator

Switches

Rotary Code Switches, hexadecimal coding

SWITCH1 Connector Pins AT90CAN128 via 4.7kΩ   SWITCH2 Connector Pins AT90CAN128 via 4.7kΩ
1 PC0 (A8) 1 PC4 (A12)
2 PC1 (A9) 2 PC5 (A13)
4 PC2 (A10) 4 PC6 (A14)
8 PC3 (A11) 8 PC7 (A15/CLK0)

Reset Button

  • KMR223 ITT micro miniature switch
  • pulls up ATMEL's RESET (pin20) to 3.3V via 10kΩ

Power

Input

Powering via
  • micro USB JUSB1 connector, or
  • jack DCPower

Output

GND Can be found on several Connectors
5,0V JCAN2 pin 4
3,3V JCAN2 pin 6

LEDs

leds.png

  pin color logic
AT90CAN128 PG0 ( WR ) red inverse logic:
0: on 1: off
PG1 ( RD ) yellow
PG2 (ALE) orange
MachX02 PT17D "DONE" red  
PL4A yellow  
PL4B orange  
PL4C yellow  
PL4D orange  
PL5A red  
PL5B yellow  
PL5C orange  

Connectors

JDINOUT1 / JDINOUT2

  • I/O of ATMEL

JDINOUT1 Connector Pins AT90CAN128   JDINOUT2 Connector Pins AT90CAN128
1 PA0 (AD0) 1 PC0 (A8)
2 PA1 (AD1) 2 PC1 (A9)
3 PA2 (AD2) 3 PC2 (A10)
4 PA3 (AD3) 4 PC3 (A11)
5 PA4 (AD4) 5 PC4 (A12)
6 PA5 (AD5) 6 PC5 (A13)
7 PA6 (AD6) 7 PC6 (A14)
8 PA7 (AD7) 8 PC7 (A15/CLK0)
9/10 GND 9/10 GND

JADC1

  • ADC inputs of ATMEL

Connector Pins AT90CAN128 comments
1 PF0 (ADC0)  
2 PF1 (ADC1)
3 PF2 (ADC2)
4 PF3 (ADC3)

5 PF4 (ADC4) overlap with JTAG inputs of ATMEL, can be decoupled by pulling TOSC2 low
6 PF5 (ADC5)
7 PF6 (ADC6)
8 PF7 (ADC7)

9/10 GND

JAtmelMISC1

  • ATMEL miscellaneous I/O, SPI

Connector Pins AT90CAN128 comments
1 PD2 (RXD1/INT2) USART1 RXD to connection to MachX02 or External Interrupt 2 Input
2 PD1 (TXD1/INT3) USART1 TXD to connection to MachX02 or External Interrupt 3 Input
3 PB0 ( SS ) Serial Peripheral Interface – SPI
4 PB1 (SCK)
5 PB2 (MOSI)
6 PB3 (MISO)
7 PE6 (T3/INT6) Timer/Counter3 Clock Input or External Interrupt 6 Input
8 PE7 (ICP3/INT7) Timer/Counter3 Input Capture Trigger or External Interrupt 7 Input

9/10 GND

JTAG1

  • JTAG connector

Connector Pins Signal comments
1 TCK 10kΩ to V3_3
2 GND  
3 TDO ← FPGA / Jumper J1 ← ATMEL
4 V3_3  
5 TMS  
6   not connected
7 V3_3  
8   not connected
9 TDI → ATMEL (→ FPGA)
10 GND  

JCAN1 / JCAN2

  • JCAN1 basic CAN connector

JCAN1 Connector Pins Signal comments
1 CANL ↔ CAN - High-speed Can Transceiver ATA6660 ↔ iCoupler Digital Isolator ↔ ATMEL
2 CANH
3/5 VCAN_INPUT
4/6 GND_CAN

  • JCAN2 provides optional CAN power supply,
    needs a jumper/cable/connection
    • between pin 1, GND_CAN and pins 3/5 for common GND
    • between pin 2, VCAN and pins 4 for 5,0V or
    • between pin 2, VCAN and pins 6 for 3,3V

JCAN2 Connector Pins Signal
1 GND_CAN
2 VCAN
4 V5_0
6 V3_3
3/5 GND_CAN

JMXOIO1 / JMXOIO2

  • LVDS I/O of FPGA MachX02

JMXOIO1 Connector Pins MachX02   JMXOIO2 Connector Pins MachX02
1/2 PT9A/B 1/2 PT15A/B
3/4 PT10A/B 3/4 PT16A/B
5/6 PT11A/B 5/6 PT16C/D
7/8 PT12A/B 7/8 PT17A/B
9/10 GND 9/10 GND

JDI2C1

  • 4 of 8 channel output of ATMEL's single I2C bus multiplexed by an 8-channel I2C multiplexer PCA9547 (q.v. above)

Connector Pins Multiplexer out task comment
1/2 SD1/SC1 SDA1 / SCL1 ATMEL's
multiplexed
SDA/SCL
3/4 SD2/SC2 SDA2 / SCL2
5/6 SD3/SC3 SDA3 / SCL3
7/8 SD4/SC4 SDA4 / SCL4
9/10 GND  

JDAC1

  • Output of the 2 4-channel DAC (DAC5574)

Connector Pins Signal Device Device pin
1 DACOUT0 UDAC1 VoutA
2 DACOUT1 VoutB
3 DACOUT2 VoutC
4 DACOUT3 VoutD
5 DACOUT4 UDAC2 VoutA
6 DACOUT5 VoutB
7 DACOUT6 VoutC
8 DACOUT7 VoutD
9/10 GND

JOWIO1

  • 1-wire connector for 6 channels provided by the 6 I2C driven Single-Channel 1-Wire Master DS2482
Connector Pins Signal
1 OWIO0
2 OWIO1
3 OWIO2
4 OWIO3
5 OWIO4
6 OWIO5
7/8 V3_3
9/10 GND

Bugs, Notes, Remarks, Tweaks & Twiddling

Notes and Remarks

1-wire

  1. When driving 1-wire devices, typically via JOWIO1, make sure to have (at least) 1 pull-up resistor of about 3.3kΩ on the data line of the 1-wire bus connected to the power VDD.
    • Recommended to have it at the master, e.g. at HadCon 's connector JOWIO1,.
    • Possible option for future, directly at the connector, when using one of JDINOUT2'spins as permanent power pin.

    • Since Single-Channel 1-Wire Master DS2482 is used at JOWIO1, this isn't necessary anymore, but keep in mind for other applications.

Tweaks / Bugfix

template 1
description
Therefore Action: i.e.
  1. pin 5 of UFF2 has to be disconnected from its pad and removed
  2. A cable has to be soldered connecting pin 1 of UFF2 to the solder pad of pin 5
template 2
description
Therefore Action: i.e.
  1. pin 5 of UFF2 has to be disconnected from its pad and removed
  2. A cable has to be soldered connecting pin 1 of UFF2 to the solder pad of pin 5


-- PeterZumbruch - 2020-11-09

I Attachment Action Size Date Who Comment
ADuM110.pdfpdf ADuM110.pdf manage 163 K 2011-06-07 - 15:31 PeterZumbruch ADUM1100BR - iCoupler Digital Isolator
ATA6600.pdfpdf ATA6600.pdf manage 282 K 2011-06-07 - 15:24 PeterZumbruch ATA6660 - High-speed Can Transceiver
DAC5574.pdfpdf DAC5574.pdf manage 505 K 2011-06-07 - 14:48 PeterZumbruch QUAD, 8-BIT, LOW-POWER, VOLTAGE OUTPUT, I2C INTERFACE DIGITAL TO ANALOG CONVERTER
DS1035.pdfpdf DS1035.pdf manage 1 MB 2011-06-07 - 13:51 PeterZumbruch MachX02 data sheet
DS2482-100.pdfpdf DS2482-100.pdf manage 353 K 2011-06-07 - 14:21 PeterZumbruch single channel 1-wire master data sheet, maxim
DS2482-101.pdfpdf DS2482-101.pdf manage 345 K 2011-09-21 - 00:01 MichaelTraxler DS2482-101.pdf
DS_FT232R.pdfpdf DS_FT232R.pdf manage 776 K 2011-06-07 - 15:02 PeterZumbruch FTDI USB to serial UART interface
HadCon2_dimensions.pdfpdf HadCon2_dimensions.pdf manage 34 K 2012-12-03 - 16:56 PeterZumbruch Proportions HadCon2
P36SMT.pdfpdf P36SMT.pdf manage 1 MB 2011-06-08 - 13:21 PeterZumbruch Rotary Code Switches, hexadecimal coding
PCA9547.pdfpdf PCA9547.pdf manage 150 K 2011-06-07 - 14:36 PeterZumbruch 8-channel I2C-bus multiplexer with reset
TXB0108RGYR.pdfpdf TXB0108RGYR.pdf manage 294 K 2011-06-08 - 11:57 PeterZumbruch TXB0108RGYR - 8-BIT BIDIRECTIONAL VOLTAGE-LEVEL TRANSLATOR
doc7679.pdfpdf doc7679.pdf manage 5 MB 2011-06-08 - 18:04 PeterZumbruch AT90CAN32/64/128 (428 pages, revision H, updated 8/08), local copy of http://www.atmel.com/dyn/resources/prod_documents/doc7679.pdf
hadcon2-SCM.pdfpdf hadcon2-SCM.pdf manage 60 K 2011-06-07 - 11:52 PeterZumbruch local copy of schematics of hadcon 2
hadcon2_ast.pdfpdf hadcon2_ast.pdf manage 38 K 2011-06-09 - 11:16 PeterZumbruch top view assembly of hadcon2
hadcon2_overlay.pngpng hadcon2_overlay.png manage 2 MB 2019-02-04 - 10:31 PeterZumbruch hadcon2 layout overlay
leds.pngpng leds.png manage 55 K 2016-06-22 - 17:27 PeterZumbruch LEDs
Topic revision: r38 - 2021-03-15, PeterZumbruch
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding GSI Wiki? Send feedback | Legal notice | Privacy Policy (german)