[PIC®/AVR®/dsPIC®产品]
PIC10F202 配置问题
2100|25
手机看帖
扫描二维码 随时随地手机跟帖 |
评论
niukai19950129
回复TA
好的,不好意思哈 #include <stdio.h> #include <stdlib.h> #include <pic.h> #include <pic10f202.h> #define spimosi GP2 //master out slave in #define spimiso GP3 //master in slave out #define spiclk GP1 #define spics GP0 int main(int argc, char** argv) { int i; unsigned int Dt_A6_Data=0; Port_Init(); Dt_A6_Data=0x3129; spics =0; SendByte(Dt_A6_Data); delay(10); spics =1; return (EXIT_SUCCESS); } void SendByte(unsigned ... | |
评论
| |