データシートサーチシステム
  Japanese  ▼
ALLDATASHEET.JP

X  

ST9 データシート(PDF) 130 Page - STMicroelectronics

部品番号 ST9
部品情報  USER GUIDE
PDF  146 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
メーカー  STMICROELECTRONICS [STMicroelectronics]
ホームページ  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

ST9 データシート(HTML) 130 Page - STMicroelectronics

Back Button ST9 Datasheet HTML 126Page - STMicroelectronics ST9 Datasheet HTML 127Page - STMicroelectronics ST9 Datasheet HTML 128Page - STMicroelectronics ST9 Datasheet HTML 129Page - STMicroelectronics ST9 Datasheet HTML 130Page - STMicroelectronics ST9 Datasheet HTML 131Page - STMicroelectronics ST9 Datasheet HTML 132Page - STMicroelectronics ST9 Datasheet HTML 133Page - STMicroelectronics ST9 Datasheet HTML 134Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 130 / 146 page
background image
130/146
ST9 USER GUIDE
5.5.3 Port Initialisation
When you have configured all the peripherals as described above, you should initialise the
ports to your requirements: input or output, open drain or push-pull, TTL or CMOS levels, etc.
for the parallel I/O ports.
You must set the port pins that serve as inputs or outputs for peripherals as either:
– Alternate Function for peripheral outputs, or
– Regular Input for peripheral inputs
The exception is the A/D converter, where you must set the input pin as Alternate Function.
5.5.4 Final Initialisation
Install the Working Registers in the group defined for the main program.
Set the Page Pointer Register to a default value.
Set the Global Counter Enable, the global Interrupt ENable and, if required the Watchdog
function.
The main program is now ready to run.
5.6 INTERRUPT CONSIDERATIONS
The ST9 has two main paging registers:
– The RPP register pair that selects the working register group
– The PPR register that selects one of 256 pages within register group 15
These registers are essential to the correct working of the program.
When an interrupt occurs, it is likely you will have to change either or both of these registers.
This is why you must push them to the stack on entry, and pop them back on exit.
An interrupt is requested by a bit in a register of a peripheral. This bit is not reset automatically
by the fact that the interrupt is serviced. You must reset it in the code of your interrupt service
routine.
If you write an interrupt service routine in C, by default PPR and all registers used by the rou-
tine are pushed on the stack. This can be time-consuming. If your program is entirely written
in C, and you use none or few registers explicitly, the register file has enough room to allocate
a private working register group for each interrupt service routine. You specify this by a
#pragma pseudo-instruction. This method provides the fastest response times.



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


データシート ダウンロード

Go To PDF Page


リンク URL



ALLDATASHEETはお客様のビジネスに役立ちますか?  [ DONATE ] 

Alldatasheetは   |   広告   |   お問い合わせ   |   プライバシーポリシー   |   データシートへのリンク    |   リンク交換   |   メーカーリスト
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