* 1. Project function introduction
- - -
Electronic clock based on R7FA2E1A72DFL, including automatic charging, RTC clock, display time and temperature and humidity, buzzer sound and other functions
### * 2. Project attributes
- - -
This project is for participating in the establishment The actual products of the 2023 summer training camp jointly branded by Chuang and Renesas.
The size and packaging have been optimized based on the original official case, and most plug-ins have been changed to SMD packaging to enhance the aesthetics. At the same time, there are more requirements for welding technology and equipment.
Considering that there is no Jlink on hand, instead of leading out the 4P* serial port and 2P*BOOT and 2P*NRST pads, you can use the 4P burning probe combined with tweezers to perform BOOT programming.
With the onboard CH340N, you only need to control reset and BOOT to achieve BOOT programming.
Problem:
* Since the digital tube was welded first during project development, AHT21 was not welded and will be added later.
* CH340N will be sent out inexplicably, which has not been resolved yet.
### * 4. Hardware development
- - -
Use Lichuang EDA Professional Edition to develop
#### * 4.1. 16P Type-c
uses the 16p type-c interface and leads to D+D-.
![type-c 16p.png]

#### * 4.2. CH340N
is equipped with CH340N on board, which has a small package and is half smaller than CH340. It is easy to realize serial port debugging and can also cooperate with BOOT and NRST to realize BOOT programming.
![Onboard CH340N.png]

#### * 4.3. CH340N
leads to BOOT, NRST, and 4P serial port pads. You can use tweezers and 4P programming pin headers to achieve programming. At the same time, due to the characteristics of the pad itself, it improves The aesthetics of the product
! [Burning interface.png]

#### * 4.4. Power switching and dual power automatic switching circuit.
A toggle switch switches the power on and off, and an automatic switching circuit composed of Schottky diode and NMOS .
![Power switching and dual power automatic switching circuit.png]

#### * 4.5. TP4056 charging circuit
uses TP4056 to build a lithium battery charging module and uses polymer lithium batteries, so the charging current is limited to 500MA for better use life. The battery interface is led out by a soldering pad
! [TP4056 charging module.png]

#### * 4.6. RT9013-33G LDO voltage stabilization
Use RT9013-33G to step down and regulate VDD1 to obtain 3.3V power supply for all components on the board.
![RT013.png]

#### * 4.7, ATH21 temperature and humidity module
![AHT21.png]

#### * 4.8, FJ5462AH four-bit clock common cathode LED digital tube
![Display module.png]

#### * 4.9. Button
![Button.png]

#### * 4.9. MCU
![MCu.png]

### * 5. The software part
is based on version 4.40 of FSP (flexible configuration software package), developed using E2Stdio, software environment For the construction and specific code development,
use Renesas Flash Programmer V3.11 for BOOT burning.
Please refer to the tutorial uploaded by Xiao Gong on bilibili.
### * 7. Contest LOGO verification
! [Contest LOG.jpg]

### * 8. Project photos
! [IMG_20230725_193334.jpg]

![IMG_20230725_185720.jpg]

![1690254348738.jpg]

![1690254348768.jpg]

! [ QQ screenshot 20230725121954.png]

![QQ screenshot 20230725121938.png]