3771| 3
|
STC12C5A60S2串口2,求助~! |
2金钱
最佳答案#include
#define uchar unsigned char
#define S2RI 0x01 //S2CON^0
#define S2TI 0x02 //S2CON^1
void Usart2_Init() //9600bps,11.0592MHz;
{
AUXR&=0xf7; //2¨ìØÂê2»¼ó±¶
BRT=-36; //-fosc/(32*9600)
S2CON=0x50; ...
| ||
发表于 2016-7-2 12:35:36
|
显示全部楼层
| ||
just Think
|
||
发表于 2016-7-2 15:38:09
|
显示全部楼层
| ||
just Think
|
||
| ||
|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )
GMT+8, 2024-11-23 16:54
Powered by OpenEdv-开源电子网
© 2001-2030 OpenEdv-开源电子网