Jump to content

Search the Community

Showing results for tags 'linear ccd'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks

Calendars

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Location


Interests


Sparkfun


Github

Found 1 result

  1. Maceraperest

    Arduino to Energia Code

    Do you understand the port salute code ? #define TCD_SH 0x01 //====> What means this port #define TCD_CLK1 0x02 #define TCD_CLK2 0x04 #define TCD_BT 0x08 #define TCD_RS 0x10 void tcd1201d_setup() { DDRB = 0x1F; } unsigned char tcd1201d_out[1047]; int tcd1201d_dark; void tcd1201d_read() { PORTB = TCD_SH | TCD_CLK1; PORTB = TCD_CLK1; for (int i = 0; i < 1047; ++i) { PORTB = TCD_CLK1; PORTB = TCD_RS | TCD_CLK1; PORTB = TCD_RS | TCD_BT | TCD_CLK1; PORTB = TCD_BT | TCD_CLK1; PORTB = TCD_BT | TCD_CLK2; // Could read here too, but we'll skip half of them. PORTB = TCD_CLK2; PORTB = TCD_RS | TCD_CLK2; PORTB = TCD_RS | TCD_BT | TCD_CLK2; PORTB = TCD_BT | TCD_CLK2; PORTB = TCD_BT | TCD_CLK1; int v = analogRead(A0); if (i == 14) tcd1201d_dark = v; if (v > tcd1201d_dark) v = tcd1201d_dark; v = (tcd1201d_dark - v) / 2; if (v > 255) v = 255; tcd1201d_out[i] = v; } } void setup() { analogReference(DEFAULT); tcd1201d_setup(); Serial.begin(115200); } void loop() { tcd1201d_read(); tcd1201d_read(); for (int i = 0; i < 1047; ++i) { Serial.print(tcd1201d_out[i], HEX); } Serial.println(); } tcd1201.ino
×