[Flashforth-devel] mega2560 Serial port problems
Brought to you by:
oh2aun
From: Phoenix R. <pho...@pl...> - 2019-05-31 21:07:24
|
Hello, I'm having a problem getting a character to be transmitted using USART1. Here's what I've tried: bit3 UCSR1B mset \ TXEN1 enabled bit7 UCSR1C mclr \ set for Asynch mode bit6 UCSR1C mclr \ set for Asynch mode \ set for 9600 baud 0 UBRR1H c! $67 UBRR1L c! \ 8N1 bit5 UCSR1C mclr bit4 UCSR1C mclr Then I send a character to UDR1, expecting to see the data on my scope attached to TX1: $31 UDR1 c! Nothing happens on the scope. What am I missing? Many thanks! |