Electronic Components Datasheet Search |
|
C8051F120 Datasheet(PDF) 11 Page - Silicon Laboratories |
|
C8051F120 Datasheet(HTML) 11 Page - Silicon Laboratories |
11 / 16 page AN131 Rev. 1.3 11 Example 2 //----------------------------------------------------------------------------- // F12x_INIT_2.c //----------------------------------------------------------------------------- // Copyright 2002 Cygnal Integrated Products, Inc. // // AUTH: FB // DATE: 19 SEP 02 // // This file contains example initialization routines for the C8051F12x series // of devices. // // This program uses a 22.1184 Mhz crystal oscillator multiplied by (9/4) // for an effective SYSCLK of 49.7664 Mhz. This program also initializes and // uses UART0 at <BAUDRATE> bits per second. // // // Target: C8051F12x // Tool chain: KEIL C51 6.03 / KEIL EVAL C51 // //----------------------------------------------------------------------------- // Includes //----------------------------------------------------------------------------- #include <c8051f120.h> // SFR declarations #include <stdio.h> // printf() and getchar() //----------------------------------------------------------------------------- // 16-bit SFR Definitions for 'F12x //----------------------------------------------------------------------------- sfr16 DP = 0x82; // data pointer sfr16 ADC0 = 0xbe; // ADC0 data sfr16 ADC0GT = 0xc4; // ADC0 greater than window sfr16 ADC0LT = 0xc6; // ADC0 less than window sfr16 RCAP2 = 0xca; // Timer2 capture/reload sfr16 RCAP3 = 0xca; // Timer3 capture/reload sfr16 RCAP4 = 0xca; // Timer4 capture/reload sfr16 TMR2 = 0xcc; // Timer2 sfr16 TMR3 = 0xcc; // Timer3 sfr16 TMR4 = 0xcc; // Timer4 sfr16 DAC0 = 0xd2; // DAC0 data sfr16 DAC1 = 0xd2; // DAC1 data sfr16 PCA0CP5 = 0xe1; // PCA0 Module 5 capture sfr16 PCA0CP2 = 0xe9; // PCA0 Module 2 capture sfr16 PCA0CP3 = 0xeb; // PCA0 Module 3 capture sfr16 PCA0CP4 = 0xed; // PCA0 Module 4 capture sfr16 PCA0 = 0xf9; // PCA0 counter sfr16 PCA0CP0 = 0xfb; // PCA0 Module 0 capture sfr16 PCA0CP1 = 0xfd; // PCA0 Module 1 capture //----------------------------------------------------------------------------- // Global CONSTANTS |
Similar Part No. - C8051F120 |
|
Similar Description - C8051F120 |
|
|
Link URL |
Privacy Policy |
ALLDATASHEET.COM |
Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Datasheet Upload | Contact us | Privacy Policy | 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 |