-
Content Count
12 -
Joined
-
Last visited
About Maceraperest
-
Rank
Member
Contact Methods
-
Website URL
http://www.siberlojik.com
Profile Information
-
Location
Turkey
-
tm4c123g board energia Do setting software
-
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;
-
#define TCD_SH 0x01 ====> Does anyone know what this is port ? PE_4 or PB_2 =====> How to return
- 3 replies
-
- Arduino to Energia Code
- TCD1201D
-
(and 1 more)
Tagged with:
-
Convert to energia please...
- 3 replies
-
- Arduino to Energia Code
- TCD1201D
-
(and 1 more)
Tagged with:
-
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
- 3 replies
-
- Arduino to Energia Code
- TCD1201D
-
(and 1 more)
Tagged with:
-
Serial Communication Between Two Tiva™ C Series
Maceraperest replied to Maceraperest's topic in General
I want to relay to drive with 74HC595 (Shift Register). Do not take into account the above code -
Serial Communication Between Two Tiva™ C Series
Maceraperest replied to Maceraperest's topic in General
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); } } -
Serial Communication Between Two Tiva™ C Series
Maceraperest replied to Maceraperest's topic in General
For serial ports, wiring should be basically Rx to Tx and Tx to Rx. Solves my problem. Thanks igor. -
How do I ; Serial Communication Between Two Tiva™ C Series ek-tm4c123gxl. my best compliments
-
Serial Communication Between Two Tiva-C Series
Maceraperest replied to Maceraperest's topic in Projects
Examples arduino two arduino -
How do I ; Serial Communication Between Two Tiva™ C Series ek-tm4c123gxl
-
[Energia Library] ILI9341 TFT 2.2 port
Maceraperest replied to gmtii's topic in TivaC / CC3XXX Energia Libraries
2.2" TFT cable tmc4c123g connecting how to please