Programming and Simulation of the PY32C673 Microcontroller Using PY32 LINK

The PY32C673 series microcontrollers utilize a high-performance 32-bit ARM® Cortex®-M0+ core, with up to 64 Kbytes of embedded flash and 8 Kbytes of SRAM memory, operating at a maximum frequency of 72 MHz. The chip integrates multiple communication peripherals such as I2C, SPI, USART, a 12-bit ADC, four 16-bit timers, one 32-bit timer, as well as two comparators, two operational amplifiers, and one LCD driver.This article describes the process of programming and simulating the PY32C673 microcontroller using PY32 LINK.

1. Programming with PY32 LINK

1. Serial Connection:

PY32 LINK

PY32C673

3.3V

VCC

GND

GND

DIO

SWDIO

CLK

SWCLK

2. Select the Emulator

Programming and Simulation of the PY32C673 Microcontroller Using PY32 LINK

Programming and Simulation of the PY32C673 Microcontroller Using PY32 LINK

3. Compile and Download:

Programming and Simulation of the PY32C673 Microcontroller Using PY32 LINK

4. For the LED example routine, after successful programming, the LED will blink.

2. Using PY32 Link for Simulation

1. Connection of Simulation Tools

PY32 Link

PY32C673

3.3V

VCC

GND

GND

DIO

SWD

CLK

SWCK

2. Select the Emulator

Select the magic wand and enter Debug to choose the emulator.

Programming and Simulation of the PY32C673 Microcontroller Using PY32 LINK

After selecting the emulator, click settings to check if the microcontroller has been recognized.

Programming and Simulation of the PY32C673 Microcontroller Using PY32 LINK

3. Click the magnifying glass to successfully enter simulation mode.

Programming and Simulation of the PY32C673 Microcontroller Using PY32 LINK

Set breakpoints and run successfully.

Programming and Simulation of the PY32C673 Microcontroller Using PY32 LINK

Leave a Comment