Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN334 Datasheet(PDF) 10 Page - Silicon Laboratories

Part # AN334
Description  ANSI C REFERENCE DESIGN WITH OPTIONAL NON-VOLATILE OUTPUT FREQUENCY
Download  44 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  SILABS [Silicon Laboratories]
Direct Link  http://www.silabs.com
Logo SILABS - Silicon Laboratories

AN334 Datasheet(HTML) 10 Page - Silicon Laboratories

Back Button AN334 Datasheet HTML 6Page - Silicon Laboratories AN334 Datasheet HTML 7Page - Silicon Laboratories AN334 Datasheet HTML 8Page - Silicon Laboratories AN334 Datasheet HTML 9Page - Silicon Laboratories AN334 Datasheet HTML 10Page - Silicon Laboratories AN334 Datasheet HTML 11Page - Silicon Laboratories AN334 Datasheet HTML 12Page - Silicon Laboratories AN334 Datasheet HTML 13Page - Silicon Laboratories AN334 Datasheet HTML 14Page - Silicon Laboratories Next Button
Zoom Inzoom in Zoom Outzoom out
 10 / 44 page
background image
AN334
10
Rev. 0.4
//-----------------------------------------------------------------------------
void SMBus_Init (void);
void Timer1_Init (void);
void Timer2_Init (void);
void Int0_Init (void);
void Port_Init (void);
INTERRUPT_PROTO(SMBus_ISR, INTERRUPT_SMBUS0);
INTERRUPT_PROTO(ButtonPushed_ISR, INTERRUPT_INT0);
INTERRUPT_PROTO(Timer2_ISR, INTERRUPT_TIMER2);
void RunFreqProg (void);
U8 SetBits (U8 original, U8 reset_mask, U8 new_val);
void ReadStartUpConfiguration (void);
void UpdateStatusOutput (void);
void I2C_ByteWrite (U8 addr, U8 dat);
U8 I2C_ByteRead (U8 addr);
//-----------------------------------------------------------------------------
// MAIN Routine
//-----------------------------------------------------------------------------
//
// Main routine performs all configuration tasks, then loops forever waiting
// for the 'next' button on the board to be pressed. When pressed, the Si570
// will then output the next frequency.
//
void main (void){
U8 i;
// Temporary counter variable used in
// for loops
PCA0MD &= ~0x40;
// WDTE = 0 (disable watchdog timer)
OSCICN |= 0x03;
// Configure internal oscillator for
// its maximum frequency (24.5 Mhz)
// If slave is holding SDA low because of an improper SMBus reset or error
while(!SDA)
{
// Provide clock pulses to allow the slave to advance out
// of its current state. This will allow it to release SDA.
XBR1 = 0x40;
// Enable Crossbar
SCL = 0;
// Drive the clock low
for(i = 0; i < 255; i++);
// Hold the clock low
SCL = 1;
// Release the clock
while(!SCL);
// Wait for open-drain
// clock output to rise
for(i = 0; i < 10; i++);
// Hold the clock high
XBR1 = 0x00;
// Disable Crossbar
}
Port_Init ();
// Initialize Crossbar and GPIO
CKCON = 0x10;
// Timer 1 is sysclk
// Timer 2 is sysclk/12 (see TMR2CN)
Timer1_Init ();
// Configure Timer1 for use as SMBus
// clock source
Timer2_Init ();
// Configure Timer2 for use with SMBus
// low timeout detect
SMBus_Init ();
// Configure and enable SMBus
Int0_Init ();
// Configure INT0
EIE1
|= 0x01;
// Enable SMBus interrupt


Similar Part No. - AN334

ManufacturerPart #DatasheetDescription
logo
STMicroelectronics
AN3340 STMICROELECTRONICS-AN3340 Datasheet
3Mb / 24P
   Loudspeaker characterization and compensation
logo
Panasonic Semiconductor
AN3341SC PANASONIC-AN3341SC Datasheet
52Kb / 4P
   6-Head VCR Recording/Playback Amplifier IC
logo
STMicroelectronics
AN3342 STMICROELECTRONICS-AN3342 Datasheet
1Mb / 39P
   Getting started with STM8TL5xxx
AN3348 STMICROELECTRONICS-AN3348 Datasheet
81Kb / 10P
   Porting eTPU code to eTPU compiler
AN3349 STMICROELECTRONICS-AN3349 Datasheet
96Kb / 13P
   eTPU assembly converter
More results

Similar Description - AN334

ManufacturerPart #DatasheetDescription
logo
List of Unclassifed Man...
S-2210R ETC-S-2210R Datasheet
193Kb / 1P
   NON-VOLATILE MEMORY/NON-VOLATILE RAM
logo
Zoran Corporation
SUPRAHD-640 ZORAN-SUPRAHD-640 Datasheet
116Kb / 2P
   Reference Design
logo
International Rectifier
IRISMPS1 IRF-IRISMPS1 Datasheet
187Kb / 12P
   REFERENCE DESIGN
logo
Seiko Instruments Inc
S-24 SII-S-24 Datasheet
857Kb / 15P
   SERIAL NON-VOLATILE RAM
logo
National Semiconductor ...
LM8342 NSC-LM8342 Datasheet
949Kb / 16P
   Programmable TFT VCOM Calibrator with Non-Volatile
logo
Rohm
BU9831 ROHM-BU9831 Datasheet
149Kb / 13P
   Non-volatile electronic potentiometer
logo
Xilinx, Inc
XCCACE-TQ144 XILINX-XCCACE-TQ144 Datasheet
1Mb / 69P
   Non-volatile system solution
logo
Seiko Instruments Inc
S-22 SII-S-22 Datasheet
656Kb / 12P
   PARALLEL NON-VOLATILE RAM
logo
ELMOS Semiconductor AG
E910.47 ELMOS-E910.47 Datasheet
101Kb / 1P
   Non volatile contact monitor
logo
Microchip Technology
MCP1603 MICROCHIP-MCP1603_08 Datasheet
279Kb / 18P
   Tiny Reference Design
01/02/08
More results


Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44


Datasheet Download

Go To PDF Page


Link URL




Privacy Policy
ALLDATASHEET.NET
Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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