Electronic Components Datasheet Search
  English  ▼

X  

C8051F360 Datasheet(PDF) 90 Page - Silicon Laboratories

Part # C8051F360
Description  Mixed Signal ISP Flash MCU Family
PDF  288 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  SILABS [Silicon Laboratories]
Direct Link  http://www.silabs.com
Logo SILABS - Silicon Laboratories

C8051F360 Datasheet(HTML) 90 Page - Silicon Laboratories

Back Button C8051F360 Datasheet HTML 86Page - Silicon Laboratories C8051F360 Datasheet HTML 87Page - Silicon Laboratories C8051F360 Datasheet HTML 88Page - Silicon Laboratories C8051F360 Datasheet HTML 89Page - Silicon Laboratories C8051F360 Datasheet HTML 90Page - Silicon Laboratories C8051F360 Datasheet HTML 91Page - Silicon Laboratories C8051F360 Datasheet HTML 92Page - Silicon Laboratories C8051F360 Datasheet HTML 93Page - Silicon Laboratories C8051F360 Datasheet HTML 94Page - Silicon Laboratories Next Button
Zoom Inzoom in Zoom Outzoom out
 90 / 288 page
background image
C8051F360/1/2/3/4/5/6/7/8/9
90
Rev. 1.0
9.4.6.3. SFR Page Stack Example
The following is an example that shows the operation of the SFR Page Stack during interrupts.
In this example, the SFR Page Control is left in the default enabled state (i.e., SFRPGEN = 1), and the
CIP-51 is executing in-line code that is writing values to OSCICN (SFR “OSCICN”, located at address
0xB6 on SFR Page 0x0F). The device is also using the Programmable Counter Array (PCA) and the 10-bit
ADC (ADC0) window comparator to monitor a voltage. The PCA is timing a critical control function in its
interrupt service routine (ISR), so its interrupt is enabled and is set to high priority. The ADC0 is monitoring
a voltage that is less important, but to minimize the software overhead its window comparator is being used
with an associated ISR that is set to low priority. At this point, the SFR page is set to access the OSCICN
SFR (SFRPAGE = 0x0F). See Figure 9.4 below.
0x0F
(OSCICN)
SFRPAGE
SFRLAST
SFRNEXT
SFR Page
Stack SFR's
Figure 9.4. SFR Page Stack While Using SFR Page 0x0F To Access OSCICN
While CIP-51 executes in-line code (writing values to OSCICN in this example), ADC0 Window Compara-
tor Interrupt occurs. The CIP-51 vectors to the ADC0 Window Comparator ISR and pushes the current
SFR Page value (SFR Page 0x0F) into SFRNEXT in the SFR Page Stack. SFR page 0x00 is then auto-
matically placed in the SFRPAGE register. SFRPAGE is considered the “top” of the SFR Page Stack. Soft-
ware can now access the ADC0 SFR’s. Software may switch to any SFR Page by writing a new value to
the SFRPAGE register at any time during the ADC0 ISR to access SFR’s that are not on SFR Page 0x00.
See Figure 9.5 below.



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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   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