Today, tpu took out a 2440 board for debugging and found that despite various measures, USBHOST would occasionally not work. UCLK was brought out through CLKOUT0 and checked with an oscilloscope. It was found that when it did not work, UCLK was not stable at all. So after careful consideration, there are several places that affect USB:
External crystal oscillator 16.9344Mhz
UPLL LOCKTIME of LOCKTIME register
UPLLCON
UPLL switch of CLKSLOW register
Next, exclude them one by one:
The crystal oscillator is shared by MPLL and UPLL. I have never heard of MPLL being unstable.
I suspect LOCKTIME is too large (0xffff), but reducing it has no effect.
When UCLK is unstable, it is useless to repeatedly set UPLLCON.
When UCLK is unstable, switching UPLL is effective! When UCLK is stable, switching UPLL will also cause instability.
That is to say, UPLL may fail to synchronize when it starts. But why? UPLL and MPLL should have the same structure, and MPLL never has problems. UPLL just has a lower frequency than MPLL. Let's look for it from the frequency.
Now set a relatively low frequency (such as 7Mhz) for UPLLCON. At this time, no matter how UPLL is turned on and off, UCLK is still not stable. Well, the dawn has appeared! Then set an ultra-high frequency (112Mhz). Haha, no matter how UPLL is turned on and off, or powered on, UCLK is very stable.
The problem can be described as follows: UPLL cannot be reliably started at low frequency.
Solution to the problem: First give UPLL a higher frequency, and then set the required frequency after it works stably.
Note: If you want to turn on and off the UPLL switch in CLKSLOW, you must also follow this setting procedure.
After this modification, the TPU switched on and off the power supply for more than 100 times, and UCLK was always very stable. This is only the case for 2440, but it should also apply to 2410. You can actually test and verify it.
Previous article:S3C2410 touch screen driver code analysis 2
Next article:12864 LCD driver based on s3c2440
Recommended ReadingLatest update time:2024-11-16 15:59
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- DONT_TOUCH Constraint
- Postpartum lamp - what kind of light do women need during confinement?
- 【National Technology N32G430】05 The page is initially displayed, system composition
- Introduction to RF5 Architecture
- Can the input voltage Vi of a logic device be higher than the supply voltage Vcc?
- Share some free ADI high-quality materials and prize-winning activities, welcome everyone to actively participate in the download!
- Please help me with the formatting of articles copied from the official account to Word
- Waveform conversion problem
- Let's take a look at what this circuit does and help analyze it.
- Inverter air conditioner outdoor unit control system based on Zhongying SH32F205