STM8 delay implementation of delay_us and delay_ms in Cosmic-C inline assembly. All delay done using inline macro _delay. Register X used as cycle counter, number of cycles per microsecond calculated by US and MS macros (decrement/branch lasts 3 CPU... Electronics Projects, STM8-bit BCD Cycle Delay and 1 Wire Library "arm project, microcontroller projects,
STM8 delay implementation of delay_us and delay_ms in Cosmic-C inline assembly. All delay done using inline macro _delay. Register X used as cycle counter, number of cycles per microsecond calculated by US and MS macros (decrement/branch lasts 3 CPU ticks). Millisecond delays made by delay_ms function. STM8 1wire library Library intended for communication with 1-wire devices. delay routines. To use it define (or edit ds1w.h) in/out port and bit macros DS1W_IN_PORT, DS1W_OUT_PORT, DS1W_BIT. STM8 bin to BCD conversions Useful for number indication. There are 8bit, 16bit, and 32bit conversions (Cosmic inline-asm). 8bit and 16bit conversions use hardware division, 32bit conversion done by shifts and BCD correction.
STM8 Library files:
FILE DOWNLOAD LINK LIST (in TXT format): LINKS-19773.zip
Source: STM8-BIT BCD CYCLE DELAY AND 1 WIRE LIBRARY
Related projects
Interfacing and Communicating with the 68HC05/705 Microcontroller Family
This document provides information necessary to interface the Andromeda Research EPROM+ programming system to certain members of the Motorola 68HC05/705 microcontroller family....
Other MicrocontrollersAVR Microcontroller Based Electronic Voting Machine
Introduction The use of electronic voting machines has become common in many countries due to technological advancements. However, the emergence of the...
Other MicrocontrollersSimulating the Water Cycle in a Desert
Abstract: The objective of my project is to create an automated watering system for succulent plants. In this project, an Arduino microcontroller...
Other MicrocontrollersHow to get started with TensorFlow Lite for Microcontrollers
Want to build your own TinyML application? This is a detailed approach to getting started with TensorFlow Lite for Microcontrollers! Story Introduction...
Other MicrocontrollersTemperature Access Point Using an AVR® DA Microcontroller
Inspired by COVID-19 prevention, we have developed a system that measures the temperature of persons before they enter a building by Temperature...
Other MicrocontrollersIn-depth: TensorFlow Lite for Microcontrollers – Part 2
This blog details the inner workings of TensorFlow Lite for Microcontrollers and the role of Flatbuffers in them. Story of TensorFlow Lite...
