python2.72内置函数手册

python2.72内置函数手册
python2.72内置函数手册

Python2.72内置函数

1、文档说明

中文译文和用法尚待完善。

2、函数列表

1,取绝对值

abs(x)

Return the absolute value of a number. The argument may be a plain or long integer or a floating point number. If the argument is a complex number, its magnitude is returned.

如果你不知道绝对值什么意思,那就要补一下小学数学了!

基本用法

2,

all(iterable)

Return True if all elements of the iterable are true (or if the iterable is empty). Equivalent to:

3.

any(iterable)

Return True if any element of the iterable is true. If the iterable is empty, return False. Equivalent to:

4.

basestring()

This abstract type is the superclass for str and unicode. It cannot be called or instantiated, but it can be used to test whether an object is an instance of str or unicode. isinstance(obj,basestring) is equivalent to isinstance(obj,(str,unicode)).

是字符串和字符编码的超类,是抽象类型。不能被调用或者实例化。可以用来判断实例是否为字符串或者字符编码。

方法:

5.二进制转换

bin(x)

Convert an integer number to a binary string. The result is a valid Python expression. If x is not a Python int object, it has to define an __index__() method that returns an integer.

转换成二进制表达

方法:

6.布尔类型

bool([x])

Convert a value to a Boolean, using the standard truth testing procedure. If x is false or omitted, this returns False; otherwise it returns True. bool is also a class, which is a subclass of int. Class bool cannot be subclassed further. Its only instances are False and True

布尔类型的转化

用法:

7.二进制数组的转化

bytearray([source[, encoding[, errors]]])

Return a new array of bytes. The bytearray type is a mutable sequence of integers in the range 0 <= x < 256. It has most of the usual methods of mutable sequences, described in Mutable Sequence Types, as well as most methods that the str type has, see String Methods.

The optional source parameter can be used to initialize the array in a few different ways:

?If it is a string, you must also give the encoding (and optionally, errors) parameters; bytearray() then converts

the string to bytes using str.encode().

?If it is an integer, the array will have that size and will be initialized with null bytes.

?If it is an object conforming to the buffer interface, a read-only buffer of the object will be used to initialize the

bytes array.

?If it is an iterable, it must be an iterable of integers in the range 0 <= x < 256, which are used as the initial contents

of the array.

Without an argument, an array of size 0 is created.

8.

callable(object)

Return True if the object argument appears callable, False if not. If this returns true, it is still possible that a call fails, but if it is false, calling object will never succeed. Note that classes are callable (calling a class returns a new instance); class instances are callable if they have a __call__() method.

9.数字转化成字符

chr(i)

Return a string of one character whose ASCII code is the integer i. For example, chr(97) returns the string 'a'. This is the inverse of ord(). The argument must be in the range [0..255], inclusive; ValueError will be raised if i is outside that range. See also unichr().

用法:

10.

classmethod(function)

Return a class method for function.

A class method receives the class as implicit first argument, just like an instance method receives the instance. To declare a class method, use this idiom:

11.两两比较

cmp(x, y)

Compare the two objects x and y and return an integer according to the outcome. The return value is negative if x < y, zero if x == y and strictly positive if x > y.

X小于X输出负(-1),X等于Y输出零(0),X大于Y输出正(1)

用法:

12.

compile(source, filename, mode[, flags[, dont_inherit]])

Compile the source into a code or AST object. Code objects can be executed by an exec statement or evaluated by a call to eval(). source can either be a string or an AST object. Refer to the ast module documentation for information on how to work with AST objects.

13.

complex([real[, imag]])

Create a complex number with the value real + imag*j or convert a string or number to a complex number. If the first parameter is a string, it will be interpreted as a complex number and the function must be called without a second parameter. The second parameter can never be a string. Each argument may be any numeric type (including complex). If imag is omitted, it defaults to zero and the function serves as a numeric conversion function like int(), long() and float(). If both arguments are omitted, returns 0j.

14.

delattr(object, name)

This is a relative of setattr(). The arguments are an object and a string. The string must be the name of one of the object’s attributes. The function deletes the named attribute, provided the object allows it. For example, delattr(x, 'foobar') is equivalent to del x.foobar.

15.字典

dict([arg])

Create a new data dictionary, optionally with items taken from arg.

The dictionary type is described in Mapping Types — dict.

For other containers see the built in list, set, and tuple classes, and the collections module.

16.很重要的函数,属性输出

dir([object])

Without arguments, return the list of names in the current local scope. With an argument, attempt to return a list of valid attributes for that object.

方法

17.

divmod(a, b)

