Os motores de busca de Datasheet de Componentes eletrônicos |
|
SI599 Folha de dados(PDF) 11 Page - Silicon Laboratories |
|
SI599 Folha de dados(HTML) 11 Page - Silicon Laboratories |
11 / 44 page AN334 Rev. 0.4 11 EX0 = 1; // Enable External Interrupt 0 EA = 1; // Global interrupt enable ****MUST BE LAST**** IE0 = 0; // Clears INT0 interrupt flag in case previously set CURR_FREQ = FREQ_LIST_LENGTH - 1; // Start up frequency is the last element in the array. // Set CURR_FREQ index to point to last element ReadStartUpConfiguration(); UpdateStatusOutput(); // Update LED's based on which freqency in array FOUT1 is // being output CURR_FREQ = 0; // After 'next' is pressed, first frequency element in FOUT1 // will be output while(1) // Loop forever { while (NEXT == 0) {} // Wait for button to be pressed RunFreqProg(); NEXT = 0; // Clear NEXT variable UpdateStatusOutput(); // Update LEDs on the board CURR_FREQ = CURR_FREQ + 1; // Update index for next frequency if (CURR_FREQ > (FREQ_LIST_LENGTH - 1)) { CURR_FREQ = 0; // Wrap around index after overflow } } } //----------------------------------------------------------------------------- // Initialization Routines //----------------------------------------------------------------------------- //----------------------------------------------------------------------------- // SMBus_Init //----------------------------------------------------------------------------- // // Return Value : None // Parameters : None // // The SMBus peripheral is configured as follows: // - SMBus enabled // - Slave mode disabled // - Timer1 used as clock source. The maximum SCL frequency will be // approximately 1/3 the Timer1 overflow rate // - Setup and hold time extensions enabled // - Free and SCL low timeout detection enabled // void SMBus_Init (void) { SMB0CF = 0x5D; // Use Timer1 overflows as SMBus clock // source; // Disable slave mode; // Enable setup & hold time extensions; // Enable SMBus Free timeout detect; // Enable SCL low timeout detect; SMB0CF |= 0x80; // Enable SMBus; } //----------------------------------------------------------------------------- |
Nº de peça semelhante - SI599 |
|
Descrição semelhante - SI599 |
|
|
Ligação URL |
Privacy Policy |
ALLDATASHEETPT.COM |
ALLDATASHEET é útil para você? [ DONATE ] |
Sobre Alldatasheet | Publicidade | Contato conosco | Privacy Policy | roca de Link | Lista de Fabricantes 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 |