FEASA LED ANALYSER
ICT VERSION
Synchronous Serial Mode
Set the Sensitivity Factor (setfactor)
The Sensitivity of the Analyser can be adjusted to allow longer exposure times. This is useful
when testing dim LED's. There are 15 adjustment steps numbered 1 – 15.
Number 1 has the shortest exposure and number 15 will have the longest. The Factory default
value is 1.
Once programmed the Sensitivity Factor remains unchanged even when power is removed.
ONLY RUN THIS TEST DURING INITIAL DEBUG. WHEN SATISIFIED WITH THE
RESULTS COMMENT OUT THIS TEST AS THERE IS A LIMIT TO THE NUMBER OF TIMES
ONE CAN WRITE TO THE ON BOARD FLASH BEFORE YOU MAY CORRUPT THE DEVICE.
Step-by Step Sequence to Set the Sensitivity Factor
1.
Initialize the board
- Set Addr0/LA_Select = 0
- Set Clock_in = 0
- Set Data_in to 0
2.
Clear the Comms Buffer
- Set Data_In to 1
- Set Clock_in to 1 and 0 repeat [8] times to clock in each bit
3. Wait 100u
4.
Send the Set Sensitivity Factor (0x40) command
- Set Data_In to 01000000 (0x40)
- Set Clock_in to 1 and 0 repeat [8] times to clock in each bit
5.
Send the Sensitivity Factor (0X01 to 0X0F) (Default 0x01)
- Set Data_In to [a number in the range 0x01-0x0F]
- Set Clock_in to 1 and 0 repeat [8] times to clock in each bit
- RyBy_bar output goes high
6. Wait 50ms
- RyBy_bar output goes low
7.
Read back the Sensitivity Factor set in Step 5
- Set Clock_in to 1 and 0 repeat [8] times to clock out each bit
- Data_Out = [[a number in the range 0x01-0x0F]
- The value read back is the same as the Sensitivity factor programmed in step 5
–
37