Take two (non complex) numbers as arguments and return a pair of numbers consisting of their quotient and remainder when using long division. With mixed operand types, the rules for binary arithmetic operators apply. For plain and long integers, the result is the same as (a//b,a%b). For floating point numbers the result is (q,a%b), where q is usually math.floor(a/b) but may be 1 less than that. In any case q*b+a%b is very close to a, if a%b is non-zero it has the same sign as b, and 0<=abs(a%b)

18.

enumerate(sequence[, start=0])

Return an enumerate object. sequence must be a sequence, an iterator, or some other object which supports iteration. The next() method of the iterator returned by enumerate()returns a tuple containing a count (from start which defaults to 0) and the corresponding value obtained from iterating over iterable. enumerate() is useful for obtaining an indexed series: (0,seq[0]), (1,seq[1]), (2,seq[2])

19.

eval(expression[, globals[, locals]])

The arguments are a string and optional globals and locals. If

provided, globals must be a dictionary. If provided, locals can be any mapping object.

Changed in version 2.4: formerly locals was required to be a

dictionary.

20.

execfile(filename[, globals[, locals]])

This function is similar to the exec statement, but parses a file instead of a string. It is different from the import statement in that it does not use the module administration — it reads the file unconditionally and does not create a new module.

和exec很相似的函数

21.

file(filename[, mode[, bufsize]])

Constructor function for the file type, described further in section File Objects. The constructor’s arguments are the same as those of the open() built-in function described below.

When opening a file, it’s preferable to use open() instead of invoking this constructor directly. file is more suited to type testing (for example, writing isinstance(f,file)).

22.

filter(function, iterable)

Construct a list from those elements of iterable for which function returns true. iterable may be either a sequence, a container which supports iteration, or an iterator. If iterable is a string or a tuple, the result also has that type; otherwise it is always a list.

If function is None, the identity function is assumed, that is, all elements of iterable that are false are removed.

Note that filter(function,iterable) is equivalent to

[itemforiteminiterableiffunction(item)] if function is not None and [itemforiteminiterableifitem] if function is None.

See itertools.ifilter()and itertools.ifilterfalse()for iterator versions of this function, including a variation that filters for elements where the function returns false.

23.浮点数值转化

float([x])

用法:

24.

format(value[, format_spec])

Convert a value to a “formatted” representation, as controlled by format_spec. The interpretation of format_spec will depend on the type of the value argument, however there is a standard formatting syntax that is used by most built-in types: Format Specification Mini-Language. 25

frozenset([iterable])

Return a frozenset object, optionally with elements taken from iterable. The frozenset type is described in Set Types — set, frozenset.

For other containers see the built in dict, list, and tuple classes, and the collections module.

26.

getattr(object, name[, default])

Return the value of the named attribute of object. name must be a string. If the string is the name of one of the object’s attributes, the result is the value of that attribute. For example, getattr(x, 'foobar') is equivalent to x.foobar. If the named attribute does not exist, default is returned if provided, otherwise AttributeError is raised.

27.全局参数

globals()

Return a dictionary representing the current global symbol table. This is always the dictionary of the current module (inside a function or method, this is the module where it is defined, not the module from which it is called).

28.

hasattr(object, name)

Return the hash value of the object (if it has one). Hash values are integers. They are used to quickly compare dictionary keys during a dictionary lookup. Numeric values that compare equal have the same hash value (even if they are of different types, as is the case for 1 and 1.0).

29.

hash(object)

Return the hash value of the object (if it has one). Hash values are integers. They are used to quickly compare dictionary keys during a dictionary lookup. Numeric values that compare equal have the same hash value (even if they are of different types, as is the case for 1 and 1.0).

30.很重要的帮助函数方法

help([object])

31.十六进制转化

hex(x)

Convert an integer number (of any size) to a hexadecimal string. The result is a valid Python expression.

用法:

32.内存地址

id(object)

Return the “identity” of an object. This is an integer (or lo ng integer) which is guaranteed to be unique and constant for this object during its lifetime. Two objects with non-overlapping lifetimes may have the same id() value.

如果想知道某个对象的内存地址,用这个内置函数,返回的是10进制的地址。

33.

input([prompt])

Equivalent to eval(raw_input(prompt)).

34.

int([x[, base]])

Convert a string or number to a plain integer. If the argument is a string, it must contain a possibly signed decimal number representable as a Python integer, possibly embedded in whitespace. The base parameter gives the base for the conversion (which is 10 by default) and may be any integer in the range [2, 36], or zero. If base is zero, the proper radix is determined based on the contents of string; the interpretation is the same as for integer literals. (See Numeric literals.) If base is specified and x is not a string, TypeError is raised. Otherwise, the argument may be a plain or long integer or a floating point number. Conversion of floating point numbers to integers truncates (towards zero). If the argument is outside the integer range a long object will be returned instead. If no arguments are given, returns 0.

35.

isinstance(object, classinfo)

Return true if the object argument is an instance of the classinfo argument, or of a (direct or indirect) subclass thereof. Also return true if classinfo is a type object (new-style class) and object is an object of that type or of a (direct or indirect) subclass thereof. If object is not a class instance or an object of the given type, the function always returns false. If classinfo is neither a class object nor a type object, it may be a tuple of class or type objects, or may recursively contain other such tuples (other sequence types are not accepted). If classinfo is not a class, type, or tuple of classes, types, and such tuples, a TypeError exception is raised.

36.

issubclass(class, classinfo)

Return true if class is a subclass (direct or indirect) of classinfo. A class is considered a subclass of itself. classinfo may be a tuple of class objects, in which case every entry in classinfo will be checked. In any other case, a TypeError exception is raised.

37.导管,窗口,容器,数据的窗口化

iter(o[, sentinel])

Return an iterator object. The first argument is interpreted very differently depending on the presence of the second argument. Without a second argument, o must be a collection object which supports the iteration protocol (the __iter__() method), or it must support the sequence protocol (the __getitem__() method with integer arguments starting at 0). If it does not support either of those protocols, TypeError is raised. If the second argument, sentinel, is given, then o must be a callable object. The iterator created in this case will call o with no arguments for each call to its next() method; if the value returned is equal to sentinel, StopIteration will be raised, otherwise the value will be returned.

iter(o[, sentinel])返回一个迭代器对象。第一个参数根据第二个参数进行编译。第二参数为空,O必须是支持迭代器的协议 (the __iter__() method)的集

合对象,或者支持顺序协议(the __getitem__()method with integer arguments staring at 0).如果不支持其中任意一种协议,程序将会抛出类型异常。

假如第二个参数被给出,然后O必须是一个可被调用的对象。迭代器被创建万一will 掉用O with没有参数for each call to its next() method; 如果返回值和初始值相同l, StopIteration将会抛出, 否则值会被返回!

38.计算长度(常用函数)

len(s)

Return the length (the number of items) of an object. The argument may be a sequence (string, tuple or list) or a mapping (dictionary). 用法:

39.转化成列表

list([iterable])

Return a list whose items are the same and in the same order as iterable‘s items. iterable may be either a sequence, a container that supports iteration, or an iterator object. If iterable is already a list, a copy is made and returned, similar to iterable[:]. For instance, list('abc') returns ['a','b','c'] and list((1,2,3)) returns [1,2,3]. If no argument is given, returns a new empty list, [].

40.

locals()

Update and return a dictionary representing the current local symbol table. Free variables are returned by locals() when it is called in function blocks, but not in class blocks.

Update and return a dictionary更新和返回字典

41.

long([x[, base]])

Convert a string or number to a long integer. If the argument is a string, it must contain a possibly signed number of arbitrary size, possibly embedded in whitespace. The base argument is interpreted in the same way as for int(), and may only be given when x is a string. Otherwise, the argument may be a plain or long integer or a floating point number, and a long integer with the same value is returned. Conversion of floating point numbers to integers truncates (towards zero). If no arguments are given, returns 0L.

42.

map(function, iterable, ...)

Apply function to every item of iterable and return a list of the results. If additional iterable arguments are passed, function must take that many arguments and is applied to the items from all iterables in parallel. If one iterable is shorter than another it is assumed to be extended with None items. If function is None, the identity function is assumed; if there are multiple arguments, map() returns a list consisting of tuples containing the corresponding items from all iterables (a kind of transpose operation). The iterable arguments may be a sequence or any iterable object; the result is always a list.

43.最大值

max(iterable[, args...][, key])

With a single argument iterable, return the largest item of a non-empty iterable (such as a string, tuple or list). With more than one argument, return the largest of the arguments.

The optional key argument specifies a one-argument ordering function like that used for list.sort(). The key argument, if supplied, must be in keyword form (for example, max(a,b,c,key=func)).

44.

memoryview(obj)

Return a “memory view” object created from the given argument. See memoryview type for more information.

45.最小值

min(iterable[, args...][, key])

With a single argument iterable, return the smallest item of a non-empty iterable (such as a string, tuple or list). With more than one argument, return the smallest of the arguments.

46.迭代以后的函数

next(iterator[, default])

Retrieve the next item from the iterator by calling its next() method. If default is given, it is returned if the iterator is exhausted, otherwise StopIteration is raised.

用法:

47.

object()

Return a new featureless object. object is a base for all new style classes. It has the methods that are common to all instances of new style classes.

48.八进制字符串的转化

oct(x)

Convert an integer number (of any size) to an octal string. The result is a valid Python expression.

用法:

49.

open(filename[, mode[, bufsize]])

Open a file, returning an object of the file type described in section File Objects. If the file cannot be opened, IOError is raised. When opening a file, it’s preferabl e to use open() instead of invoking the file constructor directly.

50.字符转化成ASCⅡ码

ord(c)

Given a string of length one, return an integer representing the Unicode code point of the character when the argument is a unicode object, or the value of the byte when the argument is an 8-bit string. For example, ord('a') returns the integer 97, ord(u'\u2020') returns 8224. This is the inverse of chr() for 8-bit strings and of unichr() for unicode objects. If a unicode argument is given and Python was built with UCS2 Unicode, then the character’s code point must be in the range [0..65535] inclusive; otherwise the string length is two, and a TypeError will be raised.

51.

pow(x, y[, z])

Return x to the power y; if z is present, return x to the power y, modulo z (computed more efficiently than pow(x, y) % z). The two-argument form pow(x, y) is equivalent to using the power operator: x**y.

52.print函数原来本身就是函数。

print([object, ...][, sep=' '][, end='\n'][, file=sys.stdout])

Print object(s) to the stream file, separated by sep and followed by end. sep, end and file, if present, must be given as keyword arguments. 53.

property([fget[, fset[, fdel[, doc]]]])

Return a property attribute for new-style class es (classes that

derive from object).

54.

range([start], stop[, step])

起始位置,终止位置,步长

55

raw_input([prompt])

If the prompt argument is present, it is written to standard output without a trailing newline.

用法:

56.

reduce(function, iterable[, initializer])

Apply function of two arguments cumulatively to the items of iterable, from left to right, so as to reduce the iterable to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). The left argument, x, is the accumulated value and the right argument, y, is the update value from the iterable. If the optional initializer is present, it is placed before the items of the iterable in the calculation, and serves as a default when the iterable is empty. If initializer is not given and iterable contains only one item, the first item is returned.

57.重载模块,很重要的函数

reload(module)

58.

repr(object)

Return a string containing a printable representation of an object.

This is the same value yielded by conversions (reverse quotes). It is sometimes useful to be able to access this operation as an

ordinary function. For many types, this function makes an attempt to return a string that would yield an object with the same value when passed to eval(), otherwise the representation is a string

enclosed in angle brackets that contains the name of the type of the object together with additional information often including the name and address of the object. A class can control what this

function returns for its instances by defining a __repr__()method.

59.

reversed(seq)

Return a reverse iterator. seq must be an object which has a __reversed__() method or supports the sequence protocol (the __len__() method and the __getitem__() method with integer arguments starting at 0).

60.

round(x[, n])

Return the floating point value x rounded to n digits after the decimal point. If n is omitted, it defaults to zero. The result is a floating point number. Values are rounded to the closest multiple of 10 to the power minus n; if two multiples are equally close, rounding is done away from 0 (so. for example, round(0.5) is 1.0 and round(-0.5) is -1.0).

61.去重,但是不改变原始数据

set([iterable])

Return a new set, optionally with elements taken from iterable. The set type is described in Set Types — set, frozenset.

62.

setattr(object, name, value)

This is the counterpart of getattr(). The arguments are an object, a string and an arbitrary value. The string may name an existing attribute or a new attribute. The function assigns the value to the attribute, provided the object allows it. For example, setattr(x, 'foobar', 123) is equivalent to x.foobar = 123.

63.切片起始位置,终止位置,步长

slice([start], stop[, step])

Return a slice object representing the set of indices specified by range(start,stop,step). The start and step arguments default to None. Slice objects have read-only data attributes start, stop and step which

merely return the argument values (or their default). They have no other explicit functionality; however they are used by Numerical Python and other third party extensions. Slice objects are also generated when extended indexing syntax is used. For example: a[start:stop:step] or a[start:stop,i]. See itertools.islice() for an alternate version that returns an iterator.

用法

64.排序

sorted(iterable[, cmp[, key[, reverse]]])

Return a new sorted list from the items in iterable.

用法

65.静态方法函数调用类方法的一种函数

staticmethod(function)

Return a static method for function.

66.字符串转化

str([object])

Return a string containing a nicely printable representation of an object. For strings, this returns the string itself. The difference with repr(object) is that str(object) does not always attempt to return a string that is acceptable to eval(); its goal is to return

a printable string. If no argument is given, returns the empty

string, ''.

67.求和

sum(iterable[, start])

Sums start and the items of an iterable from left to right and

