Skip to content

Navigation Menu

Toggle navigation

Sign in

Product

GitHub Copilot

Write better code with AI

GitHub Advanced Security

Find and fix vulnerabilities

Actions

Automate any workflow

Codespaces

Instant dev environments

Issues

Plan and track work

Code Review

Manage code changes

Discussions

Collaborate outside of code

Code Search

Find more, search less

Explore

Why GitHub

All features

Documentation

GitHub Skills

Blog

Solutions

By company size

Enterprises

Small and medium teams

Startups

Nonprofits

By use case

DevSecOps

DevOps

CI/CD

View all use cases

By industry

Healthcare

Financial services

Manufacturing

Government

View all industries

View all solutions

Resources

Topics

AI

DevOps

Security

Software Development

View all

Explore

Learning Pathways

Events & Webinars

Ebooks & Whitepapers

Customer Stories

Partners

Executive Insights

Open Source

GitHub Sponsors

Fund open source developers

The ReadME Project

GitHub community articles

Repositories

Topics

Trending

Collections

Enterprise

Enterprise platform

AI-powered developer platform

Available add-ons

GitHub Advanced Security

Enterprise-grade security features

Copilot for business

Enterprise-grade AI features

Premium Support

Enterprise-grade 24/7 support

Pricing

Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Cancel

Submit feedback

Saved searches

Use saved searches to filter your results more quickly

Cancel

Create saved search

Sign in

Sign up

Reseting focus

TG9541

/

XY-LPWM

Public

Notifications
You must be signed in to change notification settings

Fork
5

Star
7

Experiments with the XY-LPWM module

License

MIT license

7
stars

5
forks

Branches

Tags

Activity

Star

Notifications
You must be signed in to change notification settings

Code

Issues

Pull requests

Actions

Projects

Security

Insights

Additional navigation options

TG9541/XY-LPWM

master

1 Branch3 Tags

Go to file

Code

Folders and files

Name

Name

Last commit message

Last commit date

Latest commit

TG9541

Update README.md, fixes #1

Sep 25, 2023

040dda1 · Sep 25, 2023

History
9 Commits

XY-LPWM

XY-LPWM

basic UI with EEPROM store and PWM output

May 12, 2020

.gitignore

.gitignore

Initial commit

May 7, 2020

.travis.yml

.travis.yml

Travis-CI auth token

May 11, 2020

LICENSE

LICENSE

Initial commit

May 7, 2020

Makefile

Makefile

LCD code refactored, TIM1 enabled

May 11, 2020

README.md

README.md

Update README.md, fixes #1

Sep 25, 2023

TIM2PWM

TIM2PWM

basic UI with EEPROM store and PWM output

May 12, 2020

View all files

Repository files navigation

README

MIT license

STM8 eForth experiments with the XY-LPWM board

Hardware

J3 ICP Pin

Signal

1

+3.3V (supply)

2

NRST

3

SWIM and serial console

4

STM8S003F3P6 Vcap (do not connect)

5

GND

Recently XY-LPWM modules are based on the Nuvoton N76E003AT20 controller which is a MCS51 type "pin-compatible" replacement for the STM8S003F3P6 which is otherwise incompatible. A new board has appeared that uses an unknown µC in an SO16 package. This means it's getting more risky to use this board if you intend modify it.

This chip must be replaced for using STM8 eForth.

Building

Run make on a Linux system to...

pull dependencies

build the STM8 eForth board package

transfer board Forth code from XY-LPWM/board.fs

STM8 eForth Console

In order to free up the STM8S UART for development, the Forth console uses a simulated half-duplex serial interface on PD1/SWIM. The serial console and an ST-LINK V2 (or a corresponding USB dongle) can be connected in parallel:

XY-LPWM . .----o serial TxD "TTL"
. | (e.g. "PL2303" USB serial converter)
. ---
. / \ e.g. 1N4148
. ---
ICP header . |
. *----o serial RxD "TTL
. |
VCC------------>>-----+----o ST-LINK 3.3V
. |
Vcap----------->> NC |
. |
STM8 PD1/SWIM-->>-----*----o ST-LINK SWIM
.
NRST----------->>----------o ST-LINK NRST
.
GND------------>>-----*----o ST-LINK GND
. |
................ .----o serial GND

About

Experiments with the XY-LPWM module

Topics

lcd-display

stm8

low-cost

eforth

pwm-generator

xy-lpwm

Resources

Readme

License

MIT license

Activity

Stars

7
stars

Watchers

3
watching

Forks

5
forks

Report repository

Releases
3

untagged-8e6a8b76cb26ae9be197

Latest

May 11, 2020

+ 2 releases

Packages

No packages published

Languages

Assembly
62.9%

C++
15.7%

Forth
11.7%

Makefile
9.7%

Footer

© 2025 GitHub, Inc.

Footer navigation

Terms

Privacy

Security

Status

Docs

Contact

Manage cookies

Do not share my personal information