Skip to content

A collection of demos for the STC89C52 chip that go along with my ongoing blog series about 8051 micro-controller derivatives.

License

Notifications You must be signed in to change notification settings

treideme/stc89c52-demos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Collection of STC89C52 Demos using SDCC

See this blog entry for the start of the series and background for this code.

Prerequisites

Building

meson build
ninja -v -C ./build

Flashing

These examples use stcgal as flashing tool. Flashing for particular versions of the firmware can be done via ninja. My BSL version of the chip was not supported by the mainline stcgal, nrifes version seemed to work better.

# Power target off
ninja -v -C ./build flash_<hexname>
# Power target on
# Power-cycle target to see new firmware running

Demos

00 Hello World

Hello World

This demo is a simple hello world application that toggles a LED on pin P2.0.

# Flash using ...
ninja -v -C ./build flash_00_hello
# Adjust the meson.build file to point to the COM port your serial flasher enumerates to.

Manual boostrap of this example without a dev-kit should be doable as follows.

Hello World Drawing source.


(C) 2022 Thomas Reidemeister

About

A collection of demos for the STC89C52 chip that go along with my ongoing blog series about 8051 micro-controller derivatives.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published