returns the total. start defaults to 0. The iterable‘s items are normally numbers, and the start value is not allowed to be a string.

68.

super(type[, object-or-type])

Return a proxy object that delegates method calls to a parent or sibling class of type. This is useful for accessing inherited methods that have been overridden in a class. The search order is same as that used by getattr() except that the type itself is skipped.

69.元组

tuple([iterable])

Return a tuple whose items are the same and in the same order as iterable‘s items. iterable may be a sequence, a container that supports iteration, or an iterator object. If iterable is already a tuple, it is returned unchanged. For instance, tuple('abc') returns ('a','b','c') and

tuple([1,2,3]) returns (1,2,3). If no argument is given, returns a new empty tuple, ().

70.类型

type(object)

Return the type of an object. The return value is a type object. The isinstance()built-in function is recommended for testing the type of an object.

用法:

71.

unichr(i)

Return the Unicode string of one character whose Unicode code is the integer i. For example, unichr(97) returns the string u'a'. This

is the inverse of ord() for Unicode strings. The valid range for the argument depends how Python was configured –it may be either UCS2 [0..0xFFFF] or UCS4 [0..0x10FFFF]. ValueError is raised

otherwise. For ASCII and 8-bit strings see chr().

72.

unicode([object[, encoding[, errors]]])

Return the Unicode string version of object using one of the following modes:

73.

vars([object])

Without an argument, act like locals().

74.

xrange([start], stop[, step])

This function is very similar to range(), but returns an “xrange object” instead of a list. This is an opaque sequence type which yields the same values as the corresponding list, without actually storing them all simultaneously. The advantage of xrange() over range() is minimal (since xrange() still has to create the values when asked for them) except when a very large range is used on a memory-starved machine or when all of the range’s elements are never used (such as when the loop is usually terminated with break).

75.

zip([iterable, ...])

76.

__import__(name[, globals[, locals[, fromlist[, level]]]])

Note

This is an advanced function that is not needed in everyday Python programming.

This function is invoked by the import statement. It can be replaced (by importing the __builtin__ module and assigning to

__builtin__.__import__) in order to change semantics of the import statement, but nowadays it is usually simpler to use import hooks (see PEP 302). Direct use of __import__()is rare, except in cases where you want to import a module whose name is only known at runtime.

PYTHON3中文教程

Python已经是3.1版本了,与时俱进更新教程. ?本文适合有Java编程经验的程序员快速熟悉Python ?本文程序在windows xp+python3.1a1测试通过. ?本文提到的idle指python shell,即安装python后你在菜单看到的IDLE(python gui) ?在idle里ctrl+n可以打开一个新窗口,输入源码后ctrl+s可以保存,f5运行程序. ?凡打开新窗口即指ctrl+n的操作. #打开新窗口,输入:#!/usr/bin/python #-*-coding:utf8-*-s1=input("Input your name:")print("你好,%s"%s1)''' 知识点: *input("某字符串")函数:显示"某字符串",并等待用户输入. *print()函数:如何打印. *如何应用中文 *如何用多行注释 ''' 2字符串和数字 但有趣的是,在javascript里我们会理想当然的将字符串和数字连接,因为是动态语言嘛.但在Python里有点诡异,如下: 运行这行程序会出错,提示你字符串和数字不能连接,于是只好用内置函数进行转换 #!/usr/bin/python #运行这行程序会出错,提示你字符串和数字不能连接,于是只好用内置函数进行转换a=2

b="test" c=str(a)+b d="1111" e=a+int(d)#How to print multiply values print("c is%s,e is%i"%(c,e))''' 知识点: *用int和str函数将字符串和数字进行转换 *打印以#开头,而不是习惯的// *打印多个参数的方式''' #!/usr/bin/python #-*-coding:utf8-*- #列表类似Javascript的数组,方便易用#定义元组word=['a','b','c','d','e','f','g']#如何通过索引访问元组里的元素a=word[2]print("a is:"+a) b=word[1:3]print("b is:")print(b)#index1and2elements of word.c=word[:2]print ("c is:")print(c)#index0and1elements of word.d=word[0:]print("d is:")print(d)# All elements of word.#元组可以合并e=word[:2]+word[2:]print("e is:")print(e)#All elements of word.f=word[-1]print("f is:")print(f)#The last elements of word.g=word[-4:-2]print("g is:")print(g)#index3and4elements of word.h=word[-2:]print("h is:")print(h)#The last two elements.i=word[:-2]print("i is: ")print(i)#Everything except the last two characters l=len(word)print("Length of word is:"+str(l))print("Adds new element") word.append('h')print(word)#删除元素del word[0]print(word)del word[1:3]print (word)''' 知识点: *列表长度是动态的,可任意添加删除元素. *用索引可以很方便访问元素,甚至返回一个子列表 *更多方法请参考Python的文档'''

python函数中文手册

内置函数 一,文档说明 原始文档来自于python v2.7.2 中文译文和用法尚不完全,您可以自由修改和完善, 您可以在文档结尾鸣谢添上您的名字,我们将会感谢您做的贡献! 二,函数列表 1,取绝对值 abs(x)

Return the absolute value of a number. The argument may be a plain or long integer or a floating point number. If the argument is a complex number, its magnitude is returned. 如果你不知道绝对值什么意思,那就要补一下小学数学了! 基本用法 2, all(iterable) Return True if all elements of the iterable are true (or if the iterable is empty). Equivalent to: 3. any(iterable)

Return True if any element of the iterable is true. If the iterable is empty, return False. Equivalent to: 4. basestring() This abstract type is the superclass for str and unicode. It cannot be called or instantiated, but it can be used to test whether an object is an instance of str or unicode. isinstance(obj, basestring) is equivalent to isinstance(obj, (str, unicode)). 是字符串和字符编码的超类,是抽象类型。不能被调用或者实例化。可以用来判断实例是否为字符串或者字符编码。 方法: 5.二进制转换 bin(x) Convert an integer number to a binary string. The result is a valid Python expression. If x is not a Python int object, it has to define an __index__() method that returns an integer.

stm32f303评估板手册

