Skip to content

surbalo1/RSL10-SysTick-Timestamp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

⏱️ RSL10 SysTick Timestamp System

C ARM RSL10 License

SysTick-based timestamp system with button event counting and low-power sleep mode.

Millisecond precision • Hybrid debounce • SEGGER RTT debugging


📋 Overview

A real-time timestamp and event counter system using the ARM Cortex-M3 SysTick timer. Generates timestamps, counts button presses within a 10-second window, and operates in low-power sleep mode between interrupts.


✨ Features

Feature Description
⏱️ Timestamps 1-second precision (HH:MM:SS format)
🔘 Button Counter Tracks presses in 10-second windows
💡 LED Toggle Visual feedback on button press
🔇 Hybrid Debounce Hardware + software flag protection
😴 Low-Power Sleep Idle between interrupts
🔌 RTT Debug SEGGER RTT output (no UART needed)

🛠️ Hardware

Component Pin Function
Button SW2 DIO5 Input trigger
LED DIO6 Status output
Debugger - J-Link

📊 Example Output (RTT)

[TIMESTAMP] 00:55:45 - LED OFF  
[CONTADOR] Button: 15 times in last 10 sec  

[GPIO] Button pressed! Total: 16 (timestamp: 3348 sec)  
[GPIO] Button pressed! Total: 17 (timestamp: 3348 sec)  
[TIMESTAMP] 00:55:50 - LED ON  
[CONTADOR] Button: 18 times in last 10 sec  

🚀 Quick Start

git clone https://github.com/surbalo1/RSL10-SysTick-Timestamp.git
cd RSL10-SysTick-Timestamp
# Import in onsemi IDE → Build → Flash
# Open SEGGER RTT Viewer to monitor

⚙️ Implementation

Component Details
SysTick 1ms tick → rtc_seconds every 1000 ticks
DIO0_IRQHandler Button interrupt with debounce flag
RTC_PrintTimestamp() Prints time every 5 seconds

📄 License

MIT License


GitHub

About

SysTick-based timestamp system for ON Semiconductor RSL10. Implements button event counting with 10-second window, hybrid debounce, and low-power sleep mode. Uses SysTick instead of RTC for continuous time tracking.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages