Download 14002672/user/Timer.c from Beifengdo/Arduino-Development: direct link, hf CLI and curl.
- Browser
- Download file 360 Bytes
-
https://huggingface.co/datasets/Beifengdo/Arduino-Development/resolve/main/14002672/user/Timer.c
- Command line
-
hf download hf://datasets/Beifengdo/Arduino-Development/14002672/user/Timer.c
-
curl -L -o Timer.c https://huggingface.co/datasets/Beifengdo/Arduino-Development/resolve/main/14002672/user/Timer.c
360 Bytes
| void Timer1Init(void) //1??@12.000MHz | |
| { | |
| AUXR &= 0xBF; //?????12T?? | |
| TMOD &= 0x0F; //??????? | |
| TL1 = 0x18; //?????? | |
| TH1 = 0xFC; //?????? | |
| TF1 = 0; //??TF1?? | |
| TR1 = 1; //???1???? | |
| ET1=1; | |
| } | |
| void Initsystem() | |
| { | |
| P0=0; | |
| P2=(P2&0x1f)|0xa0; | |
| P2&=0x1f; | |
| P0=0xff; | |
| P2=(P2&0x1f)|0x80; | |
| P2&=0x1f; | |
| } |