Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
ctboard:peripherals:7segment [2016/02/25 10:48] – feur | ctboard:peripherals:7segment [2018/01/14 09:30] (current) – ruan | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== 7 Segment Display ====== | + | ====== 7-Segment Display ====== |
- | There are 4 7 segment displays | + | The CT Board provides four 7-segment displays. The displays can be accessed |
- | * The [[# | + | * The [[7segment_bin|binary]] interface, for HEX representation of binary values |
- | * The [[# | + | * The [[7segment_raw|"segment control"]] interface, for independent |
Depending on the used addresses the display will switch automatically. \\ \\ | Depending on the used addresses the display will switch automatically. \\ \\ | ||
- | |||
- | > {{ctboard: | ||
- | > Supported modes: **1**, **2**, **3** | ||
- | \\ | ||
- | |||
- | ===== Segment Control ===== | ||
- | |||
- | This is the " | ||
- | |||
- | ==== Programming Example ==== | ||
- | |||
- | The code snippet bellow shows how to use the 7 segment display in segment control mode. | ||
- | |||
- | <code c> | ||
- | #include " | ||
- | |||
- | CT_SEG7-> | ||
- | CT_SEG7-> | ||
- | CT_SEG7-> | ||
- | </ | ||
- | \\ | ||
- | |||
- | ==== Registers ==== | ||
- | |||
- | The Registers are read / write. | ||
- | |||
- | \\ {{ctboard_7seg_raw_reg.svg}} \\ \\ | ||
- | |||
- | ==== Diagram ==== | ||
- | |||
- | \\ {{ctboard_7seg_raw.svg? | ||
- | |||
- | ===== HEX Display ===== | ||
- | |||
- | Additionally the display can be used as HEX display. All 4 displays can directly show a 16 bit binary value. \\ | ||
- | In this mode the display can't be switched off, use the [[# | ||
- | |||
- | ==== Programming Example ==== | ||
- | |||
- | The code snippet bellow shows how to use the 7 segment display as HEX display. | ||
- | |||
- | <code c> | ||
- | #include " | ||
- | |||
- | CT_SEG7-> | ||
- | CT_SEG7-> | ||
- | </ | ||
- | \\ | ||
- | |||
- | ==== Registers ==== | ||
- | |||
- | The Registers are read / write. | ||
- | |||
- | \\ {{ctboard_7seg_bin_reg.svg}} \\ \\ | ||
- | |||
- | ==== Diagram ==== | ||
- | |||
- | \\ {{ctboard_7seg_bin.svg? |