SparkFun Forums 

Where electronics enthusiasts find answers.

Your source for all things Atmel.
By dhruv89
#76258
hey every1!!!!!!!!

i'm working on a project where i need to convert a 12 bit parallel data to serial form.......

i'm using ATmega8535...nw cn ne1 please help in out in how to go about this....
i dnt hav much knowledge in parallel transmission n stuff..bt i'm woprking on dat.....

cn sumone please help me with how to go about with coding n all.....

ne type of help would be much appretiated....
please i'm rteally stuck at this......please help me out here!!!!!!!!!
By newbie123
#76263
does it have to be software? If so how do you program, assembly or C?

You can do this with a shift register if you don't want to use software, its easy. Google "parallel to serial shift register"

It is difficult to comment since you did not explain anything about your circuit.

If the parallel lines are connected to your atmega, you can read each port(you need to use two ports for 12 bits) and save each value to a register (good idea to use a 16 bit register like X, Y, or Z registers)

Then shift each bit one by one (maybe to another pin on your atmega)