Giter Site home page Giter Site logo

jsokol805 / stc15clock Goto Github PK

View Code? Open in Web Editor NEW
18.0 4.0 9.0 2.69 MB

replacement software for cheap chinese DIY led clock based on STC15W404AS MCU

License: MIT License

C 92.88% Makefile 1.53% C++ 5.60%
mcu stc stc15w404as diyclock 8051 mcs51 stc15w stc15

stc15clock's Introduction

stc15clock

Replacement software for cheap chinese DIY led clock based on STC15W404AS MCU

Building

Compiler of choice is sdcc, avaliable on virually every platform. As my development envirnoment is based on Linux, this is the only OS currently tested.

Simply go into src directory, run make and you should get stc15clock.hex ready to be flashed onto MCU.

Configuration

There are currently two hardware revisions supported, but further compile-time configuration has to be made in src\stc15_display.h. For display to function correctly you need to specify how common display pin should be driven (LOW or HIGH state).

  • rev.A - integrated 4 digit display, without transistors for driving the display - COMMON_PIN_ACTIVE_STATE = 1
  • rev.B - 4 single digits displays, with transistors present - COMMON_PIN_ACTIVE_STATE = 0

Schematics for both revisions are avaliable in docs folder.

Flashing

I'm using stcgal (https://github.com/grigorig/stcgal) for uploading code to the device

stc15clock's People

Contributors

alexkollert avatar jsokol805 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

stc15clock's Issues

led display blinks

separate activation/deactivation levels seems to not work as intended

P3 bit Configuration not correct in _digit()?

hello, I like your project and also have a DIY Clock with the STC15W404AS. Flashed your program on mine and the digits are not shown correctly. After changing two lines in _digit() method to
P3 |= 0x3C;
P3 &= ~(4 << (3 - pos));
the digits are now shown correctly. Do you have the same issue?

Need HEX file please

I want HEX file that I can upload to MCU. I have STC15F204EA Chip in the pcb. Pl send as I do not have knowledge to use compilers

I want main.hex and eeprom.hex file

Hello.
I want main.hex and eeprom.hex file that I can upload to MCU.
I have STC15W404AS Chip in the pcb. I do not have knowledge to use compilers.
I use the STC-ISP program v6.86U
Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.