#include "fx2types.h"
Go to the source code of this file.
Functions | |
void | sio0_init (WORD baud_rate) __critical |
void | putchar (char c) |
char | getchar () |
Definition in file serial.h.
char getchar | ( | ) |
void putchar | ( | char | c | ) |
putchar('\n') or putchar('\r') both transmit \r\n Just use one or the other. (This makes terminal echo easy)
void sio0_init | ( | WORD | baud_rate | ) |
This function inits sio0 to use T2CON (timer 2) See TRM 14.3.4.1 (Table 14-16) Certain baud rates have too high an error rate to work. All baud rates are .16% except:
12MHZ 24MHZ