For further information contact your local STMicroelectronics sales office. July 2016DocID023596 Rev 41/4 STM32F3DISCOVERY Discovery kit with STM32F303VC MCU Data brief Features ?STM32F303VCT6 microcontroller featuring 256-Kbyte Flash memory, 48-Kbyte RAM in an LQFP100 package ?On-board ST-LINK/V2 for PCB version A or B or ST-LINK/V2-B for PCB version C and newer ?USB ST-LINK functions:–Debug port –Virtual COM port with ST-LINK/V2-B only –Mass storage with ST-LINK/2-B only ?Board power supply: through USB bus or from an external 3V or 5V supply voltage ?External application power supply: 3V and 5V ?L3GD20, ST MEMS motion sensor, 3-axis digital output gyroscope ?LSM303DLHC, ST MEMS system-in-package featuring a 3D digital linear acceleration sensor and a 3D digital magnetic sensor ?Ten LEDs: –LD1 (red) for 3.3V power on –LD2 (red/green) for USB communication –Eight user LEDs: LD3/10 (red), LD4/9 (blue), LD5/8 (orange) and LD6/7 (green)?Two push-buttons (user and reset)?USB USER with Mini-B connector ?Extension header for all LQFP100 I/Os for quick connection to prototype board and easy probing ?Comprehensive free software including a variety of examples, part of STM32CubeF3 package or STSW-STM32118 for legacy Standard Library usage 1.Picture not contractual. Description The STM32F3DISCOVERY allows users to easily develop applications with the STM32F3 Series based on ARM ? Cortex ?-M4 mixed-signal MCU. It includes everything required for beginners and experienced users to get started quickly.Based on the STM32F303VCT6, it includes an ST-LINK/V2 or ST-LINK/V2-B embedded debug tool, accelerometer, gyroscope and e-compass ST MEMS, USB connection, LEDs and push-buttons. The STM32F3DISCOVERY discovery board does not support the STM32F313xx MCUs (1.65V to 1.95 V power supply). https://www.360docs.net/doc/2815494564.html,

python解释器内建函数帮助文档

Python解释器有很多内建函数。下面是以字母顺序列出 __import__( name[, globals[, locals[, fromlist[, level]]]]) 被import语句调用的函数。它的存在主要是为了你可以用另外一个有兼容接口的函数来改变import 语句的语义. 为什么和怎么做的例子, 标准库模块ihooks和rexec. 也可以查看imp, 它定义了有用的操作,你可以创建你自己的__import__()函数. 例如, 语句"import spam" 结果对应下面的调用: __import__('spam', globals(), locals(), [], -1); 语句"from spam.ham import eggs" 结果对应调用"__import__('spam.ham', globals(), locals(), ['eggs'], -1)". 注意即使locals()和['eggs']作为参数传递, __import__() 函数不会设置局部变量eggs; import语句后面的代码完成这项功能的. (实事上, 标准的执行根本没有使用局部参数, 仅仅使用globals决定import语句声明package的上下文.) 当name变量是package.module的形式, 正常讲, 将返回顶层包(第一个点左边的部分), 而不是名为name的模块. 然而, 当指定一个非空的formlist参数,将返回名为name的模块. 这样做是为了兼容为不同种类的import语句产生的字节码; 当使用"import spam.ham.eggs", 顶层包spam 必须在导入的空间中, 但是当使用"from spam.ham import eggs", 必须使用spam.ham子包来查找eggs变量. 作为这种行为的工作区间, 使用getattr()提取需要的组件. 例如, 你可以定义下面: def my_import(name): mod = __import__(name) components = name.split('.') for comp in components[1:]: mod = getattr(mod, comp) return mod level指定了是否使用相对或绝对导入. 默认是-1将使用将尝试使用相对或绝对导入. 0 仅使用绝对导入.正数意味着相对查找模块文件夹的level层父文件夹中调用__import__。 abs( x) 返回一个数的绝对值。参数也许是一个普通或长整型,或者一个浮点数。如果参数是一个复数,返回它的积。 all( iterable) 如果迭代的所有元素都是真就返回真。 def all(iterable): for element in iterable: if not element: return False return True

STM32F407运用总结

STM32运用总结 主要分为IO口,定时器的PWM和QEI,中断,ADC,DAC和DMA介绍。在STM32的运用中第一步一般是使能相应模块的时钟,然后配置IO 口,最后配置相应的寄存器。 1.IO口 STM32的IO口非常多,而且与其它外设模块通常是复用的。在不同的外设中IO口的设置是不一样的。这一部分介绍普通的数值IO口。IO口有A-G共7组,每组16口。 1.IO口在时钟总线AHB1上,使能对应端口的时钟。在寄存 器RCC->AHB1ENR中。 2.配置IO口的模式,普通的IO口配置为普通的输入输出模式。 配置IO口是悬空还是上拉或者下拉。以上两步分别在寄存器 GPIOx->MODER和GPIOx-> PUPDR(x=A,B,C,D,E,F,G) 3.其中配置为输出模式时还要设置速度和相应的输出方式,开漏 或者推挽,以上两步分别在寄存器GPIOx-> OSPEEDR和 GPIOx->OTYPER(x=A,B,C,D,E,F,G)。 4.设置IO口的高低电平。在寄存器GPIOx->BSRRH中置相应的位 为1就是将相应的位置0,在寄存器GPIOx->BSRRL中置相应 的位为1就是将相应的位置1.另外还可以设置GPIOx_ODR寄

存器来设置输出电平以及读取GPIOx_IDR寄存器来获取输入 电平。 2.PWM STM32的定时器也非常之多,用到的主要是两个部分:用定时器产生PWM和定时触发ADC,这里一部分介绍PWM。(高级定时器的配置和这差不多,由于在STM32F103里面已经尝试过在STM32F407里面就没有再写) 1.配置IO口。我们说过STM32的外设模块主要是和IO口复用的, 因此在使用外设模块时首先配置好相应的IO口。比如使用A 口的PA1作为定时器Timer2的PWM输出。则应按照如下的步 骤来配置PA1。 1)使能A口的时钟。在寄存器RCC->AHB1ENR中。 2)配置PA1为复用功能。在寄存器GPIOA->MODER中。 3)配置PA1的上拉下拉或者悬空。在寄存器GPIOA->PUPDR中。 4)配置PA1的速度。在GPIOA->OSPEEDR中。 5)配置PA1的复用功能是和Timer2对应的。在GPIOA->AFR[0] 中。(相对应的复用对应表数据手册上有)。 2.配置定时器模块 1)使能相应的定时器模块时钟(注意不同的定时器在不同的 时钟总线上)。Timer2在APB1总线上。所以在RCC->APB1ENR 中使能Timer2.

