STC15W408AS library 0.9.0
|
This C-library contains hardware abstraction layer (HAL) for STC15W408AS.
STC15W408AS is a micro chip compatible with 8051 architecture.
This code is published as Platformio library named STC15 hardware.
After create Platformio project for STC15408AS add to platformio.ini line with library depandency
Where is 0.7.0 STC15 hardware library version.
As alternative in lib_deps line github link could be used.
Where is 0.8.0 STC15 hardware library github tag version.
Each released library version has the tag in github repository.
You can directly manipulate to MCU registers from C-code. STC15Fxx.h should be included.
This library provides hardware astraction laywer (HAL) for high level development tasks. Please read the docs for library modules in Library documentation section (see the docs link).
Most of HAL functionality is C-macros.
The advantage is small firmware code size because macroses are expanded into application.
C-Macroses have some drawbacks.
If you need to use one HAL macros many times the good idea is to wrap macros by C-function.
Module name | Description | Maturity |
---|---|---|
ChipID | Get chip id from ROM | READY |
Delay | CPU cycles based delay | READY |
CPU frequency | CPU frequency slowdown | READY |
Interrupt | Enable and disable interrupts | READY |
Power management | idle, powerdown and wakeup timer | READY |
Reset | Software reset | READY |
Timer | Timer control routines | READY |
UART | Serial port routines | INITIAL SUPPORT |
Watchdog timer | Watchdog timer routines | READY |
Pin | Pin as digital in/out routines | READY |
Other modules does not implemented yet.
See examples in https://github.com/mgoblin/STC15lib/tree/main/examples