OSO STC8H1K28

OSO STC8H1K28

OSO-STC development board microcontroller STC8H1K28

programing mendukung :
keil C51 uvision 4
platformio intel-C51
bascom 8051

8051-based microcontroller with 1T(1-clock) High-Speed Core,
Up to 29 I/O Lines,
5 Timers/Counters,
Build-in up to 35MHz oscillator,
28K bytes flash ROM,
1024 bytes data RAM,
On-chip EEPROM,
2 UARTs,
WDT,
ISP/IAP,
PWM,
CMP,
ADC,
I2C,
SPI
gb1: board oso-stc8h1k28



sample program dan software keil c51 download

#include <reg51.h>

sbit led1 = P3 ^ 3;    //pin output P33
sbit led2 = P3 ^ 4;    //pin output P34
sfr P3M0 = 0xb2;
sfr P3M1 = 0xb1;

void Delay1000ms() //@11.0592MHz
{
  unsigned char i, j, k;
  i = 43;
  j = 6;
  k = 203;
  do
  {
    do
    {
      while (--k)
        ;
    } while (--j);
  } while (--i);
}

void main()
{
  P3M0 = 0x18;
  P3M1 = 0x00;

  while (1)
  {
    led1 = !led1;
    led2 = !led2;
    Delay1000ms();
  }
}

gb2: koneksi downloader

gb3: top
gb4: bootom

gb5: port pin



Popular posts from this blog

OSO STC8H1K28 pinout