Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mgoblin/stc15lib
This C-library contains the code for interaction with STC15W408AS
https://github.com/mgoblin/stc15lib
mcs8051 stc15w408as
Last synced: about 1 month ago
JSON representation
This C-library contains the code for interaction with STC15W408AS
- Host: GitHub
- URL: https://github.com/mgoblin/stc15lib
- Owner: mgoblin
- License: apache-2.0
- Created: 2024-08-28T05:30:52.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-13T04:19:59.000Z (3 months ago)
- Last Synced: 2024-09-14T10:37:00.747Z (3 months ago)
- Topics: mcs8051, stc15w408as
- Language: C
- Homepage:
- Size: 627 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This C-library contains code for interaction with STC15W408AS. STC15W408AS is a micro chip compatible with 8051 architecture.
# Versions history
0.1.0
* first version
* system sfr headers support
* bits manipulations
* uart support0.2.0
* headers flat structure
* doxygen documentation
* add get chip id function (value F51FC47E1D0B52 for STC15W408AS)
* add master clock and divider frequency functions
* adapt delay_ms to clock divider, uart not adapted yet0.3.0
* add master clock output to pin P5.4 or P1.6 with dividers 1, 2, 4
* get mode functions for timer0 and timer2
* get clock divider functions for timer0 and timer2
* timer0 mode0/12T and mode0/1T implementation with sync and interrupt (async) support. No GATE and INT0 support for timer0 running, only TR0 used for start and stop timer . No P3.5 output.
* timer2 mode0/12T and mode0/1T implementation with interrupt (async) support. No P3.0 output.0.4.0
* Enable and disable timer0 mode0 output to P3.5 pin supported now
* Enable and disable timer2 mode0 output to P3.0 pin supported now
* timer0_enable_on_pinINT0_high implemented for timer0 work only on INT0/P3.0 pin is high
* timer0 and timer2 use interrupts module routines
* Interrupts module implemented (with interrupts priority and int0/int1 trigger config support)0.4.1
* frequency module use defines instead of function decl for output hex code decreasing
* interrupts module use defines instead of function decl for firmware size decreasing
* timer module use defines on commons functionality instead of function decl for firmware size decreasing0.5.0
* delay module now use defines instead of func decls
* timer modules now use defines instead of func decl
* timer0_modeX_run_once_and_wait now have only one parameter uint_16 - timer ticks count
* timer0_start and timer2_mode0_start now have only one parameter uint_16 - timer ticks count
* timer0 and timer2 are modules now
* timer0 and timer2 mode0 reload timer routines implemented
* timer0 mode1 implemented
* timer2 mode0 implemented0.6
* timer0 mode 0,1,2,3 module full implementation
* timer2 mode0 module full implementation
* Aux module convert ticks to frequency implemented
* Aux module unsafe convert frequency to ticks
* timer_all.h to timer_common.h renamed
* delay_ms partially rewrited to asm to decrease size
* UART to UART1 renamed
* Fix: UART bias timer0 1T by setting AUXR.7 value to 1.
* timer2 baud rate ticks calculation implementedNext releases todo
* TODO Calculate frequency ranges for 12T/1T timer dividers and MCU clock scales
* TODO Make safe version of timer0_frequency_to_ticks_unsafe
* TODO Make safe version of timer2_frequency_to_ticks_unsafe
* TODO Implement ticks to times part of aux module
* TODO Add example links to module documentation
* TODO Implements counters