数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

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
标志 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


链接网址



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