Rev. 0.6 10/10 Copyright © 2010 by Silicon Laboratories AN428AN428JUMP START: IN-SYSTEM, FLASH-BASED PROGRAMMING FOR SILICON LABS’ TIMING PRODUCTS1.
AN42810 Rev. 0.6{ 91,0x00,0xFF},{ 92,0x00,0xFF},{ 93,0x00,0xFF},{ 94,0x00,0xFF},{ 95,0x00,0x3F},{ 96,0x10,0x00},{ 97,0x00,0xFF},{ 98,0x30,0xFF},{ 99,0
AN428Rev. 0.6 11{127,0x00,0xFF},{128,0x00,0xFF},{129,0x00,0x0F},{130,0x00,0x0F},{131,0x00,0xFF},{132,0x00,0xFF},{133,0x00,0xFF},{134,0x00,0xFF},{135,0
AN42812 Rev. 0.6{163,0x00,0xFF},{164,0x00,0xFF},{165,0x00,0xFF},{166,0x00,0xFF},{167,0x00,0xFF},{168,0x00,0xFF},{169,0x00,0xFF},{170,0x00,0xFF},{171,0
AN428Rev. 0.6 13{199,0x00,0xFF},{200,0x00,0xFF},{201,0x00,0xFF},{202,0x00,0xFF},{203,0x00,0x0F},{204,0x00,0xFF},{205,0x00,0xFF},{206,0x00,0xFF},{207,0
AN42814 Rev. 0.6{236,0x00,0x00},{237,0x00,0x00},{238,0x14,0x00},{239,0x00,0x00},{240,0x00,0x00},{242,0x00,0x02},{243,0xF0,0x00},{244,0x00,0x00},{245,0
AN428Rev. 0.6 15{ 18,0x00,0x00},{ 19,0x00,0x00},{ 20,0x90,0x00},{ 21,0x31,0x00},{ 22,0x00,0x00},{ 23,0x00,0x00},{ 24,0x01,0x00},{ 25,0x00,0x00},{ 26,0
AN42816 Rev. 0.6{ 54,0x00,0xFF},{ 55,0x00,0xFF},{ 56,0x01,0xFF},{ 57,0x00,0xFF},{ 58,0x00,0xFF},{ 59,0x00,0x0F},{ 60,0x00,0x00},{ 61,0x00,0x00},{ 62,0
AN428Rev. 0.6 17{ 90,0x00,0xFF},{ 91,0x00,0x0F},{ 92,0x00,0x00},{ 93,0x00,0x00},{ 94,0x00,0x00},{255, 0, 0xFF} }; // set page bit to 0 4.5. Programmi
AN42818 Rev. 0.65. EnhancementsThe following descriptions provide ideas for modifying or expanding the programming technique described above. Custom
AN428Rev. 0.6 19APPENDIX: JUMPSTART PROGRAM USING THE C8051F301//-----------------------------------------------------------------------------// F300_
AN4282 Rev. 0.62. JumpStart Usage Model1. Use the device evaluation board and its configuration software for the desired timing device to create a co
AN42820 Rev. 0.6// - Added test for when the mask = 0x00 to skip that register access// - Updated Si5338 register mask list in register_map.h///
AN428Rev. 0.6 21// End status vector definition//#define SI5338_DELAY 4800 //2ms//#define SI5338_DELAY 24000 //10ms#define SI5338_DELAY 28800 //12ms#
AN42822 Rev. 0.6 // I2C_ByteWrite() // functions have claimed the SMBusbit SMB_RW;
AN428Rev. 0.6 23INTERRUPT_PROTO(SMBus_ISR, INTERRUPT_SMBUS0);INTERRUPT_PROTO(Timer2_ISR, INTERRUPT_TIMER2);void I2C_ByteWrite (U8 addr, U8 dat);U8 I2C
AN42824 Rev. 0.6 CKCON = 0x10; // Timer 1 is sysclk // Timer 2 is sysclk/12 (see TMR2CN)
AN428Rev. 0.6 25 // since the mask is all ones I2C_ByteWrite(curr.Reg_Addr, curr.Reg_Val); } else { //do a re
AN42826 Rev. 0.6 } //copy FCAL values I2C_ByteWrite(45, I2C_ByteRead(235)); I2C_ByteWrite(46, I2C_ByteRead(236)); // clear bits 0 and 1 from
AN428Rev. 0.6 27//// Return Value : None// Parameters : None//// The SMBus peripheral is configured as follows:// - SMBus enabled// - Slave mode dis
AN42828 Rev. 0.6// - The maximum SCL clock rate will be ~1/3 the Timer1 overflow rate// - Timer1 enabledvoid Timer1_Init (void){// Make sure the Timer
AN428Rev. 0.6 29 TF2H = 0; TF2L = 0; ET2 = 1; // Timer2 interrupt enable TR2 = 1; // Sta
AN428Rev. 0.6 33. After reset or powerup, the MCU will write the register map into the target timing device. The timing device is now fully configured
AN42830 Rev. 0.6//-----------------------------------------------------------------------------//// SMBus ISR state machine// - Master only implementa
AN428Rev. 0.6 31 STA = 1; SEND_START = 0; break; } if(SMB_SENDWORDADDR) // Are w
AN42832 Rev. 0.6 } } else {} // If this transfer is a READ,
AN428Rev. 0.6 33 // of this transfer STO = 1; // Send STOP to terminate transfer
AN42834 Rev. 0.6//INTERRUPT(Timer2_ISR, INTERRUPT_TIMER2){ SMB0CF &= ~0x80; // Disable SMBus SMB0CF |= 0x80;
AN428Rev. 0.6 35 SMB_RW = WRITE; // Mark next transfer as a write SMB_SENDWORDADDR = 1; // Send Word Address aft
AN42836 Rev. 0.6// Parameters :// 1) unsigned char addr - address to read data from the device// range is full range of character: 0 to 255//
AN428Rev. 0.6 37 // Initiate SMBus Transfer STA = 1; while(SMB_BUSY); // Wait until data is read return return_val;}
AN42838 Rev. 0.6DOCUMENT CHANGE LISTRevision 0.1 to Revision 0.2 Updated Figures 1, 2, and 3. Updated "4.1. Firmware Description" on page
AN428Rev. 0.6 39NOTES:
AN4284 Rev. 0.63. Choosing the MCUFor JumpStart, consider these MCU features: Physical size Memory size Serial interface (I2C or SPI) Digital pin
AN42840 Rev. 0.6CONTACT INFORMATIONSilicon Laboratories Inc.400 West Cesar ChavezAustin, TX 78701Tel: 1+(512) 416-8500Fax: 1+(512) 416-9669Toll Free:
AN428Rev. 0.6 54.1. Firmware DescriptionThe full code listing of this example is available in the appendix as well as online at www.silabs.com. To do
AN4286 Rev. 0.64.3. Using the Header File Generation Function (Save C Code Header File)Starting in version 2.5 of the ClockBuilder Desktop software,
AN428Rev. 0.6 74.4. Register Map Header File// Register map for use with AN428 (JumpStart)// http://www.silabs.com/products/clocksoscillators/pages/d
AN4288 Rev. 0.6{ 19,0x00,0x00},{ 20,0x00,0x00},{ 21,0x00,0x00},{ 22,0x00,0x00},{ 23,0x00,0x00},{ 24,0x00,0x00},{ 25,0x00,0x00},{ 26,0x00,0x00},{ 27,0x
AN428Rev. 0.6 9{ 55,0x00,0xFF},{ 56,0x00,0xFF},{ 57,0x00,0xFF},{ 58,0x00,0xFF},{ 59,0x01,0xFF},{ 60,0x00,0xFF},{ 61,0x00,0xFF},{ 62,0x00,0x3F},{ 63,0x
Commentaires sur ces manuels