Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to connect the Atmega328p chip to my desktop, through the USB, so I can run teraterm or hyperterminal for debugging purposes. I have already ordered a USB to TTL serial cable but it won't be arriving for about a week. I recently bought a usbASP ISP to program the chip on my Arduino. My question is: can I use the usbASP in place of the TTL cable? or is there some conditioning circuit in the usbASP that won't allow this?

It seems for the usb to ttl, all that is required to interface with the chip is VCC, GRD, RX and TX. So, which pins are the RX and TX?

Hope my question makes sense, they usually don't! thanks in advance!

share|improve this question
    
For simple debugging you could just add a few leds. Optionally make them blink in certain patterns for more complex information. – Gerben yesterday

There is provision in the USBasp specification for a UART connection, however, not all manufacturers copy the original schematic exactly, and no firmware actually contains the appropriate code for CDC/ACM required in order to enable it. And even if they did, technically low-speed CDC/ACM is a violation of the USB protocol and not all operating systems will acknowledge it.

As for your title of "Debugging with ISP", if you have an Atmel programmer and are using Atmel Studio then you can perform debugging over ISP (actually debugWIRE, but they use the same connections).

share|improve this answer
    
Oh no kidding? cool thanks! – user3475003 yesterday
    
So i can output messages to Atmel Studio? Say, outputting a voltage as a turn a pot, from the adc? – user3475003 yesterday
1  
No. But you can use debugWIRE to inspect the register contents when the code hits a breakpoint. – Ignacio Vazquez-Abrams yesterday

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.