Page 1 of 1

V-usb and serial communication

Posted: Tue Apr 02, 2013 12:34 am
by Trindade
Hi,

My english is not the best so i apolagyse :)

I'm trying to do something new with the HID keys. I grabbed the hid keys project and changed to receive data through serial port instead of pressing buttons but a problem appears.

I did a little program that receive data and do echo. The problem is the echo is not the same that i sent to avr microcontroler. I already deleted and changed the part of the code of v-usb that makes the degub for i can use the usart.

I'm using a crystal of 16Mhz and configured the usart to work with a 19200 baud rate.

The problem seems to be about speed because when i change de baud rate to a lower value the data that appears in echo is more like the data that i have sent.

I also test the receive/transmit data program in the same circuit but without the hid keys program and it works fine. I change the fuse bit's of atmega8 for he can work at this frequency.

If someone can help me i'll be grateful :)

Re: V-usb and serial communication

Posted: Sat Apr 13, 2013 10:41 am
by vouvoume
Hi.
Are you using a MAX232 with ceramic capacitors as RS232 tranceiver?
Maybe you need a small (blocking) capacitor on your board between Vcc and GND.
The carge pumps of MAX232 seems to generate lots of noise, which ripples you have to smooth.

Best regards,