6LAil1

STC32G12K128-LQFP64 Minimum System - Core Board

 
Overview
The STC32G12K128 has been heavily advertised recently. You can contact their customer service to apply for a test sample of this development board, mainly to prepare for future development. The following is the IO test code
I need : #include sbit LED_WORK = P5^3; void delayMs(int ms); void main() {     // Set to quasi-bidirectional mode     P5M0 &= ~0x08;     P5M1 &= ~0x08;     //P5M0 = 0x00;     //P5M1 = 0x00;     while(1) {         LED_WORK = 0x00;         delayMs(300);         LED_WORK = 0xFF;         delayMs(160);     } } void delayMs(int ms) //1 millisecond@11.0592MHz {     while ( --ms ) {         AUXR |= 0x80; //Timer clock 1T mode         TMOD &= 0xF0; //Set timer mode         TL0 = 0xCD; // Set the initial value of the timer         TH0 = 0xD4; // Set the initial value of the timer         TF0 = 0; // Clear the TF0 flag         TR0 = 1; // Start timer 0         // Wait for timer overflow         while (TF0 == 0); // Wait for the TF0 flag to be set         TR0 = 0; // Stop timer 0     } } The attached file contains a pre-compiled hex file, which can be directly burned (STC-ISP). This is convenient for those who haven't installed C251.
 
 










   


   



       



   











       






 
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2026-03-26 17:37:55

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号