Need advice on simple way to print #949
-
I am new to Arduino and experimented a bit with Attiny85. I am now using Atttiny814 for more pins/memory migration. Kind Regards |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Probably the simplest is to grab a second USB serial adapter and connect to the TX/RX pins on the microcontroller. You can the use the standard Serial class to print whatever data you want and see that in a terminal window on your computer. |
Beta Was this translation helpful? Give feedback.
-
Oh, and I'd be remiss if i didn't note that I'll be launching a dual port serial adapter probably this month that will have SerialUPDI programming on one port, and the other one as a normal serial port (also a serial adapter that has a switch to switch between Serial and UPDI modes) |
Beta Was this translation helpful? Give feedback.
-
Thanks All I am printing to a terminal. I am going to investigate using RXD / TXD lines on Pickit4 and Snap. The nice thing about these tools is you can program normal UPDI and hi voltage using MPLAB. (I wonder if AVRDUDE can send a command to do this?) Also just recently they have added a plugin called MPLAB Data visualizer. This seems like a powerful debugging tool however I am not sure about the communication through UPDI. A lot of experimenting to do. |
Beta Was this translation helpful? Give feedback.
just throw a serial adapter onto the 6-pin FTDI header on the edge of the board. Standard pinout, pins as marked. The one catch is there's no autoreset because you can get autoreset without disabling UPDI unless you have a part with a PB4 (20 pins or 24 pins) as you can set it to use PB4 as an alternate reset pin and do the usual autoreset. I recommend not using the Arduino IDE's console window (it's terrible, lacks literally every feature on my serial console checklist); instead, have an external program (I highly recommend hTerm - it lets you view or send data as ascii, hex, binary, or decimal bytes (eg, to send a space you can send a ascii ' ', hex 20, decimal 32, or binary 00100000 an…