Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- __sfr __at 0x10 uart_data;
- void putchar(char c) {
- uart_data = c;
- }
- void main(void)
- {
- char rx;
- char hello[] = "Hello, World!\n";
- printf("%s", hello);
- while(1) {
- rx = uart_data;
- printf("%i\n", rx);
- }
- while(1);
- }
Advertisement
Add Comment
Please, Sign In to add comment