AN236 Silicon_Laboratories, AN236 Datasheet
AN236
Available stocks
Related parts for AN236
AN236 Summary of contents
Page 1
... Once IAR Tools are integrated into the IDE, they are called by simply pressing the “Assemble/Compile Current File” button or the “Build/Make Project” button. See the included software, AN236SW, for an example using the IAR tools. Information in this application note applies to Version 2.90 and later of the Silicon Labs IDE and Version 4 ...
Page 2
... AN236 4.2. Compiler Definition 1. Under the “Compiler” tab, if the compiler executable is not already defined, click the browse button next to the “Executable:” text box, and locate the compiler executable. 2. Enter any additional command line flags directly in the “Command Line Flags” box. ...
Page 3
... If the “Run to main() on code download.” box is checked, the target board will halt at the first line in main() when the “Download code” button is pressed. Rev. 0.3 AN236 3 ...
Page 4
... Blink.r51). Once you have updated your Embedded Workbench tools to Version 7.10 or greater, you will need to override the configuration file named lnk51ew.xcl located on your computer in the folder "..\IAR Systems\Embedded Workbench 4.05\8051\config”. The updated file is included with the AN236SW software example. Rev. 0.3 ...
Page 5
... WDTCN = 0xad; SFRPAGE = 0x0F; PORT_Init (); SFRPAGE = 0x01; Timer3_Init (SYSCLK / 0x90; SFRPAGE = 0x00; // Timer3 reload value // Timer3 counter // approximate SYSCLK frequency Switch to configuration page // Switch to Timer 3 page // Init Timer3 to generate interrupts // rate. // Page to sit in for now Rev. 0.3 AN236 5 ...
Page 6
... AN236 while ( //------------------------------------------------------------------------------------ // PORT_Init //------------------------------------------------------------------------------------ // // Configure the Crossbar and GPIO ports // void PORT_Init (void) { XBR2 = 0x40; P1MDOUT |= 0x40; } //------------------------------------------------------------------------------------ // Timer3_Init //------------------------------------------------------------------------------------ // // Configure Timer3 to auto-reload and generate an interrupt at interval // specified by <counts> using SYSCLK/12 as its time base void Timer3_Init (int counts) { TMR3CN = 0x00; RCAP3 = -counts; TMR3 = 0xff; ...
Page 7
... OCUMENT HANGE IST Revision 0.1 to Revision 0.2 Updated "7. IAR Considerations" on page 4. Revision 0.2 to Revision 0.3 Updated paths to IAR tools to support Version 4.05. Updated supported version of the IDE to Version 2.90. Added bullet on front page to specify supported toolset versions. Rev. 0.3 AN236 7 ...
Page 8
... AN236 C I ONTACT NFORMATION Silicon Laboratories Inc. 400 West Cesar Chavez Austin, TX 78701 Tel: 1+(512) 416-8500 Fax: 1+(512) 416-9669 Toll Free: 1+(877) 444-3032 Email: MCUinfo@silabs.com Internet: www.silabs.com The information in this document is believed to be accurate in all respects at the time of publication but is subject to change without notice. ...