I want to use data sent by an avr on my PC.
I want to do this in C:
-Show data in live,
Do somebody have a tip or a link?
computer : GNU Linux / e6750
ship : Attiny 2313 / ATmega8
compiler : avr-gcc 1:4.3.2-1
How are they communicating?
Leon Heller G1HSM
I use serial communication (with baudrate) and Visual C# for PC to display.
I think you can get a lite version of Visual studios 2008 from the website for students or testing etc.
i'm studyng IO serial access i n C.
First you have to decide about the comunication method between the micro and the PC.
Usually, embedded engineers use UART (similar to RS232), but todays PCs don't use RS232.
Microcontrollers support UART, USART, I2C, SPI, USB, CAN, LIN, but todays PC motherboards usually support only USB.
My opinion is to use a UART controller like ATtiny2313 and then using an external UART to USB converter ic, like FT232R from FTDI, to connect the circuit to the PC.
Don't be afraid of the USB protocol, because FTDI does it for you. The device USB protocol is included in the ic and the PC driver can be found at FTDI. It' called VirtualCom driver, so you can handle the USB like you are comunicating via the RS232 (COM port).
So, after deciding about the comunication method and the used hardware, then you can talk about the used language (C, D, E, F, G e.t.c).
There is too much discussion about the above and too many examples if you google.
IAR Embedded Workbench C/C++ Compiler
then you can talk about the used language (C, D, E, F, G e.t.c).
Apparently Michael doesn't think much of Assembly, or Basic... :wink:
Yes i'm in this way
I found a lot of things to communicate in C.
Implement MODBUS server in AVR and implement MODBUS client in PC application.
I found this helpful when I was learning
© 2018 Microchip Technology Inc.