PythonImagingLibrary中文手册p

这是P I L的官方手册,2005年5月6日本中文手册来你可以在PythonWare library找到改文档其它格式的版本以及先前的版本。 原版出处:htt 目录 1.Python Imaging Library 中文手册 2.第一部分:介绍 1.概览 1.介绍 2.图像归档处理 3.图像显示 4.图像处理 2.入门导引 1.使用Image 类 2.读写图像 3.裁剪、粘贴和合并图像 4.滚动一幅图像 5.分离与合并通道 3.几何变换 1.简单的几何变换 2.transpose图像 4.颜色变换 1.转换图像颜色模式 5.图像增强 1.滤波器 1.使用滤波器 2.点操作 1.使用点变换 2.处理单个通道 3.增强 1.增强图像 6.图像序列 1.读取图像序列 2.一个序列迭代类 7.Postscript格式打印 1.Drawing Postscript 8.更多关于读取图像 1.控制解码器 3.概念 1.通道 2.模式 3.大小 4.坐标系统

5.调色板 6.信息 7.滤波器 4.第二部分:模块手册 5.Image 模块 1.例子 2.函数 1.new 2.open 3.blend https://www.360docs.net/doc/2815494564.html,posite 5.eval 6.frombuffer 7.fromstring 8.merge 3.方法 1.convert 2.copy 3.crop 4.draft 5.filter 6.fromstring 7.getbands 8.getbbox 9.getdata 10.getextrema 11.getpixel 12.histogram 13.load 14.offset 15.paste 16.point 17.putalpha 18.putdata 19.putpalette 20.putpixel 21.resize 22.rotate 23.save 24.seek 25.show 26.split 27.tell 28.thumbnail 29.tobitmap 30.tostring

STM32F070RB数据手册

This is information on a product in full production. January 2015 DocID027114 Rev 21/88 11 timers, ADC, communication interfaces, 2.4 - 3.6 V Datasheet - production data Features ?Core: ARM ? 32-bit Cortex ?-M0 CPU, frequency up to 48 MHz ?Memories –32 to 128 Kbytes of Flash memory – 6 to 16 Kbytes of SRAM with HW parity ?CRC calculation unit ?Reset and power management –Digital & I/Os supply: V DD = 2.4 V to 3.6 V –Analog supply: V DDA = V DD to 3.6 V –Power-on/Power down reset (POR/PDR)–Low power modes: Sleep, Stop, Standby ?Clock management – 4 to 32 MHz crystal oscillator –32 kHz oscillator for RTC with calibration –Internal 8 MHz RC with x6 PLL option –Internal 40 kHz RC oscillator ?Up to 51 fast I/Os –All mappable on external interrupt vectors –Up to 5155 I/Os with 5V tolerant capability ?5-channel DMA controller ?One 12-bit, 1.0 μs ADC (up to 16 channels)–Conversion range: 0 to 3.6 V –Separate analog supply: 2.4 V to 3.6 V ?Calendar RTC with alarm and periodic wakeup from Stop/Standby ?11 timers –One 16-bit advanced-control timer for six-channel PWM output –Up to seven 16-bit timers, with up to four IC/OC, OCN, usable for IR control decoding –Independent and system watchdog timers –SysTick timer ?Communication interfaces –Up to two I 2C interfaces –one supporting Fast Mode Plus (1 Mbit/s) with 20 mA current sink,–one supporting SMBus/PMBus.–Up to four USARTs supporting master synchronous SPI and modem control; one with auto baud rate detection –Up to two SPIs (18 Mbit/s) with 4 to 16 programmable bit frames –USB 2.0 full-speed interface with BCD and LPM support ?Serial wire debug (SWD) ?All packages ECOPACK ?2 TSSOP20 https://www.360docs.net/doc/2815494564.html,

STM32F4使用手册

January 2014DocID022256 Rev 4 1/42 Introduction The STM32F4DISCOVERY helps you to discover the STM32F407 & STM32F417 lines’ high-performance features and to develop your applications. It is based on an STM32F407VGT6 and includes an ST-LINK/V2 embedded debug tool interface, ST MEMS digital accelerometer, ST MEMS digital microphone, audio DAC with integrated class D speaker driver, LEDs, pushbuttons and a USB OTG micro-AB connector. 1.Picture not contractual https://www.360docs.net/doc/2815494564.html,

Contents UM1472 Contents 1Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2Quick start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.1Getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.2System requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.3Development toolchain supporting the STM32F4DISCOVERY . . . . . . . . . 6 2.4Order code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 3Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 4Hardware and layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 4.1STM32F407VGT6 microcontroller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 4.2Embedded ST-LINK/V2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.2.1Using ST-LINK/V2 to program/debug the STM32F4 on board . . . . . . .14 4.2.2Using ST-LINK/V2 to program/debug an external STM32 application . .15 4.3Power supply and power selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 4.4LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 4.5Pushbuttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 4.6On board audio capability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 4.7USB OTG supported . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 4.8Motion sensor (ST MEMS LIS302DL or LIS3DSH) . . . . . . . . . . . . . . . . . 17 4.9JP1 (Idd) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 4.10OSC clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 4.10.1OSC clock supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19 4.10.2OSC 32KHz clock supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19 4.11Solder bridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 4.12Extension connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 5Mechanical drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 6Electrical schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 7Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41

python常用函数年初大总结

