2013-01-22から1日間の記事一覧

UARTサンプル

#include <stdio.h> #include <htc.h> #include "usart.h" __CONFIG(MCLRE_OFF & PWRTE_ON & WDTE_OFF & FOSC_INTOSCIO & LVP_OFF); void main(void){ unsigned char input; INTCON=0; // purpose of disabling the interrupts. init_comms(); // set up the USART - setting</htc.h></stdio.h>…