Using Serial Ports

Hi,

I am done my project POC by using Arduino UNO and 1 GSM. In this I connected GSM Tx and Rx to 0,1 pins of Arduino.
But now I made a breakout board using Atmega168A here I connected Tx and Rx pin to 30 & 31 pins. But I am not getting any outputs.

SO, How can we check these pins are working or not?

Thanking You,
Chaithra

Hello,
check the data sheet and read some AN.

Which 168a do you mean ? The bare chip ? What clock speed ( affects baud rate) , circuit diagram ? Which bootloader ?
Wot code ?

Check the pins with simple coms code , suitable lead , and your serial monitor .

This is the pin configuration of the chips.
In arduino it isAtmega328 controller. Rx & Tx 2&,3 pins (0,1 in arduino board) configured as default serial.
But I am using Atmega 168P, here 30 & 31 are Rx & Tx. When I connect these pins I was not getting any output.

I think I should write some code to open these lines.

Am I right?

You need to look at the pin mapping used by Arduino; Or use the port names .
It’s likely that physical pin 31 doesn’t correspond to “31” on the Arduino ide .

For example , this for the 28 pin package , used in early Arduino devices :

Pin map

Might still be 0, 1, in your software ! As this is port PDO,1 on physical pins 30,31

Bit of research needed !!

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.