[ Log In ]
Serial to USB converter with Micro USB cable

USB to Serial Converter

$10.95
Qty:
Thumbnail: Crystal Oscillator 18.432 MHz for UART

18.432 MHz Crystal Oscillator 18pf 30ppm

$0.94
Qty:
Thumbnail: 22 pF Capacitor

22 pF Multilayer Ceramic Capacitor

$0.43
Qty:
Thumbnail: Quartz crystal oscillator - 16 MHz

16 MHz Crystal Oscillator 20 pF Through Hole

$0.75
Qty:
USB 2.0 Cable 10 Foot Type A Male to Type B Male

USB 2.0 Cable Type A Male to Type B Male - 10 FT

$4.80
Qty:
3 Foot USB Cable Type A to USB Cable Type A

USB Cable Type A Male to USB Type A Male - 3 FT

$2.65
Qty:
84 oz-in NEMA 17 Stepping motors (also called stepper motor)
Image of the Atmega324p

Atmega324P

$8.50
Qty:

10K timmer potentiometer

10K Trimmer Potentiometer (Through Hole)

$0.85
Qty:

Programming: Enabling the Receive and Transmit for UART/USART

The the TX and RX pins will be used for communication and not for the general purpose I/O that exists at those pins, then the TX and RX need to be enabled.
To enable the RX, the RXEN bit must be set in the USART Control and
Status Register B (UCSRB).

To enable the TX, the TXEN bit must be set in the UCSRB register.

Example for Microcontrollers with more the one USART (USART 0):
UCSR0B = (1 << RXEN0) | (1 << TXEN0);

Example for Microcontrollers with only one USART:
UCSRB = (1 << RXEN) | (1 << TXEN);

Comments and Additional Information

Have some code to share? Or additional information? Respond here:

You need to be logged in to save a response on this page. The response must be constructive, helpful, supplimentary or to correct the existing video, code or narrative content.

Description:

Code (optional):