2474 views|2 replies

1662

Posts

0

Resources
The OP
 

Frequently Asked Questions about Lingdongwei MM32F103 MCU [Copy link]

 

The MM32F103 series of Lingdongwei products use a 32-bit microcontroller with a high-performance core M3, with a typical operating frequency of up to 144MHZ, built-in high-speed memory, and a rich set of enhanced I/O ports and peripherals connected to the external bus. Five packaging forms are available, including LQFP100, LQFP64, LQFP48, LQFP32 and QFN32. Depending on the packaging form, the peripheral configuration in the device is different. This product is suitable for use in motor drive and application control, medical and handheld equipment, industrial applications, and alarm systems.

SPI


1. Which modes does SPI support?


According to the transmission direction

  • Full-duplex mode, sending and receiving data at the same time, enabling TX and RX at the same time;
  • Half-duplex, read and write in different time periods, DISABLE RX when ENABLE TX, DISABLE TX when ENABLE RX;
  • By sampling timing
  • Mode 0, the clock is low when idle, and the first clock edge is sampled;
  • Mode 1, the clock is low when idle, and the second clock edge is sampled;
  • Mode 2, the clock is high when idle, and the first clock edge is sampled;
  • Mode 3, the clock is high when idle, and the second clock edge is sampled;


2. What are the reasons for abnormal SPI host communication?


Common causes:

Incorrect configuration means no clock output;
incorrect mode configuration means the sampling point is inconsistent with the expectation (SPI_CCTL bit0 = 0 is the second clock edge sampling);
the speed configuration is too fast, which means abnormal waveform;
the data bit configuration is inconsistent with the device, which means the number of CLKs is incorrect.
Incorrect CS signal means the CS signal does not correspond to the device timing;
What are the requirements for Vbat power supply access?
If there is no external battery in the application, it is recommended that VBAT be connected to VDD through a 100nF ceramic capacitor externally. If the external battery is connected, it is recommended to connect a low voltage drop diode between the external VBAT and the power supply to ensure that it is not damaged. If there is no external battery, VBAT needs to be powered even if the RTC function is not used;

Possible causes of KEIL routine compilation failure


Common causes:

The compatible package of Keil4 is not installed. The software name is: MDKCM516_legacySupportMDK4 (most problems)
The Keil project file is moved, resulting in the inability to find the file with the relative path.
The program is too large and exceeds the FLASH or SRAM capacity.


Solution


For questions 1 and 2, connect BOOT0 and BOOT1 to high level, reset or power on again, and then read the ID. If the ID can be read, erase the program in this mode, and then connect BOOT0 and BOOT1 to low level, then the ID can be read.


The KEIL program was compiled successfully, but the download failed.


Common causes:

The hardware circuit is not connected properly. Check whether the debug tool is connected to the JTAG or SWD in the board and whether the chip IDCODE can be read.
If the debug tool can read the chip ID but cannot download, the reason is that the Description model is not selected. The specific configuration selection is shown in the figure below.

External high-speed clock connection


The external passive crystal oscillator circuit is shown in the figure below. The two pins of the crystal oscillator are connected to a capacitor of about 22pf and a 1M feedback resistor. Because there is no integrated feedback resistor inside the chip, a 1M ohm resistor must be connected to ensure that the XTAL starts oscillating.


Common causes of external clock abnormality


When running a program, an external high-speed clock is usually used as the system clock source. Sometimes during debugging, the system clock is abnormal, causing the program to stop running. The following are some possible reasons:

  • The external crystal oscillator has no feedback resistor, resulting in no stable external clock input;
  • External crystal range 8~24MHz;
  • There is a short circuit between the crystal oscillator and the chip pins;
  • The crystal oscillator quality problem causes abnormal oscillation;
  • Chip system clock configuration process error, etc.
This post is from Domestic Chip Exchange

Latest reply

Now there is a dual-core M7 MCU, the main frequency can run at 800MHZ   Details Published on 2024-1-2 11:09
 
 

5

Posts

0

Resources
2
 

I hope China can produce M7 core CPUs, such as STMicroelectronics' STM32H7 series

This post is from Domestic Chip Exchange
 
 
 

4

Posts

0

Resources
3
 

Now there is a dual-core M7 MCU, the main frequency can run at 800MHZ

This post is from Domestic Chip Exchange
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Featured Posts
One week's evaluation information, delivered on time!

Hello, everyone~ My computer crashed this weekend, and I finally fixed it before Monday. ε=(ο`*))) Alas~ But because ...

Relationship between PN conduction voltage drop and current and temperature

*) , the E junction is affected by temperature, and the change in on-state voltage drop is related to Is and Ic The cond ...

[Development and application based on NUCLEO-F746ZG motor] 12. Parameter configuration - timer TIM1 configuration

In the process of controlling the servo motor, in order to make the motor rotate as you want, PWM output control must b ...

【i.MX6ULL】Driver Development 7——Key Input Capture

This post was last edited by DDZZ669 on 2021-11-9 00:04 In the previous articles, we have gradually learned about the ...

【Topmicro Intelligent Display Module】V. Interact with the screen via the network

This post was last edited by Digital Leaf on 2021-11-21 13:31 Topmicro intelligent display module supports network func ...

Embedded Qt-Realize switching between two windows

In the previous article, we introduced how to use Qt program to realize a clock and a stopwatch. In this article, we w ...

Help the national competition, read good books for free! The basic knowledge that must be mastered in preparation for the national competition is in these books~

Attention! To help the national competition, EEWorld is giving away good books for free! The basic knowledge you must ma ...

How to measure current during the SOC chip verification phase?

I used to work on ARM projects such as Rockchip and Xilinx. These solutions were all reference solutions provided by chi ...

Tesla's inventory backlog is revealed: the parking lot is full of new cars, which can be seen from space!

I just saw a piece of news saying that Tesla has a serious inventory backlog. Below are the details. What do you think a ...

Does anyone know the error problem of Pspice for ti?

I want to simulate TI's power supply, but the following error is reported. I can't find it online. Has anyone used TI's ...

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list