Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ctboard:peripherals:analog [2016/01/26 12:04] – created feurctboard:peripherals:analog [2016/02/25 10:53] (current) – [Programming Example] feur
Line 1: Line 1:
 ====== Potentiometer ====== ====== Potentiometer ======
  
-On the CT Board are 32 DIP switches mounted. They are arranged in 4 groups of 8 DIP switches. \\ +The Potentiometer is directly connected to the STM32F429ZI microcontroller on [[stm32:peripherals:adc|ADC3 channel 4]]. \\ \\
-If a DIP switch is in the position "high" (see [[#diagram]] below) it provides a logical **"1"**. \\ \\+
  
-> {{ctboard_mode_1.svg?48px }} {{ctboard_mode_2.svg?48px }} {{ctboard_mode_3.svg?48px }} Please make sure the CT Board is in the correct mode. +> {{ctboard:ctboard_mode_no.svg?48px }} This functionality is independent of the CT Board mode. 
-> Supported modes: **1**, **2**, **3** +> Supported modes: Available in all [[ctboard:mode_switch|modes]].  
 +\\
  
-===== Registers =====+==== Programming Example ====
  
-The Registers are read only. +To configure and use the potentiometer, setup [[stm32:peripherals:adc|ADC]] on the microcontroller\\ \\
- +
-|< 100% 10em >| +
-^  Address  ^  Bit 7  ^  Bit 6  ^  Bit 5  ^  Bit 4  ^  Bit 3  ^  Bit 2  ^  Bit 1  ^  Bit 0  ^ +
-^  0x6000'0200  |  S7  |  S6  |  S5  |  S4  |  S3  |  S2  |  S1  |  S0  | +
-^  0x6000'0201  |  S15  |  S14  |  S13  |  S12  |  S11  |  S10  |  S9  |  S8  | +
-^  0x6000'0202  |  S23  |  S22  |  S21  |  S20  |  S19  |  S18  |  S17  |  S16  | +
-^  0x6000'0203  |  S31  |  S30  |  S29  |  S28  |  S27  |  S26  |  S25  |  S24  |+
  
 ===== Diagram ===== ===== Diagram =====
  
-\\ {{:ctboard:peripherals:ctboard_dipsw.svg?800em}} \\ \\+\\ {{:ctboard:peripherals:ctboard_analog.svg?700em}} \\ \\
  • ctboard/peripherals/analog.1453809884.txt.gz
  • Last modified: 2016/01/26 12:04
  • by feur