We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8063b0d commit 9dfb379Copy full SHA for 9dfb379
main.c
@@ -21,15 +21,13 @@ int main(void)
21
// initializes IO
22
tinyuart_init();
23
24
-
25
- //tinyuart_send_uint8(0xff);
26
-// TINYUART_PIN |= (1 << TINYUART_IO_TX);
27
-// _delay_us(40);
28
29
30
- //tinyuart_send_uint8(0b01010101);
+ _delay_us(40);
+ // toggle pattern test: after every bit delay the TX pin is toggled
+ tinyuart_send_uint8(0b01010101);
31
_delay_us(10);
32
+ // every character test: verify that your receiver can read all chars at the chosen baud rate
+ // cheap UART-USB converts often have an issue with 0x00
33
for (uint16_t n = 0; n<256; n++)
34
{
35
tinyuart_send_uint8((uint8_t)(255-n));
0 commit comments