1
0
mirror of https://github.com/kalymos/PsNee.git synced 2026-05-20 04:27:12 +00:00
Commit Graph

22 Commits

Author SHA1 Message Date
kalymos
10a054d60c BIOS Patching: Finalizing ISR-based logic for timing stability
Re-implemented Hardware ISR (INT0/INT1): Restored interrupt-driven pulse counting to eliminate polling jitter. Tests confirmed that at 16MHz, software polling is too inconsistent for reliable DATA OVERDRIVE synchronization.
Mechanism Freeze: The core logic (Stabilization -> Silence Detection -> ISR Counting -> Injection) is now finalized and stable.
Portability Note: Maintained a clean structure to allow future non-ISR porting, although the ISR version remains the mandatory standard for ATmega328P @ 16MHz performance.
2026-03-15 21:03:56 +01:00
kalymos
83125594f3 Update BIOS_patching.h
@greptile
2026-03-14 23:23:41 +01:00
kalymos
d0ab3f4322 Merge branch 'PSNee-8.7.0' of https://github.com/kalymos/PsNee into PSNee-8.7.0 2026-03-14 22:45:02 +01:00
kalymos
4a7a429a92 Refactor BIOS patching logic and clean up codebase
New 2-phase sync (Stabilization + Silence detection).
Refactored GPIO macros for faster execution.
Cleaned up SCPH model definitions and fixed backslash warnings.
Removed unused global variables to save RAM.
2026-03-14 22:44:57 +01:00
kalymos
1d7548b027 test BIOS patching functionality 2026-03-08 12:01:12 +01:00
kalymos
6fd0f51cfa replace fixed BOOT_OFFSET_MS with Target Memory Window detection
Improved boot synchronization reliability
2026-03-05 22:59:53 +01:00
kalymos
371db21eae Implement silence detection in BIOS patching
Replaced fixed delay with silence detection mechanism to improve responsiveness.
2026-03-05 20:46:27 +01:00
kalymos
062e6023c0 refactor: fine-tune BIOS patch 2026-03-04 21:27:50 +01:00
kalymos
0065df0110 mor test 2026-03-02 22:25:04 +01:00
kalymos
0ff2612c7c Refactor: Optimization of board detection, injection logic, and global nomenclature
- Board Detection: Added 300ms stabilization delay to filter PU-7/20
  power-up noise and sync with PU-22+ oscillating signals.
- Injection: Added conditional break to allow single-region selection
  and updated WFCK modulation for 7.3/14.6 kHz compatibility.
- Logic: Optimized sector filtering using bitmask (0xD0) and improved
  hysteresis tracking for Standard and SCPH-5903 models.
- Code Quality: Standardized nomenclature (subqBuffer, hysteresis,
  pulseCounter) and added comprehensive English documentation.
- Performance: Reduced binary size by optimizing loops and variable types.
2026-03-01 19:03:32 +01:00
kalymos
11299a9c34 obtimisation 2026-02-28 19:46:25 +01:00
kalymos
10d2310103 The BIOS patch functionality changes will be deferred to a later version. 2026-02-23 19:21:29 +01:00
kalymos
c9b76ed325 BIOS patche neo SCPH-3000 SCPH-1000
I finally completed the value conversion for the BIOS patch without IRS
2026-02-20 21:45:08 +01:00
kalymos
045a7ca532 BIOS patch neo SCPH-5000 SCPH-3500 2026-02-18 21:39:48 +01:00
kalymos
32e3f26712 BIOS patche neo for SCPH-9000_7500 SCPH-7000 SCPH-5500 2026-02-17 22:09:30 +01:00
kalymos
64539aac03 BIOS patch simplification
Removal of ISR and reduction of code in the BIOS patch, for improved portability and robustness.

For now it is only available for the SCPH-100 and 102.
2026-02-16 20:47:07 +01:00
kalymos
fc86f8b951 Refactor pulse counting logic for jitter reduction 2026-02-15 21:24:31 +01:00
kalymos
89dfc829ee test neo BIOS patch 2026-02-15 20:52:21 +01:00
kalymos
b29ea35d15 test refactor: optimize PS1 patch for SCPH-100 using zero-latency polling
Ported the BIOS patch from ISR to manual polling to achieve cycle-accurate
precision for 33.86MHz bus timing.
2026-02-12 22:06:03 +01:00
kalymos
f7bf40ea6b refactor: optimize BIOS patching sequence with refined timing nomenclature
Refined the BIOS patching and standardized
timing nomenclature for better technical clarity.

Changes:
- Ad technical documentation within the code.
- Standardized timing variables for better clarity:
    - BOOT_OFFSET: Replaces initial checkpoint.
    - FOLLOWUP_OFFSET: Replaces initial checkpoint2.
    - PULSE_COUNT: Replaces trigger .
    - BIT_OFFSET: Replaces hold .
    - OVERRIDE: Replaces patching.
2026-02-12 18:49:02 +01:00
kalymos
a4cbbcb66b removal of the TIMER
removal of the ISR(CTC_TIMER_VECTOR) function, and all its dependencies.

- Timer_Start
- Timer_Stop

modification
- Board detection
- inject_SCEX
- BIOS_PATCH
- MCU
- Setting
2025-12-21 19:30:30 +01:00
kalymos
9c5b91feba clining 2025-08-23 19:13:17 +02:00