Viewfinder

From Nikon Hacker
Jump to: navigation, search

D5100 Hardware

Viewfinder is connected to IO controller of D5100 (TMP19A44FEXBG) and is accessed by Firmware A using a SPI bus on serial port HSC2 (shared with a flash eeprom chip).

The LCD display elements seen within the D5100 viewfinder

The optical viewfinder includes several red LED focus points superimposed on the image, as well as an LCD display along the base. This status display is used by the default firmware to indicate aperture, shutter speed, exposure compensation, and other settings.

The LCD's display is fed from the buffer at 0xFFFF6FA4. The buffer is thirteen bytes wide. Byte 0 does not appear to be used.

Byte Bit Element Function
Byte 0 00-FF Unused?
Byte 1 01 4 First digit, top segment
02 4 First digit, upper right segment
04 4 First digit, lower right segment
08 4 First digit, bottom segment
10 4 First digit, upper left segment
20 4 First digit, middle segment
40 4 First digit, lower right segment
80 10 Flexible program indicator (P*)
Byte 2 01 4 Second digit, top segment
02 4 Second digit, upper right segment
04 4 Second digit, lower right segment
08 4 Second digit, bottom segment
10 4 Second digit, upper left segment
20 4 Second digit, middle segment
40 4 Second digit, lower right segment
80 3 AE lock indicator
Byte 3 01 4 Third digit, top segment
02 4 Third digit, upper right segment
04 4 Third digit, lower right segment
08 4 Third digit, bottom segment
10 4 Third digit, upper left segment
20 4 third digit, middle segment
40 4 Third digit, lower right segment
80 4 Decimal point
Byte 4 01 5 First digit, upper left segment
02 5 First digit, middle segment
04 5 First digit, lower left segment
08 5 Aperture indicator (F)
10 4 Double quote (")
20 4 Fourth digit, upper left segment
40 4 Fourth digit, middle, lower left, lower right and bottom segments
80 2 Focus indicator
Byte 5 01 5 Second digit, upper left segment
02 5 Second digit, middle segment
04 5 Second digit, lower left segment
08 5 Decimal point
10 5 First digit, top segment
20 4 First digit, upper right segment
40 4 First digit, lower right segment
80 4 First digit, bottom segment
Byte 6 01 11 Minus on left, plus on right
02 11 First left bar
04 11 Left arrow
08 14 ISO indicator
10 5 Second digit, top segment
20 4 Second digit, upper right segment
40 4 Second digit, lower right segment
80 4 Second digit, bottom segment
Byte 7 01 11 Left side, second dot from left
02 11 Left side, third dot from left
04 11 Left side, fourth dot from left
08 11 Left side, sixth bar from left
10 11 Left side, second bar from left
20 11 Left side, third bar from left
40 11 Left side, fourth bar from left
80 11 Left side, fifth bar from left
Byte 8 01 11 Right side, second dot from right
02 11 Right side, third dot from right
04 11 Right side, fourth dot from right
08 11 Right side, sixth bar from right
10 11 Plus on left, minus on right
20 11 Outermost dots on left and right, middle bar
40 11 0 in middle
80 7 Bracketing indicator
Byte 9 01 9 Flash-ready indicator
02 11 Right side, first bar from right
04 11 Right arrow
08 16 Warning indicator (?)
10 11 Right side, second bar from right
20 11 Right side, third bar from right
40 11 Right side, fourth bar from right
80 11 Right side, fifth bar from right
Byte A 01 15 First digit, upper left segment
02 15 First digit, middle
04 15 First digit, lower left segment
08 13 Minus compensation triangle
10 6 Battery indicator
20 12 Flash compensation indicator
40 7 White balance
80 13 Plus compensation triangle
Byte B 01 15 Second digit, upper left segment
02 15 Second digit, middle
04 15 Second digit, lower left segment
08 Unused?
10 15 First digit, top segment
20 15 First digit, upper right segment
40 15 First digit, lower right segment
80 15 First digit, bottom segment
Byte C 01 15 Third digit, upper left segment
02 15 Third digit, middle
04 15 Third digit, lower left segment
08 15 Decimal point
10 15 Second digit, top segment
20 15 Second digit, upper right segment
40 15 Second digit, lower right segment
80 15 Second digit, bottom segment
Byte D 01 8 Thousand indicator (K)
02 15 Fourth digit, middle, lower left, lower right and bottom segments
04 15 Opening and closing brackets
08 14 AUTO indicator
10 15 Third digit, top segment
20 15 Third digit, upper right segment
40 15 Third digit, lower right segment
80 15 Third digit, bottom segment

D90 Hardware

The Viewfinder LCD along the base is connected to a 6533 LCD Driver and receives data from microcontroller via SPI.

The LCD display elements seen within the D90 viewfinder
The segments letters for each digit

The only address sent is 0x70, followed by 16 bytes. This means all the 6533's memory is filled each time from scratch.
As specified in datasheet (see Table 1, page 8), the bytes sent correspond to :

C1 C0 S1 S0 COM Driver SEG Driver
D7 D6 D5 D4 D3 D2 D1 D0
0 0 0 0 COM1 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 SEG8
0 1 SEG9 SEG10 SEG11 SEG12 SEG13 SEG14 SEG15 SEG16
1 0 SEG17 SEG18 SEG19 SEG20 SEG21 SEG22 SEG23 SEG24
1 1 SEG25 SEG26 SEG27 SEG28 SEG29 SEG30 SEG31 SEG32
0 1 0 0 COM2 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 SEG8
0 1 SEG9 SEG10 SEG11 SEG12 SEG13 SEG14 SEG15 SEG16
1 0 SEG17 SEG18 SEG19 SEG20 SEG21 SEG22 SEG23 SEG24
1 1 SEG25 SEG26 SEG27 SEG28 SEG29 SEG30 SEG31 SEG32
1 0 0 0 COM3 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 SEG8
0 1 SEG9 SEG10 SEG11 SEG12 SEG13 SEG14 SEG15 SEG16
1 0 SEG17 SEG18 SEG19 SEG20 SEG21 SEG22 SEG23 SEG24
1 1 SEG25 SEG26 SEG27 SEG28 SEG29 SEG30 SEG31 SEG32
1 1 0 0 COM4 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 SEG8
0 1 SEG9 SEG10 SEG11 SEG12 SEG13 SEG14 SEG15 SEG16
1 0 SEG17 SEG18 SEG19 SEG20 SEG21 SEG22 SEG23 SEG24
1 1 SEG25 SEG26 SEG27 SEG28 SEG29 SEG30 SEG31 SEG32

Here are the function of each element number[1] :

# Function
9 Focus indicator
10 Flash value (FV) lock indicator
11 Shutter speed
12 Aperture (f-number)
13 Battery indicator
14 WB bracketing Indicator
15 Bracketing indicator
16 ISO sensitivity indicator
17 Number of exposures remaining / Number of shots remaining before memory buffer fills / White balance recording indicator / Exposure compensation value / Flash compensation value / Capture mode indicator / ISO sensitivity value
18 "K" (appears when memory remains for over 1000 frames)
19 Flash ready indicator
20 AE lock indicator
21 Electronic analog exposure display / Exposure compensation
22 Flash compensation indicator
23 Exposure compensation indicator
24 Auto ISO indicator
25 ISO sensitivity compensation indicator

The following array shows the effect of setting a bit in each COM/SEG combination.

COM1 COM2 COM3 COM4
# Details # Details # Details # Details
SEG1 18 - 25 - 17 Opening and closing brackets 24 -
SEG2 17 3rd digit, top segment (a) 17 3rd digit, upper right segment (b) 17 3rd digit, lower right segment (c) 17 3rd digit, bottom segment (d)
SEG3 17 3rd digit, upper left segment (f) 17 3rd digit, middle segment (g) 17 3rd digit, lower left segment (e) 17 Decimal point
SEG4 17 2nd digit, top segment (a) 17 2nd digit, upper right segment (b) 17 2nd digit, lower right segment (c) 17 2nd digit, bottom segment (d)
SEG5 17 2nd digit, upper left segment (f) 17 2nd digit, middle segment (g) 17 2nd digit, lower left segment (e) 19 -
SEG6 17 1st digit, top segment (a) 17 1st digit, upper right segment (b) 17 1st digit, lower right segment (c) 17 1st digit, bottom segment (d)
SEG7 17 1st digit, upper left segment (f) 17 1st digit, middle segment (g) 17 1st digit, lower left segment (e) 23 Minus compensation triangle
SEG8 13 - 22 - 14 - 23 Plus compensation triangle
SEG9 21 Plus on left, minus on right 21 1st dot from left and 1st dot from right 21 0 in middle 21 Middle bar
SEG10 21 Right arrow 21 Right side, 1st bar from right 15 - 16 -
SEG11 21 Right side, 2nd bar from right 21 Right side, 3rd bar from right 21 Right side, 4th bar from right 21 Right side, 5th bar from right
SEG12 21 Right side, 6th bar from right 21 Left and right side, 2nd dot from center 21 Left and right side, 1st and 3rd dot from center 21 Left side, 6th bar from left
SEG13 21 Left side, 2nd bar from left 21 Left side, 3rd bar from left 21 Left side, 4th bar from left 21 Left side, 5th bar from left
SEG14 21 Minus on left, plus on right 21 Left side, 1st bar from left 21 Left arrow - Nothing
SEG15 12 2nd digit, top segment (a) 12 2nd digit, upper right segment (b) 12 2nd digit, lower right segment (c) 12 2nd digit, bottom segment (d)
SEG16 12 2nd digit, upper left segment (f) 12 2nd digit, middle segment (g) 12 2nd digit, lower left segment (e) 12 Decimal point
SEG17 12 1st digit, top segment (a) 12 1st digit, upper right segment (b) 12 1st digit, lower right segment (c) 12 1st digit, bottom segment (d)
SEG18 12 1st digit, upper left segment (f) 12 1st digit, middle segment (g) 12 1st digit, lower left segment (e) 9 -
SEG19 11 Double quote (") 11 4th digit, upper left segment (f) 11 4th digit, middle (g), lower left (e), lower right (c) and bottom (d) segments 12 Aperture indicator (F)
SEG20 11 3rd digit, top segment (a) 11 3rd digit, upper right segment (b) 11 3rd digit, lower right segment (c) 11 3rd digit, bottom segment (d)
SEG21 11 3rd digit, upper left segment (f) 11 3rd digit, middle segment (g) 11 3rd digit, lower left segment (e) 11 Decimal point
SEG22 11 2nd digit, top segment (a) 11 2nd digit, upper right segment (b) 11 2nd digit, lower right segment (c) 11 2nd digit, bottom segment (d)
SEG23 11 2nd digit, upper left segment (f) 11 2nd digit, middle segment (g) 11 2nd digit, lower left segment (e) 10 -
SEG24 11 1st digit, top segment (a) 11 1st digit, upper right segment (b) 11 1st digit, lower right segment (c) 11 1st digit, bottom segment (d)
SEG25 11 1st digit, upper left segment (f) 11 1st digit, middle segment (g) 11 1st digit, lower left segment (e) 20 -
SEG26 - - - - - - - -
SEG27 - - - - - - - -
SEG28 - - - - - - - -
SEG29 - - - - - - - -
SEG30 - - - - - - - -
SEG32 - - - - - - - -

Messages

Viewfinder can display some special messages. Meaning is represented in following table:

Picture Text Position Meaning
Vf cec.png CEC Appears if connected HDMI device support HDMI-CEC
Vf cha.png CHA Bad SDHC/CF card or formating (???)
Vf pc.png PC USB cable is connected to PC and Camera Control Pro Software is connected
Vf ref.png rEF Camera is set to take a dust reference photo
Vf bulb.png buLb Blinks - setting bulb shutter is not allowed in this mode
Vf prn.png Prn
Vf ce.png CE
Vf hp.png HP
Vf pre.png PrE Camera is set to take a reference white balance photo
Vf up.png UP
Vf gd.png Gd Preset white balance successful
Vf no.png no Preset white balance was not successfull
Vf gooo.png Gooo
Vf dl.png dL
Vf job.png Job
Vf ful.png Ful Memory card is full or not possible to generate picture file number
Vf bsy.png bSY No picture can be made, because cam is busy saving data from buffer
Vf 3f.png 3F Bracketing mode: 3 f-stop spread (?)
Vf cd.png Cd
Vf 3d.png 3d Autofocus 3D mode active
Vf hot.png Hot
Vf busb.png buSb
Vf fulb.png Fulb
Vf rff.png rFF
Vf adl.png Adl Active D-Lighting
Vf act.png Act
Vf rls.png rLS
Vf pg.png PG
Vf ab.png Ab