hi all,
working atmega328p , ftdi 5v usb cable serial communication between micro-controller , pc. using tera term receiving out micro-controller.
i using ftdi 5v usb cable 6 pinout.
i have following connections
ftdi atmega328p
vcc power
gnd ground
rx pin3
i using following code.
#include <avr/io.h>
#define baud 9600
#define f_cpu 16000000ul
#define brc ((f_cpu/16/baud)-1)
#include <util/delay.h>
int main(void)
{
ubrr0h = (brc >>
;
ubrr0l = brc;
ucsr0b = (1 << txen0);
ucsr0c = (1 << ucsz01) | (1 << ucsz00);
while(1)
{
udr0 = '8';
_delay_ms(1000);
}
}
but not getting values in tera term screen. have done appropriate settings tera term serial.
i kind of stuck sometime now, please can let me know, if doing wrong.
thanks
working atmega328p , ftdi 5v usb cable serial communication between micro-controller , pc. using tera term receiving out micro-controller.
i using ftdi 5v usb cable 6 pinout.
i have following connections
ftdi atmega328p
vcc power
gnd ground
rx pin3
i using following code.
#include <avr/io.h>
#define baud 9600
#define f_cpu 16000000ul
#define brc ((f_cpu/16/baud)-1)
#include <util/delay.h>
int main(void)
{
ubrr0h = (brc >>

ubrr0l = brc;
ucsr0b = (1 << txen0);
ucsr0c = (1 << ucsz01) | (1 << ucsz00);
while(1)
{
udr0 = '8';
_delay_ms(1000);
}
}
but not getting values in tera term screen. have done appropriate settings tera term serial.
i kind of stuck sometime now, please can let me know, if doing wrong.
thanks
perhaps connecting ft232 (which not receiver, intermediate) pin tx ?
that how 328 connected 16u2 in r3.
that how 328 connected 16u2 in r3.
Arduino Forum > Using Arduino > Microcontrollers > Atmega328P FTDI 5V USB Serial Communication
arduino
Comments
Post a Comment