전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

ST9 데이터시트(PDF) 66 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) 66 Page - STMicroelectronics

Back Button ST9 Datasheet HTML 62Page - STMicroelectronics ST9 Datasheet HTML 63Page - STMicroelectronics ST9 Datasheet HTML 64Page - STMicroelectronics ST9 Datasheet HTML 65Page - STMicroelectronics ST9 Datasheet HTML 66Page - STMicroelectronics ST9 Datasheet HTML 67Page - STMicroelectronics ST9 Datasheet HTML 68Page - STMicroelectronics ST9 Datasheet HTML 69Page - STMicroelectronics ST9 Datasheet HTML 70Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 66 / 146 page
background image
66/146
ST9 USER GUIDE
This style has the advantage of clarity. However, there is still a problem that it does not ad-
dress: the variety of the different products of the ST9 family.
The different products available in the ST9 family are very diverse and as a result it is not al-
ways the case for all products that a given function is performed by the same bit of the same
register. The location of a register in one peripheral may be different in another. To avoid this
problem, the GNU9 programming tool chain provides a set of include files that define the phys-
ical location of every bit and register, by their symbolic name. These files correspond to the
appropriate variant of the ST9. Using them guarantees that switching to another member of
the family will not need more than changing the Include statement at the beginning of the
source text. The same example as above, using the predefined symbols reads as follows:
.include "system.inc" ; System register
ld
MODER,#MOm_sspm+MOm_uspm+MOm_div2m; Both stacks in
;registers, clock divided by 2
spp
#SPI_PG
;SPI page
ld
SPICR,#SPm_spen+SPm_SP_16
; Enable SPI,1st clock
; configuration, Clock/16
This notation is more compact, and is independent of changes either between variants in the
same family, or by changes made globally to the family in the future. This writing style is rec-
ommended for this reason.
4.2 PARALLEL I/O
The parallel input-outputs have a basically very straightforward functionality. Once initialized,
they appear as a register that can be written or read. However in many cases, direct byte-wide
input-output is not sufficient. Bit-oriented I/O is often what is used in microcontroller systems.
A powerful feature of the ST9 is that you can address the eight bits of each port individually.
The ST9, like most microcontrollers also provides the external pins of the other peripherals
(timers, UARTs, etc.) by diverting some bits from the parallel I/O ports.
The ST9 parallel I/O has an additional very flexible feature. You can independently configure
each bit as:
– An input with two variants (TTL or CMOS levels)
– An output with also two variants (open-drain or push-pull)
– A bi-directional port with either a weak pull-up or an open-drain output side
– An alternate function output (that is, the output pin of an internal peripheral), with also either
open-drain or push-pull output driver.



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