====== CT-Board test ====== This page shows you how to test your CT-Board. ===== 1) Download ===== Download [[https://ennis.zhaw.ch/files/CT_Board_Periphery_Test.zip| CT_Board_Periphery_Test.zip]] file and unpack it on your machine. ===== 2) Open test project ===== Open the CT_Board_Periphery_Test.uvprojx Keil project. ===== 3) Complie & Flash ===== Use the first two instructions from the getting started [[software:keil:debugging|Compile & Debug]] section to Compile and flash the code on to your CT-Board. ===== 4) Test procedure ===== {{:getting_started:ct_board_test.jpg?1000|}} === 4.1) LCD Background Light === The background light of the LCD should cycle through the colours: red, green and blue === 4.2) Button & 7 Segment Display === - {{:getting_started:seven_segment_moving.png?400|}}\\ On each display a "moving" LED should be on. - {{:getting_started:push_button.png?400|}}\\ Push a button to perform the test. - {{:getting_started:seven_segment_on.png?400|}}\\ All the LEDs on the corresponding display should be on. - Repeat with all 7 segment displays. === 4.3) DIP-Switch & LED === {{:getting_started:led_on.png?400px|}} {{:getting_started:dip_switch_on.png?400|}} Switch all dip-switches to the active position.\\ All LED should be on, "moving" LEDs should be off. {{:getting_started:led_off.png?400|}} {{:getting_started:dip_switch_off.png?400|}} Switch all dip-switches to the inactive position.\\ All LEDs should be off, "moving" LEDs should be on. === 4.4) Potentiometer === {{:getting_started:lcd_ptetiometer.png?400|}} {{:getting_started:potentiometer_left.png?100|}} - Turn the potentiometer to the left. - On the LCD the Bar should be "empty". {{:getting_started:lcd_potentiometer_full.png?400|}} {{:getting_started:potentiometer_right.png?100|}} - Turn the potentiometer to the right. - On the LCD the bar should be "full". === 4.5) HEX-Switch === {{:getting_started:lcd_hexsw_value.png?400|}} {{:getting_started:hex_switch_turn.png?100|}} - Turn the HEX-Switch one step. - On the LCD the value should be displayed. - Repeat 1. and 2. until all possibilities are checked (0..9, a..f). === 4.6) GPIO Ports P5/P6 === REQUIRES ADDITIONAL HARDWARE! This test requires flat ribbon cable,\\ which you will find in the laboratory. Skip this test if you do not have access to it. - {{:getting_started:lcd_status.png?400|}}\\ The status of the port is displayed on the LCD.\\ - Insert a flat ribbon cable from P5 to P6.\\ - {{:getting_started:lcd_testresult.png?400|}}\\ The LCD should display the testresult for P56 either with an X or with a ✓. === 4.7) 7 GPIO Ports 1..4 === OPTIONAL: This test requires additional hardware.\\ Skip this test if you do not have access to it. - {{:ctboard:ctboard_mode_1.svg?50|}}\\ Please make sure the CT-Board is in the correct mode. Supported modes: 1 - {{:getting_started:lcd_status.png?400|}}\\ The status of the port is displayed on the LCD. - {{:getting_started:push_button.png?400|}}\\ Insert the test plug in one of the port and push the corresponding button. - {{:getting_started:lcd_testresult.png?400|}}\\ The LCD should dipslay the testresul either with an X or with a ✓.