Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== 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 === <WRAP box round 1000px left> The background light of the LCD should cycle through the colours: red, green and blue </WRAP> <WRAP clear></WRAP> === 4.2) Button & 7 Segment Display === <WRAP col1 box round 1000px lef> <WRAP 410px left> - {{: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. </WRAP> </WRAP> <WRAP clear></WRAP> === 4.3) DIP-Switch & LED === <WRAP col2 box round 1000px left> <WRAP 400px column> {{: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. </WRAP> <WRAP 400px column> {{: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. </WRAP> </WRAP> <WRAP clear></WRAP> === 4.4) Potentiometer === <WRAP col2 box round 1000px left> <WRAP 400px column> {{: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". </WRAP> <WRAP 400px column> {{: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". </WRAP> </WRAP> <WRAP clear></WRAP> === 4.5) HEX-Switch === <WRAP column box round 1000px left> <WRAP 400px left> {{: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). </WRAP> </WRAP> <WRAP clear></WRAP> === 4.6) GPIO Ports P5/P6 === <WRAP col1 box round 1000px left> <color #ed1c24>REQUIRES ADDITIONAL HARDWARE!</color> This test requires flat ribbon cable,\\ which you will find in the laboratory. Skip this test if you do not have access to it. <WRAP 400px column> - {{: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 ✓. </WRAP> </WRAP> <WRAP clear></WRAP> === 4.7) 7 GPIO Ports 1..4 === <WRAP col1 box round 1000px left> <color #ed1c24>OPTIONAL:</color> This test requires additional hardware.\\ Skip this test if you do not have access to it. <WRAP 400px left> - {{: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 ✓. </WRAP> </WRAP> <WRAP clear></WRAP> software/start/ct_board_test.txt Last modified: 2023/09/08 07:38by frtt