1.常用内置函数:(不用import就可以直接使用) help(obj) 在线帮助, obj可是任何类型 callable(obj) 查看一个obj是不是可以像函数一样调用 repr(obj) 得到obj的表示字符串,可以利用这个字符串eval重建该对象的一个拷贝 eval_r(str) 表示合法的python表达式,返回这个表达式 dir(obj) 查看obj的name space中可见的name hasattr(obj,name) 查看一个obj的name space中是否有name getattr(obj,name) 得到一个obj的name space中的一个name setattr(obj,name,value) 为一个obj的name space中的一个name指向vale这个object delattr(obj,name) 从obj的name space中删除一个name vars(obj) 返回一个object的name space。用dictionary表示 locals() 返回一个局部name space,用dictionary表示 globals() 返回一个全局name space,用dictionary表示 type(obj) 查看一个obj的类型 isinstance(obj,cls) 查看obj是不是cls的instance issubclass(subcls,supcls) 查看subcls是不是supcls的子类 类型转换函数 chr(i) 把一个ASCII数值,变成字符 ord(i) 把一个字符或者unicode字符,变成ASCII数值 oct(x) 把整数x变成八进制表示的字符串 hex(x) 把整数x变成十六进制表示的字符串

stm32f407数据手册中文

1.参考 1. Stm32f4数据手册:stm32f407zgt6.pdf 2. Stm32f4中文手册:stm32f4xx中文参考手册.pdf 3.开发板示意图:Explorer stm32f4_ Vxx_ SCH.pdf 2.芯片内部资源 1.芯片图片 2.芯片参数表 3.内核 (1)32位高性能Arm Cortex-M4处理器 (2)时钟:最高168MHz,实际上比频率高一点(3)支持FPU(浮点运算)和DSP指令 4. IO端口 (1)Stm32f407zgt6:144针114 IO端口

(2)大多数IO端口可以承受5V(模拟通道除外) (3)支持调试:SWD和JTAG,SWD只需要2条数据线 5.记忆 (1)内存容量:1024k闪存,192K SRAM 6.时钟,复位和电源管理 (1)1.8?3.6V电源和IO电压 (2)上电复位和可编程掉电监控 (3)强大的时钟系统 -4?26m外部高速晶体振荡器 内部16 MHz高速RC振荡器 -内部锁相环(PLL),在PLL频率加倍后,一般系统时钟是外部或内部高速时钟-外部低速32.768k晶体振荡器,主要用作RTC时钟源 7.低功耗

(1)三种低功耗模式:睡眠,停止和待机 (2)RTC和备用寄存器可以由电池供电 8.广告 (1)3个12位AD [最多24个外部测试通道] (2)内部通道可用于内部温度测量 (3)内置参考电压 9,DA (1)两个12位Da 10,DMA (1)16个具有FIFO和突发支持的DMA通道 (2)支持的外设:定时器,ADC,DAC,SDIO,I2S,SPI,I2C和USART 11.多达17个计时器 (1)10个通用计时器(TIM2和tim5为32位)

STM32F407xx芯片手册第1到3章中文翻译

1文档约定 寄存器缩写列表 下面的缩写用于描述寄存器 Read/Write(rw)软件可读写 Read-Only(r)软件只读 Write-only(w)软件只写 Read/clear(rc_w1)软件可读,写1清除,写0无作用 Read/clear(rc_w0)软件可读,写0清除,写1无作用 Read/clear by read软件可读,读后自动清零,写0无作用Read/set(rs)软件可读,可置位,写0无作用 Read-only write Trigger(rt_w)软件可读,写0或1翻转此位 Toggle(t)写1翻转,写0无作用 Reserved(Res.)保留位,必须保持复位值

2存储器和总线架构 2.1系统架构 主系统包括32位多层互联AHB总线阵列,连接以下部件: Height masters —Cortex TM-M4F内核I-Bus(指令总线),D-bus(数据总线)和S-bus(系统总线)—DMA1存储器总线 —DMA2存储器总线 —DMA2外设总线 —以太网DMA总线 —USB OTG HS DMA总线 Seven slaves —内置Flash存储器指令总线 —内置Flash存储器数据总线 —主内置SRAM1(112KB) —辅助内置SRAM2(16KB) —AHB1外设,包括AHB到APB的桥以及APB外设 —AHB2外设 —FSMC接口 总线矩阵提供从主设备到从设备的访问,即使在有若干高速外设同时运行的情况下也能并行访问并高效运转。这个架构如图1所示。 注意:64KB的CCM(内核耦合存储器core coupled memory)数据RAM并不是总线矩阵的一部分,它只能通过CPU来访问。

Python学习手册

Python学习手册 2014/01/16 第一部分:使用入门

1Python安装与测试 1.1下载地址 1.2安装注意 选择添加系统环境变量 1.3测试 Win+R>cmd>python 2如何运行程序 2.1基本语句 2**8表示2^8; Windows下可以使用Ctrl+Z来推出Python。 *对于数字来说,表示相乘,对于字符来说表示重复。不懂得话直接在交互模式下尝试。 交互提示模式也是一个测试程组件的地方:引入一个预编码的模块,测试里面的函数,获得当前工作目录的名称。 注意缩进(4个空格); 回车(Enter)两次,多行语句才会执行。 执行python,注意文件后缀为.py。

