{"id":25133115,"url":"https://github.com/professornova/hcs12-clock","last_synced_at":"2025-04-03T01:24:36.945Z","repository":{"id":239714413,"uuid":"800343571","full_name":"ProfessorNova/HCS12-Clock","owner":"ProfessorNova","description":"A clock system for the HCS12 microcontroller, tested on the Dragon12 board. Developed in C and HCS12 assembly.","archived":false,"fork":false,"pushed_at":"2024-08-21T13:44:14.000Z","size":1340,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T15:38:11.410Z","etag":null,"topics":["assembly","clock","hcs12"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ProfessorNova.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-14T06:45:18.000Z","updated_at":"2024-08-23T14:20:32.000Z","dependencies_parsed_at":"2024-06-06T11:46:56.931Z","dependency_job_id":"02ea7b18-ff61-4c40-ab4b-5fb0e18d694a","html_url":"https://github.com/ProfessorNova/HCS12-Clock","commit_stats":null,"previous_names":["professornova/hcs12-clock"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProfessorNova%2FHCS12-Clock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProfessorNova%2FHCS12-Clock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProfessorNova%2FHCS12-Clock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProfessorNova%2FHCS12-Clock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ProfessorNova","download_url":"https://codeload.github.com/ProfessorNova/HCS12-Clock/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246918627,"owners_count":20854855,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["assembly","clock","hcs12"],"created_at":"2025-02-08T15:34:17.003Z","updated_at":"2025-04-03T01:24:36.910Z","avatar_url":"https://github.com/ProfessorNova.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HCS12 Clock Project\n\n## Overview\n\nThis project involves the development of a clock, designed for the HCS12 microcontroller. This application utilizes HCS12's timer module and various other components such as LEDs, LCD, and buttons to create a comprehensive embedded system for timekeeping and temperature measurement. The Program was tested on the Dragon12 development board.\n\n## Features\n\n- **Contributors Display:** Shows the names of the contributors on the LCD. This line is alternated with the Semester every 10 seconds.\n- **Time Display:** Shows current time on an LCD in HH:MM:SS format, updated every second. The LED on Port B.0 toggles once per second to indicate time progression.\n- **Set Mode:** Allows setting the time manually using buttons at port PTH.0, PTH.1, PTH.2 and PTH.3. The LED on port B.7 indicates active Set Mode.\n- **Temperature Display:** Uses an analog-to-digital converter and displays it on the LCD. The isn't any temperature sensor on the Dragon12 board, so the temperature is simulated.\n- **Adjustable Time Format:** Supports both 24-hour and 12-hour formats through conditional compilation.\n\n## Getting Started\n\n### Prerequisites\n\n- **Hardware:** Dragon12 development board with HCS12 microcontroller.\n- **Software:** CodeWarrior IDE for HCS12. (with some modifications to the components)\n\n### Installation\n\n1. Clone the repository to your local machine.\n2. Open the project in CodeWarrior IDE.\n3. Build the project and flash the binary to the Dragon12 board.\n\n### Hint\n\nIf run in the simulator, the program will not work as expected because the button inputs are inverted. To fix this, change `BRCLR` to `BRSET` in the `button.asm` file.\n\n## Modules\n\n- `main.c`: Orchestrates the initialization and main loop of the application.\n- `clock.c`: Manages timekeeping functionalities.\n- `thermometer.c`: Handles temperature measurement and display.\n- `lcd.asm`, `led.asm`, `button.asm`: Drivers for the LCD display, LED control, and button input respectively.\n- `ticker.asm`: Contains the timer interrupt service routine.\n- `decToASCII.asm`: Converts decimal numbers to ASCII for display purposes.\n- `delay.asm`: Implements a delay function for time-sensitive operations.\n\n## Development and Testing\n\nDeveloped using a mix of C and HCS12 assembler, this project emphasizes modular programming and separation of concerns among different functionalities. Testing involves both simulation and physical deployment on the Dragon12 board to ensure robust performance.\n\n## Instructions for Use\n\n1. **Initialization:** On startup, the clock displays the set initial time and periodically updates the display.\n2. **Setting Time:** Enter Set Mode by Pressing the Button on Port PTH.0 to adjust hours (PTH.1), minutes (PTH.2), and seconds (PTH.3) independently.\n3. **Viewing Temperature:** The temperature is displayed continuously and updated every second.\n\n## Acknowledgements\n\nThanks to Hochschule Esslingen for providing the platform and resources necessary for the development of this project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprofessornova%2Fhcs12-clock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprofessornova%2Fhcs12-clock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprofessornova%2Fhcs12-clock/lists"}