基于MSP430对UART的控制方案-1 #include “msp430g2553.h”
2
3 typedef unsigned char uchar;
4 typedef unsigned int uint;
5
6 #define LED BIT0
7 #define TXD BIT1 // TXD on P1.1
8 #define RXD BIT2 // RXD on P1.2
9 #define POUT P1OUT
10
PIC单片机定时器1的实际应用-#define uint unsigned int
__CONFIG(0x3B31);
void init();
uint intnum;
void main()
{
init();
while(1)
{
/*if(intnum==20)
{
intnum=0;
RD0=!RD0;
}*/
}
PIC单片机定时器0的应用-#include
#define uchar unsigned char
#define uint unsigned int
__CONFIG(0x3B31);
void init();
uint intnum;
void main()
{
init();
while(1)
{