Hello guys, I am trying to do a software solution for hardware that I have recently built. Now I am struggling with the DACs. I have two of them on a PCB, by using PORTB, PORTC and PORTD. What I am looking for is a SW solution that will allow me to create a variable called X and Y, which I will be able to set independently the value of X or Y to 0-1023 (which will result as a voltage on my DAC, which is currently a simple R2R ladder with some AA filter). I was reading the whole topic https://www.avrfreaks.net/forum/s..., but I am not really clever from it :D. Can yomeone please show me an example exactly for this? I can do it by myself but it is for my work and now I do not have time to play and explore, so if someone can give me a code example with some explanation, I would really appreciate it. Also, I need on PORTB one pin for laser TTL controlling (it is laser projector, X galvo, Y galvo and a laser module with TTL).
Thanks a lot guys!!!