Jump to content
43oh

Maceraperest

Members
  • Content Count

    12
  • Joined

  • Last visited

About Maceraperest

  • Rank
    Member

Contact Methods

  • Website URL
    http://www.siberlojik.com

Profile Information

  • Location
    Turkey
  1. tm4c123g board energia Do setting software
  2. I do not know in converting from arduino energia Please help to translate this code; #define TCD_SH 0x01 #define TCD_CLK1 0x02 #define TCD_CLK2 0x04 #define TCD_BT 0x08 #define TCD_RS 0x10 void tcd1201d_setup() { DDRB = 0x1F; } //byte tcd1201d_out[1047]; 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; PORTB = TCD_CLK2; PORTB = TCD_RS | TCD_CLK2;
  3. #define TCD_SH 0x01 ====> Does anyone know what this is port ? PE_4 or PB_2 =====> How to return
  4. 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 hal
  5. I want to relay to drive with 74HC595 (Shift Register). Do not take into account the above code
  6. where is the problem const int ledPin = GREEN_LED; void setup() { Serial.begin(9600); pinMode(ledPin, OUTPUT); } void loop() { int inByte = Serial.read(); if (inByte == 5) { digitalWrite(ledPin, HIGH); } else { digitalWrite(ledPin, LOW); } }
  7. For serial ports, wiring should be basically Rx to Tx and Tx to Rx. Solves my problem. Thanks igor.
  8. How do I ; Serial Communication Between Two Tiva™ C Series ek-tm4c123gxl. my best compliments
  9. How do I ; Serial Communication Between Two Tiva™ C Series ek-tm4c123gxl
×
×
  • Create New...