I'm was able to successfully connect ATMEGA328P-PU to my USB port and using avrdude write a simple code (C language) to it. Everything is working, but the problem is that I want to attach a sensor, but am completely lost how can I 'log' the output to my computer. I could do this with Arduino tools. do I need a special bootloader? Thanks
Electrical – Debugging ATMEGA328 with avrdude
debugging
Related Topic
- Electronic – How to view, debug, or analyze data being input to the FPGA
- Electronic – AVR debugging on Linux with Eclipse and AVaRICE
- Electrical – Help debugging amplifier with STA540
- Electronic – In Circuit Emulation vs On Chip Debugging
- Electronic – PIC24 Debugging
- Electronic – Debugging PIC16F886 with PICkit4
Best Answer
The programmer you mention in your other question (the Pololu USB AVR Programmer) has a built-in USB-to-TTL adapter so you can communicate directly with the micro over UART. See: https://www.pololu.com/docs/0J36/6
According to the aforementioned document, your programmer should enumerate as both a programmer and a virtual com port within your OS; bytes transmitted to the virtual com port of your programmer go out the line labelled "TTL TX" in the above image, and whatever comes back from the micro is received on "TTL RX". Connecting the TX and RX lines to a UART on your micro should allow you to receive and transmit data back and forth between your computer and the micro.