| Electronic Components Datasheet Search |
|
STC12LE5616AD Datasheet(PDF) 192 Page - STCmicro Technology Co,.Ltd |
|
|
|||||||||||||||||||||||||||||
STC12LE5616AD Datasheet(HTML) 192 Page - STCmicro Technology Co,.Ltd |
|
192 / 377 page ![]() /* define constants */ #define FOSC 18432000L //#define MODE 1T //Timer clock mode, comment this line is 12T mode, uncomment is 1T mode #ifdef MODE 1T #define F38_4KHz (256-FOSC/2/38400) //38.4KHz frequency calculation method of 1T mode #else #define F38_4KHz (256-FOSC/2/12/38400) //38.4KHz frequency calculation method of 12T mode #endif /* define SFR */ sfr AUXR = 0x8e; //Auxiliary register sfr WAKE_CLKO = 0x8f; //wakeup and clock output control register sbit T1CLKO = P1^1; //timer1 clock output pin //----------------------------------------------- /* main program */ void main() { #ifdef MODE1T AUXR = 0x40; //timer1 work in 1T mode #endif TMOD = 0x20; //set timer1 as mode2 (8-bit auto-reload) TL1 = F38_4KHz; //initial timer1 TH1 = F38_4KHz; //initial timer1 TR1 = 1; //timer1 start running WAKE_CLKO = 0x02; //enable timer1 clock output while (1); //loop } 192 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |