Author Topic: Runtime communication with ATMEGA8515 via AVRISP2 with C++  (Read 501 times)

0 Members and 1 Guest are viewing this topic.

Offline jonagikTopic starter

  • Full Member
  • ***
  • Posts: 63
  • Helpful? 1
Runtime communication with ATMEGA8515 via AVRISP2 with C++
« on: June 11, 2011, 04:22:59 AM »
Hi,

Is it possible to communicate from a C++ application on my computer to an Atmel ATMEGA8515 via an AVRISP2? Can someone please point me in the right direction to find out how to do this?

I want to be able to read sensor states, etc from a microcontroller and perhaps display values on the user's computer.

Thanks in advance.

Offline waltr

  • Supreme Robot
  • *****
  • Posts: 1,665
  • Helpful? 84
Re: Runtime communication with ATMEGA8515 via AVRISP2 with C++
« Reply #1 on: June 11, 2011, 06:35:31 AM »
Is a AVRISP2 the programming tool?
If so then you wouldn't use it to for communication.

Instead use the UART in the Atmega and an RS232 level translator (like the MAX232) to connect to a PC COMM port.
Then from the C++ code open a COMM port to send/receive data.

Offline jonagikTopic starter

  • Full Member
  • ***
  • Posts: 63
  • Helpful? 1
Re: Runtime communication with ATMEGA8515 via AVRISP2 with C++
« Reply #2 on: June 13, 2011, 08:02:53 PM »
Do there exist devices that handle a USB connection with the computer so that I can send serial data from my computer to the microcontroller and vice versa?

Offline waltr

  • Supreme Robot
  • *****
  • Posts: 1,665
  • Helpful? 84
Re: Runtime communication with ATMEGA8515 via AVRISP2 with C++
« Reply #3 on: June 13, 2011, 08:13:31 PM »
Yes, there are USB to RS232 adapters available. When plugged into a USB port on a PC they enumerate as a serial COMM port.
Or build your own using an FTDI USB to Serial chip.

Offline jonagikTopic starter

  • Full Member
  • ***
  • Posts: 63
  • Helpful? 1
Re: Runtime communication with ATMEGA8515 via AVRISP2 with C++
« Reply #4 on: June 15, 2011, 02:16:37 AM »
Is it viable to programme a Mega8 to communicate directly via USB (i.e. using a couple of its I/O ports)? Presumably someone out there has written the necesary software for this?

 

Related Topics

  Subject / Started by Replies Last post
5 Replies
1840 Views
Last post March 21, 2008, 09:08:08 PM
by Admin
2 Replies
660 Views
Last post February 26, 2010, 08:05:15 AM
by GearMotion
0 Replies
309 Views
Last post May 15, 2012, 09:57:16 PM
by rmore
0 Replies
309 Views
Last post February 10, 2013, 04:12:58 AM
by genom2


Get Your Ad Here