EmbDev.net

Forum: µC & Digital Electronics Pulse generation


von Lê Q. (l_q)


Rate this post
0 useful
not useful
Hello,
I need some help.
I want to generate pulse base on binary.
Example. I need to send : 11001100 to IR led.
So, pulse to send that signal like?
freq= 38kHz
Thank you

: Moved by Moderator
von Lothar M. (lkmiller) (Moderator)


Rate this post
0 useful
not useful
Lê Q. schrieb:
> I want to generate pulse base on binary.
> I need to send : 11001100 to IR led.
Thats all? Nothing more? I would use a ATtiny10 and 20 lines of code.

> I need some help.
Whats the problem?

von Dietrich L. (dietrichl) (Guest)


Rate this post
0 useful
not useful
Without Software:
Paralell-In/Serial Out 8 Bit Shift Register (74xx165, 74xx589, ...) and 
Clock Generator.

von foobar (Guest)


Rate this post
0 useful
not useful
> I need to send : 11001100 to IR led.
> freq= 38kHz

That's a 9500Hz square wave ...

von qa (Guest)


Rate this post
0 useful
not useful
Dear Lothar M.
This is my Example.
I receive IR signal by IR receiver. And I convert it to binary and save 
it.
Now I want to emit it by IR led.
Example I recieve IR signal after converting:
1010000010010100010100011000001101100000010101011000010001010100.
I need to emit it to IR led.
How can I do?

von qa (Guest)


Rate this post
0 useful
not useful
I use MCU of Silabs.
EFR32. I need some code to do it.
maybe use timer.

von Andreas S. (Company: Schweigstill IT) (schweigstill)


Rate this post
0 useful
not useful
qa wrote:
> I need some code to do it.

It looks like that you have a computer. So just write your program.

von c-hater (Guest)


Rate this post
0 useful
not useful
qa wrote:

> I receive IR signal by IR receiver. And I convert it to binary and save
> it.

What do you mean with 'convert to binary'? What you receive, IS binary 
already.

> Now I want to emit it by IR led.
> Example I recieve IR signal after converting:
> 1010000010010100010100011000001101100000010101011000010001010100.
> I need to emit it to IR led.
> How can I do?

You need more than the carrier frequency and the bits to modulate. The 
missing is the duration of each bit. Best in units of periods of the 
carrier frequency.

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig