当前位置 - 股票行情交易網 - 裝修設計 - STM32F746哪些IO口可以作為並口直接與AD芯片(8個並口的數字輸出)連接。

STM32F746哪些IO口可以作為並口直接與AD芯片(8個並口的數字輸出)連接。

The STM32F745xx and STM32F746xx devices are based on the high-performance ?ARM?Cortex?-M7 32-bit RISC core operating at up to 216 MHz frequency. The ?Cortex?-M7 core features a single floating point unit (SFPU) precision which ?supports all ARM?single-precision data-processing instructions and data types. ?It also implements a full set of DSP instructions and a memory protection unit ?(MPU) which enhances the application security.

The STM32F745xx and STM32F746xx devices incorporate high-speed embedded ?memories with a Flash memory up to 1 Mbyte, 320 Kbytes of SRAM (including 64 ?Kbytes of Data TCM RAM for critical real-time data), 16 Kbytes of instruction ?TCM RAM (for critical real-time routines), 4 Kbytes of backup SRAM available in ?the lowest power modes, and an extensive range of enhanced I/Os and peripherals ?connected to two APB buses, two AHB buses, a 32-bit multi-AHB bus matrix and a ?multi layer AXI interconnect supporting internal and external memories ?access.

All the devices offer three 12-bit ADCs, two DACs, a low-power RTC, ?thirteen general-purpose 16-bit timers including two PWM timers for motor ?control and one low-power timer available in Stop mode, two general-purpose ?32-bit timers, a true random number generator (RNG). They also feature standard ?and advanced communication interfaces.

Key Features

Core: ARM? 32-bit Cortex?-M7 CPU with FPU, adaptive real-time accelerator ?(ART Accelerator?) and L1-cache: 4KB data cache and 4KB instruction cache, ?allowing 0-wait state execution from embedded Flash memory and external ?memories, frequency up to 216 MHz, MPU, 462 DMIPS/2.14 DMIPS/MHz (Dhrystone ?2.1), and DSP instructions.

Memories

Up to 1MB of Flash memory

1024 bytes of OTP memory

SRAM: 320KB (including 64KB of data TCM RAM for critical real-time data) + ?16KB of instruction TCM RAM (for critical real-time routines) + 4KB of backup ?SRAM (available in the lowest power modes)

Flexible external memory controller with up to 32-bit data bus: SRAM, ?PSRAM, SDRAM/LPSDR SDRAM, NOR/NAND memories

Dual mode Quad-SPI

LCD parallel interface, 8080/6800 modes

LCD-TFT controller up to XGA resolution with dedicated Chrom-ART ?Accelerator? for enhanced graphic content creation (DMA2D)

Clock, reset and supply management

1.7 V to 3.6 V application supply and I/Os

POR, PDR, PVD and BOR

Dedicated USB power

4-to-26 MHz crystal oscillator

Internal 16 MHz factory-trimmed RC (1% accuracy)

32 kHz oscillator for RTC with calibration

Internal 32 kHz RC with calibration

Low-power

Sleep, Stop and Standby modes

VBATsupply for RTC, 32×32 bit backup registers + 4KB backup SRAM

3×12-bit, 2.4 MSPS ADC: up to 24 channels and 7.2 MSPS in triple ?interleaved mode

2×12-bit D/A converters

Up to 18 timers: up to thirteen 16-bit (1x low- power 16-bit timer ?available in Stop mode) and two 32-bit timers, each with up to 4 IC/OC/PWM or ?pulse counter and quadrature (incremental) encoder input. All 15 timers running ?up to 216 MHz. 2x watchdogs, SysTick timer

General-purpose DMA: 16-stream DMA controller with FIFOs and burst ?support

Debug mode

SWD & JTAG interfaces

Cortex?-M7 Trace Macrocell?

Up to 168 I/O ports with interrupt capability

Up to 164 fast I/Os up to 108 MHz

Up to 166 5 V-tolerant I/Os

Up to 25 communication interfaces

Up to 4× I2C interfaces (SMBus/PMBus)

Up to 4 USARTs/4 UARTs (27 Mbit/s, ISO7816 interface, LIN, IrDA, modem ?control)

Up to 6 SPIs (up to 50 Mbit/s), 3 with muxed simplex I2S for audio class ?accuracy via internal audio PLL or external clock

2 x SAIs (serial audio interface)

2 × CANs (2.0B active) and SDMMC interface

SPDIFRX interface

HDMI-CEC

Advanced connectivity

USB 2.0 full-speed device/host/OTG controller with on-chip PHY

USB 2.0 high-speed/full-speed device/host/OTG controller with dedicated ?DMA, on-chip full-speed PHY and ULPI

10/100 Ethernet MAC with dedicated DMA: supports IEEE 1588v2 hardware, ?MII/RMII

8- to 14-bit parallel camera interface up to 54 Mbyte/s

True random number generator

CRC calculation unit

RTC: subsecond accuracy, hardware calendar

96-bit unique ID

利用STM32F746單片機的P0端口的P0.0-P0.7連接到壹個***陰數碼管的a-h的筆段上,數碼管的公***端接地。在數碼管上循環顯示0-9數字,時間間隔0.2秒。

2. 電路原理圖

圖4.7.1

3. 系統板上硬件連線

把“單片機系統”區域中的P0.0/AD0-P0.7/AD7端口用8芯排線連接到“四路靜態數碼顯示模塊”區域中的任壹個數碼管的a-h端口上;要求:P0.0/AD0與a相連,P0.1/AD1與b相連,P0.2/AD2與c相連,……,P0.7/AD7與h相連。

4.程序設計內容

(1.LED數碼顯示原理

七段LED顯示器內部由七個條形發光二極管和壹個小圓點發光二極管組成,根據各管的極管的接線形式,可分成***陰極型和***陽極型。

LED數碼管的g~a七個發光二極管因加正電壓而發亮,因加零電壓而不以發亮,不同亮暗的組合就能形成不同的字形,這種組合稱之為字形碼,下面給出***陰極的字形碼見表2

“0”

3FH

“8”

7FH

“1”

06H

“9”

6FH

“2”

5BH

“A”

77H

“3”

4FH

“b”

7CH

“4”

66H

“C”

39H

“5”

6DH

“d”

5EH

“6”

7DH

“E”

79H

“7”

07H

“F”

71H

(2.由於顯示的數字0-9的字形碼沒有規律可循,只能采用查表的方式來完成我們所需的要求了。這樣我們按著數字0-9的順序,把每個數字的筆段代碼按順序排好!建立的表格如下所示:TABLE DB 3FH,06H,5BH,4FH,66H,6DH,7DH,07H,7FH,6FH

5.程序框圖

芯片供應:拍明芯城

品牌:st