Template: Open429Z-D User Manual

From Waveshare Wiki
Jump to: navigation, search

Getting Started with modules

We provide various modules for Open429Z-D User Manual development board aiming to improve your development efficiency. These modules are not only designed for STM32 but also can be used for many other MCU platforms. Let's begin with the demos.

Development Environment

  • KEIL MDK Version:4.7
  • Programmer/Debugger:STM32F429I-DISCO onboard ST-LINK V2
  • Programming/Debugginginterface: SWD
  • ConnectPC to the onboard USB TO UART connector via USB wire
  • Resultof demos which based on serial port are all checked via SSCOM32, onboard PL2303;connect the USB cable to the USB TO UART interface.
  • Serial port assistant SSCOM3.2 settings:
Select a proper COM port
Baud rate 115200
Data bits 8
Stop bits 1
Parity bits None
Flow control None

ADC+DMA

Overview

AD acquisitiondemo

Hardwareconnection

Open429Z-D-User-Manual-2.jpg

  • Connect Analog Test Board to SPI1(ADC+DAC)connector

Operationand result

  • Rotate the onboard potentiometer, the below message will beprinted on the serial debugging assistant:

Open429Z-D-User-Manual-3.png

CAN1 TOCAN2-Normal

Overview

CAN1 TO CAN2communication demo

Hardware connection

Open429Z-D-User-Manual-4.jpg

  • Connect the two CAN modules to the onboard CAN1 and CAN2 interface
  • Connect the two CAN modules via DuPont wires (CANL<->CANL, CANH<->CANH)

Operationand result

  • You may see the below result on the serial debugging assistant:

Open429Z-D-User-Manual-5.jpg

DAC

Overview

DA output demo,output via DMA channel

Hardwareconnection

Open429Z-D-User-Manual-2.jpg

  • Connect the Analog Test Board to the SPI1(ADC+DAC)connector
  • Connect the Analog Test Board onboard 5V interface to the board onboard 5V interface via jumper wire.

Operationand result

  • You may hear sound from the Analog Test Board

DS18B20

Overview

Connect the DS18B20,detect the temperature

Hardware connection

Connect the DS18B20 moduleto the one-wire socket

Operation and result

The below information will be printed on the serial debugging assistant

Open429Z-D-User-Manual-6.png

OV2640

Overview

The development boardcommunicates with the PC via Internet

Hardware connection

Open429Z-D-User-Manual-7.jpg

  • Connect the OV2640 Camera Board to the onboard DCMI interface

Launch theserial debugging assistant, configuring the data as below:

COM: COM3

Baud rate: 115200

Data bits: 8

Parity bits: NO

Stop bits: 1

Operation and result:

Press “user key”, the captured image displayed on the serial debuggingassistant:

Open429Z-D-User-Manual-8.jpg

GPIO_Key

Overview

Button, joystickdemo

Hardware connection

Short the JOYSTICK JMP onboard

Operation and result

Press the joystick, message will beprinted on the serial debugging assistant accordingly.

I2C

Overview

Read and write data on E2PROM via I2Cprotocol

Hardware connection

Open429Z-D-User-Manual-9.jpg

  • Connect the AT24/FM24 Board to the board via I2C connector (select I2C1 or I2C2, depending on the software configuration).

Software configuration

Connect the module to I2C1 interface

Connect the module to I2C2 interface

#define Open_I2C1
//#define Open_I2C2
//#define Open_I2C1
#define Open_I2C2

Operation and result

  • The below information will be printed on the serial debuggingassistant:

Open429Z-D-User-Manual-10.jpg

I2S_UDA1380

Overview

Drive theUDA1380 Board to play music via Fillips I2S protocol

Hardware connection

Open429Z-D-User-Manual-11.jpg

  • Connect the UDA1380 Board to the board via I2S interface.
  • Connect the earphone to the UDA1380 Board via LINEOUT interface

Operation and result

You should hearmusic when press the RESET key

NandFlash_SCB0

Overview

Read and writeNAND FLASH via FMC

Hardware connection

Open429Z-D-User-Manual-12.jpg

  • Connect the NandFlash Board to the board via 8BIT FMC interface.

Operation and result

  • The below information will be printed on the serial debuggingassistant:

Open429Z-D-User-Manual-13.jpg

SAI

Overview

Drive theUDA1380 Board to play music via SAI interface

Hardware connection

Open429Z-D-User-Manual-11.jpg

  • Connect UDA1380 Board to the board via SAI1 interface.
  • Connect the earphone to the UDA1380 Board via LINEOUT connector.

Operation and result

You should hearmusic when press the RESET key.

SD_FatFS

Overview

Read and write SD card, SDcard is FAT file system.

Hardware connection

Open429Z-D-User-Manual-14.jpg

  • Connect the Micro SD Storage Board to the board via SDIO interface.

Insert the SD card to the Micro SD Storage Board socket.

Operation and result

Messagewill be printed on the serial debugging assistant.

SDIO

Overview

Read and writeinformation in SD card

Hardware connection

Open429Z-D-User-Manual-14.jpg

  • Connect the Micro SD Storage Board to the board via SDIO connector.

Insert the SD card to the Micro SD Storage Board socket.

Operation and result

Message will be printed on the serial debugging assistant.

SPI

Overview

Drive the AT45DBXXDataFlash Board via SPI interface

Hardware connection

Open429Z-D-User-Manual-15.jpg

  • Connect the AT45DBXX DataFlash Board via SPI connector. (SPI1 or SPI4, depends on the software configuration

Software connection

Connect the module to SPI1 interface

Connect the module to SPI4 interface

  1. define Open_SPI1

//#define Open_SPI4

//#define Open_SPI1

  1. define Open_SPI4

Operation and result

Info/messages printed onthe serial debugging assistant:

Open429Z-D-User-Manual-16.png

USART

Overview

USART serial portcommunication demo

Hardware connection

Operation and result

Info/messages printed on the serial debuggingassistant:

Open429Z-D-User-Manual-17.png