Template: Open103C User Manual
Getting Started with modules
We provide various modules for Open103C 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.54
- Programmer/Debugger:ULINK/V2
- Programming/Debugginginterface: JTAG/SWD
- Resultof demos which based on serial port are all checked via SSCOM32, defaultconnection is connect the serial port converter to the USART1 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 |
5IOs
Demo
5I/Os demo,detect the 8 independent button is pressed or not
Hardwareconnection
- Connect the "5IO Keypad" to the onboard 8I/Os interface (make sure the G pin on the module connects to the GND pin on the 8I/Os)
Operation and result
- The below information will be printed on the serial debuggingassistant:
ADC
Overview
AD acquisitiondemo
Hardwareconnection
- Connect the Analog Test Board to the board via 8I/Os interface
Operationand result
- Rotate the potentiometer on the Analog Test Board, the belowinformation will be printed on the serial debugging assistant (the KEY value islarger indicates that the current voltage is larger):
CAN-LoopBack
Overview
Development boardinternal CAN demo
Hardware connection
Operation and result
The belowinformation will be printed on the serial debugging assistant:
CAN-Normal
Overview
CANcommunication between two Open103C boards
Hardwareconnection
Two "SN65HVD230 CAN Board" are required, connect them to two Open103C board respectively;
Connect the two CAN board via DuPont wire(CANL->CANL,CANH->CANH)
Operationand result
- Thebelow information will be printed on the serial debugging assistant:
ENC28J60
Overview
The developmentboard communicates with the PC via Internet
Hardware connection
- Connect the "ENC28J60 Ethernet Board" to the onboard SPI interface, then connect it to PC through an Ethernet cable
The IP of the PC configuring as 192.168.0.xxx;for example:
Configuring IPof both the PC and the module on the same network:
Right click the Internet->Properties -> ClickLocal connection->ClickProperties->FindInternet Protocol Version4(TCP/IP V4, the followingdialog box will pop up, set the appropriate IP address, subnet mask, anddefault gateway:
IP address: 192.168.0.11
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.0.1
Operation andresult
Open thebrowser; enter 192.168.0.100/888; press the Enter key:
GPIO_LED _JOYSTICK
Overview
Change LEDstatus via button, joystick
Hardware connection
Short the LED JMP,JOYSTICK JMP,KEY JMP
Operation and result
Push the button orjoystick, the LED status should keep changing accordingly
I2C
Overview
Read and writedata on E2PROM via I2C protocol
Hardware connection
- Connect the AT24/FM24 Board to the board via I2CX interface( connect to I2C1 or I2C2 depends on the program)
Operation and result
- The below information will be printed on the serialdebugging assistant:
LCD22
Overview
This LCD is 2.2inch resistive touch screen LCD, the resolution is 320x240, drive by mode ofSPI, greatly reduce the pins, MCU with little IOs can also available to driveit.
This demo showsdot, the drawing line, the drawing circle, character, etc displayed on the LCD.
Hardware connection
- Connect the "2.2inch 320x240 Touch LCD (A)" to the board
Operation and result
Display image on the LCD
LCD22_TouchPanel
Overview
Calibrate thetouch screen by click
three times,and then enter into drawing board in the touch screen interface.
You can drawlines freely on the drawing board.
Hardware connection
Connect the "2.2inch320x240 Touch LCD (A)" to the board
Operation and result
Display image on the LCD
Display image on the LCD
Application
Handheld device display
Micro SD
Overview
Open103C drive SD card viaSPI interface; Open103C read and write SD card
Hardware connection
- Connect the Micro SD Storage Board (with SD card) to the board via SPI1 interface
Software configuration
Operation and result
Thebelow information will be printed on the serial debugging assistant:
NRF24L01
Overview
NRF24L01 transmits datavia wireless way.
Hardware connection
- Connect the NRF24L01 Board to the board via SPI interface
Software connection
Two NRF24L01are needed for this demo, the software configuring as below:
Whenconfiguring as mode of transmitting, enabled: #define T_O_R 1, comment out: //#define T_O_R 0;
Whenconfiguring as mode of receiving, enable: #define T_O_R 0,comment out: //#define T_O_R 0
Operation and result
Messagewill be printed on the serial debugging assistant.
One-Wire
Overview
Connect theDS18B20, detect the temperature
Hardware connection
Connect the DS18B20 to theonboard One-wire socket.
Operation and result
The belowinformation will be printed on the serial debugging assistant:
RTC
Overview
Open103Conboard RTC demo
Hardware connection
Operation and result
The belowinformation will be printed on the serial debugging assistant:
SPI
Overview
Drives the AT45DBXXDataFlash Board via SPI interface
Hardware connection
- Connect the "AT45DBXX DataFlash Board" to the onboard SPIX interface (connect to SPI1 or SPI2 depends on the program)
- Connect a serial port converter to the onboard USART2 interface
Operation and result
Thebelow information will be printed on the serial debugging assistant:
Ucos II
Overview
Ucos ii demo, run twotasks, one is LED, the other is LCD; switching the two tasks
Hardware connection
- Short the LED jumper
- Connect the "2.2inch 320x240 Touch LCD (A)" to the board
Operation and result
LCD displays message, LEDskeep blinking at the same time
USB-JoyStick Mouse
Overview
Open103C USB mouse demo,Open103C works as USB device to control the mouse
Hardware connection
- Connect the board to the PC through USB cable
Software configuration
Operation and result
An USB devicewill appear on the PC device manager:
Control the computer cursor by joystick
VS1003B
Overview
Play music via VS1003B.
Hardware connection
- Connect the "VS1003B MP3 Board" to the onboard SPI interface
Operation and result
- VS1003 (GPIO): P0 LEDkeep blinking
- VS1003 (line in): canhear music from the PC
- VS1003 (line out): canhear music from the MCU FLASH
- VS1003 (record): can hearsound from the microphone