Skip to content

Interchip bus

okemessi edited this page Sep 6, 2020 · 12 revisions

This section defines the communication specifications between the MCU chips.

Hardware

The MCU boards are connected by 8P8C straight RJ45 cables, which are commonly used for LAN connection.

Pin assign

No Color Function
1 O/ RS485+
2 O RS485-
3 G/ Vref+ (To 16-bit MCU DA output)
4 Bl 5V+
5 Bl/ 5V+
6 G Vref- (GND)
7 Br/ GND
8 Br GND

Data Format

  • Speed:
  • 9-bit (w/ ADEN bit)

Calling (16-bit MCUs -> 8-bit MCU)

  • Data format: ADEN + (Hamming Syndrome) + MCU address
  • Message length = 1byte
MCU address Chip ID ADEN D7 D6 D5 D4 D3 D2 D1 D0
1 0 (A3⊕A2⊕A1) (A3⊕A1⊕A0) (A3⊕A2⊕A0) A3 A2 A1 A0
#0 0x00 1 0 0 0 0 0 0 0 0
#1 0x31 1 0 0 1 1 0 0 0 1
#2 0x62 1 0 1 1 0 0 0 1 0
#3 0x53 1 0 1 0 1 0 0 1 1
#4 0x54 1 0 1 0 1 0 1 0 0
#F (16-bit MCU: End-of-Message signal) 0x7F 1 0 1 1 1 1 1 1 1

(A: MCU address (1-5))

LED display (16-bit MCUs -> 8-bit MCU)

  • Data format: Command + LED data (a-g) x 3
  • Message length = 3byte
ADEN D7 D6 D5 D4 D3 D2 D1 D0 ADEN D7 D6 D5 D4 D3 D2 D1 D0 ADEN D7 D6 D5 D4 D3 D2 D1 D0
0 C2 C1 C0 3g 3f 3e 3d 3c 0 3b 3a 2g 2f 2e 2d 2c 2b 0 2a 1g 1f 1e 1d 1c 1b 1a

(C: Command(below) 1-3: Digit (1: right hand) a-g: Segment)

LED Commands

Command meaning
000 Lit (Dynamic lighting @ 5ms /digit)
001 Continuous brink (180ms lit + 180ms off)
010 Short brink ((30ms off + 30ms lit) x 3)

General inputs (8-bit MCUs -> 16-bit MCU)

  • Data format: 5-bit Key no. + 10-bit ADC output (For switches: 1111111111 or 0000000000)
  • Message length = 2byte
ADEN D7 D6 D5 D4 D3 D2 D1 D0 ADEN D7 D6 D5 D4 D3 D2 D1 D0
0 0 K4 K3 K2 K1 K0 AD9 AD8 0 AD7 AD6 AD5 AD4 AD3 AD2 AD1 AD0

(K: Key number AD: ADC output)

End-of-Message signal

The end-of-Message signal should be transmitted after general inputs / LED Commands.

  • Data format: Calling for 16bit-MCU (address: #0xF)

Key No.

(#MIDI Note No.)

Key No
#1 Input (NW) (id=0x31) #2 Input (SW)(id=0x62) #3 Input (SE)(id=0x53) #4 Input (NE)(id=0x54)
0 Shift - - Shift
1 Key1(#17) Key1(#16) Key1(#45) Key1(#43)
2 Key2(#19) Key2(#18) Key2(#47) Key2(#46)
3 Key3(#22) Key3(#20) Key3(#49) Key3(#48)
4 Key4(#24) Key4(#21) Key4(#51) Key4(#50)
5 Key5(#26) Key5(#23) Key5(#52) Key5(#53)
6 Key6(#29) Key6(#25) Key6(#54) Key6(#55)
7 Key7(#31) Key7(#27) Key7(#56) Key7(#58)
8 Key8(#34) Key8(#28) Key8(#57) Key8(#60)
9 Key9(#36) Key9(#30) Key9(#59) Key9(#62)
10 Key10(#38) Key10(#32) Key10(#61) Key10(#65)
11 Key11(#41) Key11(#33) Key11(#63) Key11(#67)
12 Fader1 Key12(#35) Key12(#64) Key12(#70)
13 Fader2 Key13(#37) Key13(#66) Key13(#72)
14 Button1 Key14(#39) Key14(#68) Key14(#74)
15 Button2 Key15(#40) Key15(#69) Exp1
16 Button3 Key16(#42) Key16(#71) Exp2
17 Button4 Key17(#44) Key17(#73) Sw1
18 Fader3 Key18(#75) Sw2
19 Key19(#76)
20
31

Clone this wiki locally