Making a second serial port on the microcontroller

Status
Not open for further replies.

h0x00i

Newbie level 3
Joined
May 26, 2012
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Abhar, Iran
Visit site
Activity points
1,296
How to create a serial port using timer?

I do this with the help of micro controller ATmega32

Somebody who can help me?
 

If you want another Timer other than the hardware one, that usually comes built-in in microcontrollers then you can use software timers- a technique also called bit-banging. In this technique you can just shift your data( stored in any variable) left or right so that it can be escaped out from a desired pin-out of the microcontroller in LSB first or MSB first orders.
This a pretty neat technique especially when done in an interrupt driven manner and will have lesser glitches.
 
Reactions: h0x00i

    h0x00i

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…