STM8-BIT BCD CYCLE DELAY AND 1 WIRE LIBRARY

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-BIT BCD CYCLE DELAY AND 1 WIRE LIBRARY

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


About The Author

Muhammad Bilal

I am a highly skilled and motivated individual with a Master's degree in Computer Science. I have extensive experience in technical writing and a deep understanding of SEO practices.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.