Oh!  Yes that's most certainly possible.  If your AVR has a UART or
USART.  If you are programming you AVR with ISP you must have a
programmer.  That you connect to the PC's RS232 (serial) port when you
want to program it.  Then you can unplug that and connect a level
converter that's connected to your AVR's UART.

 

Keep reading and you'll understand more about how the ISP works.

 

Go here http://www.atmel.com/dyn/products/datasheets.asp?family_id=607
to find the datasheet to your AVR.  If your uController has a UART or
USART read the section about it and try the example code.  Since all of
the AVRs can be programmed with ISP your datasheet should also have a
section about programming with a subsection about Serial Programming.
Read that to better understand how ISP works, you'll see that the ISP
protocol uses a different serial interface than the RS232 protocol uses.

 

 

 

Ben Nemec

 

________________________________

From: Suhas Pharkute [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 19, 2007 5:17 PM
To: NEMEC, BENJAMIN
Cc: [email protected]
Subject: Re: [avr-chat] PC Communication

 

Well thx for the tutorial, It is helpful

The question is very simple, I would like to Monitor a sensor input on
the PC constantly. There is a serial port interface available but then
it will take 2 ports from PC (one for ISP and other for Serial Comm), I
was wondering can it be done thr' single PC port ? 

Just want to send program and monitor the port thr' single PC port

Possible?

Suhas

On 3/19/07, NEMEC, BENJAMIN < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote:

Suhas:

> Is there any way to communicate to PC back using ISP when program
execution is in place. 
Do you understand that ISP means (In System Programming) ?  Why do you
want to do this?

 

Suhas:

> I know I can read/write a block from ISP but that will need to put
Processor in prog mode and will halt the exection, correct? 

Not necessarily, depends if your AVR has a RWW section of FLASH, but I
think that is not what you are looking for.

 

What are you trying to do?

 

Have you read the appropriate datasheet(s) and appnotes?

A couple appnotes come to mind.  I know there is one specific to ISP and
another specific to using the AVR UART and USARTs.  I think you need to
read those as well as the datasheet for the AVR you are using.

 

And please go read this tutorial written by Eric S. Raymond et al., How
To Ask Questions The Smart Way: 

http://www.catb.org/~esr/faqs/smart-questions.html
<http://www.catb.org/%7Eesr/faqs/smart-questions.html> 

 

 

Ben Nemec

 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Suhas Pharkute
Sent: Monday, March 19, 2007 4:13 PM
To: [email protected]
Subject: [avr-chat] PC Communication

 

Hi,

Is there any way to communicate to PC back using ISP when program
execution is in place. 

Or can I write a loop that will look for PC input/output for interaction

I know I can read/write a block from ISP but that will need to put
Processor in prog mode and will halt the exection, correct? 

Please help

Suhas

 

_______________________________________________
AVR-chat mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-chat

Reply via email to