2.2UNIX可执行脚本(#!) 他们的第一行是特定的。脚本的第一行往往以字符#!开始(常叫做“hash bang”),其后紧跟着机器Python解释器的路径。 他们往往都拥有可执行的权限。Chmod+x 来修改可执行权限。 注意没有后缀名。Unix下运行命令为: % brain 运行结果: The Bright Side of Life… 2.3Unix env查找技巧 避免硬编码Python解释器的路径,env程序可以通过系统的搜索路径的设置定位Python解释器。这种方式比中的方法更常用。 2.4Windows下input的技巧 在windows系统下,双击后,会一闪而过,这时候就可以使用input()。一般来说input读取标准输入的下一行,如果还没有得到输入,就一直等待输入。从而达到了让脚本暂停的效果。 运行结果: 缺陷:看不到错误信息。 2.5模块导入和重载 每一个以扩展名py结尾的Python源代码文件都是一个模块。 其他模块可以通过导入这个模块读取这个模块的基础知识。 如上import可以运行,但只是在每次会话的第一次运行,在第一次导入之后,其他的导入都不会再工作。(这是有意设计的结果,导入是一个开销很大的操作) 2.6模块的显要特性:属性 作为替代方案,可以通过这样的语句从模块语句中获得变量名:

stm32f407zgt6中文资料

STM32程序设计案例教程: 本书系统介绍了STM32程序设计的基础知识和实战技巧。本书案例丰富、结构清晰、实用性强。本书可作为高职高专院校电类专业学生的教材使用,也可供相关工程技术人员作为参考用书。 目录: 项目1 STM32的开发步骤及STM32的GPIO端口的输出功能(1) 任务1-1 控制一颗LED发光二极管闪烁(1) 1.1 初步认识STM32的GPIO端口的输出功能(10) 1.2 寄存器及其地址信息(15) 1.3 volatile修饰符的使用及寄存器定义(17) 习题1 (18) 项目2 认识模块化编程(19) 任务2-1 控制一颗LED发光二极管闪烁(19) 2.1 模块化编程(24) 2.2 其他C语言注意事项(25) 2.2.1 用#define和typedef定义类型别名(25) 2.2.2 一些常见的运算符问题(25) 2.2.3 文件包含(26) 2.2.4 关于注释(27) 习题2 (28) 项目3 认识STM32的存储器结构(29)

任务3-1 LED0闪烁控制(29) 3.1 存储器基础知识(30) 3.2 Cortex-M4内核和STM32的存储器结构(31) 3.2.1 Cortex-M4内核的存储器结构(31) 3.2.2 STM32的存储器结构(33) 3.2.3 位带(Bit Band)及位带别名区(Bit Band Alias)的关系(37) 3.3 结构体在STM32中的应用(40) 3.4 通用的I/O端口功能设置函数的设计(42) 任务3-2 跑马灯的实现(44) 习题3 (47) 项目4 精确延时的实现—SysTick 定时器的原理及其应用(48) 任务4-1 蜂鸣器发声控制(48) 4.1 SysTick定时器介绍(52) 4.2 嘀嗒定时器的延时应用(55) 习题4 (57) 项目5 机械按键的识别——初步认识GPIO端口的输入功能(58) 任务5-1 识别机械按键的按下与弹起(58) 5.1 STM32的GPIO端口的数据输入功能(65) 5.1.1 GPIO端口位的数据输入通道(65)

python-ctypes模块中文帮助文档

内容: .加载动态链接库 .从已加载的dll中引用函数 .调用函数1 .基本的数据类型 .调用函数2 .用自己的数据类型调用函数 .确认需要的参数类型(函数原型) .返回值 .传递指针 .结构和联合 .结构或联合的对齐方式和字节的顺序 .结构和联合中的位 .数组 .指针 .类型转换 .未完成的类型 .回调函数 .访问dlls导出的值 .可变长度的数据类型 .bugs 将要做的和没有做的事情 注意:本文中的代码例子使用doctest确保他们能够实际工作。一些代码例子在linux和windows以及苹果机上执行有一定的差别 注意:一些代码引用了ctypes的c_int类型。它是c_long在32位机子上的别名,你不应该变得迷惑,如果你期望 的是c_int类型,实事上打印的是c_long,它们实事上是相同的类型。 加载动态链接库 ctypes加载动态链接库,导出cdll和在windows上同样也导出windll和oledll对象。 加载动态链接库后,你可以像使用对象的属性一样使用它们。cdll加载使用标准的cdecl调用约定的链接库, 而windll库使用stdcall调用约定,oledll也使用stdcall调用约定,同时确保函数返回一个windows HRESULT错误代码。这错误 代码自动的升为WindowsError Python exceptions,当这些函数调用失败时。 这有一些windows例子,msvcrt是微软的c标准库,包含大部分的标准c函数,同时使用cdecl调用约定。 注:cdecl和stdcall的区别请见https://www.360docs.net/doc/2815494564.html,/log-20.html >>> from ctypes import * >>> print windll.kernel32 # doctest: +WINDOWS

stm32f407数据手册中文

stm32f407数据手册中文 STM32F4是由ST(意法半导体)开发的一种高性能微控制器。其采用了90 纳米的NVM 工艺和ART(自适应实时存储器加速器,Adaptive Real-Time MemoryAccelerator?)。 简介: ST(意法半导体)推出了以基于ARM® Cortex?-M4为内核的STM32F4系列高性能微控制器,其采用了90 纳米的NVM 工艺和ART(自适应实时存储器加速器,Adaptive Real-Time MemoryAccelerator?)。 ART技术使得程序零等待执行,提升了程序执行的效率,将Cortext-M4的性能发挥到了极致, 使得STM32 F4系列可达到210DMIPS@168MHz。 自适应实时加速器能够完全释放Cortex-M4 内核的性能;当CPU 工作于所有允许的频率(≤168MHz)时,在闪存中运行的程序,可以达到相当于零等待周期的性能。 STM32F4系列微控制器集成了单周期DSP指令和FPU(floating point unit,浮点单元),提升 了计算能力,可以进行一些复杂的计算和控制。 STM32 F4系列引脚和软件兼容于当前的STM32 F2系列产品。 优点 兼容于STM32F2系列产品,便于ST的用户扩展或升级产品,而保

持硬件的兼容能力。 集成了新的DSP和FPU指令,168MHz的高速性能使得数字信号控制器应用和快速的产品开发达到了新的水平。提升控制算法的执行速度和代码效率。 先进技术和工艺 - 存储器加速器:自适应实时加速器(ART Accelerator? ) - 多重AHB总线矩阵和多通道DMA:支持程序执行和数据传输并行处理,数据传输速率非常快 - 90nm工艺 高性能 - 210DMIPS@168MHz - 由于采用了ST的ART加速器,程序从FLASH运行相当于0等待更多的存储器 - 多达1MB FLASH (将来ST计划推出2MB FLASH的STM32F4) - 192Kb SRAM:128KB 在总线矩阵上,64KB在专为CPU使用的数据总线上高级外设与STM32F2兼容 - USB OTG高速480Mbit/s - IEEE1588,以太网MAC 10/100 - PWM高速定时器:168MHz最大频率 - 加密/哈希硬件处理器:32位随机数发生器(RNG) - 带有日历功能的32位RTC:<1 μA的实时时钟,1秒精度 更多的提升

相关文档
最新文档