1
0
mirror of https://github.com/kalymos/PsNee.git synced 2026-05-10 09:05:46 +00:00
Commit Graph

191 Commits

Author SHA1 Message Date
kalymos
df52aec97d Update issue templates 2026-05-07 20:47:11 +02:00
kalymos
0e04295a77 Pinout Arduino Pro Mini
MISO MOSI pin inversion correction
2026-04-26 10:46:36 +02:00
kalymos
d6fadaf7f4 Update PIN_SWITCH.png V9.0 2026-04-19 20:15:09 +02:00
kalymos
ae2e260ce3 Update README.md 2026-04-19 20:01:06 +02:00
kalymos
52b2caa5e5 Update README.md 2026-04-19 19:53:55 +02:00
kalymos
0d2290aa68 Merge V9.0 into Main (#111)
* MUC-MCU

Fixed the MUC-MCU file name.
Fixed a bug that prevented additional MCUs from being compiled.
Modified the clock registers for ATtiny 48-88s; the TCCROB register is missing in these MUCs.

* Too many things to summarize

Refactoring of the setting file, to be able to have settings specifying the HYSTERESIS_MAX variable.
Renamed precompilation variable in BIOS_patching file.
Changing console selection in .ino file

* Renaming files to make updating easier

* Update README.md

* logo 8.7

* optimization on regin injection

* Ad bios patch 102A, and correct some images.

* SCPH_102A bios patch WIP

* Cleaning the selection area

Redesign of the selection area, and addition of the SCPH_hyma mode equivalent to the legacy mode with the difference of a hysteresis of 25

* Layout modification

* clining

* ad debug mode

* debug mesga

* creation of debug functions, and cleaning

* Update PSNee.ino

* serial debug cleaning

* added compilation message

* some comment cleaning

* 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

* Update PSNee.ino

Implementing a dedicated board_detection function with optimized logic.
Remodeling the inject_SCEX function.

* timer optimization

* Breaking down the main function into smaller modules.

Modular breakdown: Separated main logic into
 - captureSubQ,
 - logic_SCPH_5903,
 - logic_Standard,
 - performInjectionSequence.

Added support for SCPH-5903 by RepairBox

Co-Authored-By: RepairBox <33960601+danielfergisz@users.noreply.github.com>

* Optimization

performInjectionSequence(): Deep refactor with a cleaner.
captureSubQ(): Faster bit-banging and improved timing accuracy.
board_detection(): Optimized logic .
General Cleanup: Fixed all warnings and minimized memory footprint.

* Optimization

Optimization of the performInjectionSequence function
BIOS patch verification (work in progress)
and general code cleanup

* BIOS patch obtimisation

* opti patch bios 3500

* opti bios patch SCPH-1000

* opti BIOS patch SCPH-3000, SCPH-100.

* 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.

* 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.

* test neo BIOS patch

* Refactor pulse counting logic for jitter reduction

* 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.

* BIOS patche neo for SCPH-9000_7500 SCPH-7000 SCPH-5500

* BIOS patch neo SCPH-5000 SCPH-3500

* BIOS patche neo SCPH-3000 SCPH-1000

I finally completed the value conversion for the BIOS patch without IRS

* refactor: optimize core detection and injection logic for performance and size

- board_detection: Added early exit for newer boards and tightened the sampling loop to reduce CPU overhead.
- captureSubQ: Simplified clock-edge synchronization and localized buffers to improve register allocation.
- performInjectionSequence: Replaced bit-calculation math with a streamlined byte-shift approach. Refined WFCK modulation to ensure zero-jitter phase locking.
- logic_Standard/5903: Refactored pattern matching into a decision tree. Factorized redundant buffer checks (scbuf[1]/[6]) and replaced multiple equality tests with range comparisons.

Optimization results:
- Reduced Flash memory footprint (smaller binary size).
- Improved execution speed by removing redundant logical operations.
- Increased signal stability during the critical injection phase.

* PSNee v9.0 Update

New PSNeeCore v2: Completely rewritten core engine for all supported MCUs.
Auto-MCU Detection: Manual board selection removed. Automatically detects ATmega (328/168/128/PB), 32U4, and ATtiny families at compile time.
Deep Init Optimization: Hard-shutdown of unused internal modules (ADC, DAC, Timers) to minimize power draw and electrical noise.
Native PB Support: Full compatibility for 128PB and 328PB (PRR2 registers and extra Ports).

* PSNee v9.0 Update

New PSNeeCore v2: Completely rewritten core engine for all supported MCUs.
Auto-MCU Detection: Manual board selection removed. Automatically detects ATmega (328/168/128/PB), 32U4, and ATtiny families at compile time.
Deep Init Optimization: Hard-shutdown of unused internal modules (ADC, DAC, Timers) to minimize power draw and electrical noise.
Native PB Support: Full compatibility for 128PB and 328PB (PRR2 registers and extra Ports).
logo



---------

Co-authored-by: RepairBox <33960601+danielfergisz@users.noreply.github.com>
2026-04-19 19:31:47 +02:00
kalymos
b4d72e2539 Cleanup: add files for V9.0 merge 2026-04-19 19:30:14 +02:00
kalymos
0f8f133be5 Cleanup: Remove deprecated files for V9.0 merge 2026-04-19 19:22:12 +02:00
kalymos
ee78bc77ab Cleanup: Remove deprecated files for V9.0 merge
- Deleted obsolete files to prepare the branch for the V9.0 main integration.
- Cleaning up the directory structure to avoid conflicts during the merge.
2026-04-19 19:20:52 +02:00
kalymos
e499ccab34 BIOS patch timer modification
for the SCPH-5500, SCPH-5000, and SCPH-3500
2026-03-29 21:40:39 +02:00
kalymos
62f3120afb Update settings.h 2026-03-28 21:50:36 +01:00
kalymos
64fa3e9ccb Update settings.h 2026-03-28 21:45:53 +01:00
kalymos
993d2e8b59 Update FUNDING.yml 2026-03-22 17:32:23 +01:00
kalymos
0fe4dba3de Create FUNDING.yml 2026-03-22 17:30:55 +01:00
kalymos
453d6dea99 Merge branch 'master' of https://github.com/kalymos/PsNee 2025-12-23 10:30:17 +01:00
kalymos
1a972254b9 Update PM-41 2.png 2025-12-23 10:30:11 +01:00
kalymos
4110bdb70d Enhance code comments for board detection logic
Added comments to clarify the behavior of the code for different board generations.
2025-12-07 16:58:41 +01:00
kalymos
3df2de1f09 Enhance documentation MUC.h
Updated comments to clarify MUC.h
2025-12-07 13:20:29 +01:00
kalymos
0fc7d028a9 Refactor comments for clarity in MUC.h 2025-12-07 13:00:15 +01:00
kalymos
1a6ad3622a Delete PSNee modchip installation guide.pdf 2025-11-30 13:23:59 +01:00
kalymos
a5cc9f7c1d Update PSNee_V8.6.ino
Minor correction to the description
2025-11-20 19:10:38 +01:00
kalymos
cec20bb51a Update PU-22-A.png 2025-11-16 20:00:23 +01:00
kalymos
bcf4f5f977 Update PU-16.png 2025-07-17 20:15:55 +02:00
kalymos
a2217f9785 Fixed schematic
Fixed schematic for PU-8a motherboard, added schematic for PU-16 motherboard
2025-07-14 20:51:14 +02:00
kalymos
0b143b669c Update PSNee_V8.6.ino
Modification du Commentaire sur les fusibles des ATtiny E:FD -> E:FF
2025-06-07 20:40:37 +02:00
kalymos
633c996fc0 Merge branch 'master' of https://github.com/kalymos/PsNee 2025-05-29 17:49:15 +02:00
kalymos
bc60e0f762 Update PIN_SWITCH.png 2025-05-29 17:44:50 +02:00
kalymos
67d8ae83e4 Update PSNee_V8.6.ino
Debug PATCH_SWITCHE
2025-05-29 17:25:49 +02:00
kalymos
f51c503516 Merge branch 'master' of https://github.com/kalymos/PsNee 2025-04-07 23:35:42 +02:00
kalymos
365cdb34a2 Update pu-8b.png
Fixed SUBQ point, added RESET point
2025-04-07 23:35:33 +02:00
kalymos
6350e0fdb1 Update HYSTERESIS_MAX
After doing a fair bit of testing, I noticed that you can safely increase this value slightly, and help those with crappy drives.
8.6.2
2025-04-07 10:48:39 +02:00
kalymos
04c39b8af2 Update README.md 2025-03-30 18:49:44 +02:00
kalymos
33cb229a6a Create gray-screens.png 2025-03-30 18:45:16 +02:00
kalymos
d463d13aa9 add a photo of my test equipment 2025-03-28 20:50:59 +01:00
kalymos
88b703ddc3 Update test-PSNee-v8.6.png 2025-03-27 12:06:47 +01:00
kalymos
911fafedb5 Update README.md 2025-03-19 09:10:19 +01:00
kalymos
0590d7e8e1 Update README.md 2025-03-19 09:08:50 +01:00
kalymos
43e6e81c00 Create LICENSE
I'm adding this license because it's what the first person who worked on this code requested.
2025-03-19 09:03:11 +01:00
kalymos
15d9950ff8 Create boot-BIOS.gif 2025-03-17 20:32:02 +01:00
kalymos
076f93a01f Create blink-ISP.gif 2025-03-17 19:32:10 +01:00
kalymos
e854af80d1 Update boot-no-BIOS.gif 2025-03-17 19:12:09 +01:00
kalymos
93d2d7a14d Create Arduino_ISP_wires.jpg 2025-03-17 19:04:30 +01:00
kalymos
880b4fe977 Create boot-no-BIOS.gif 2025-03-17 18:48:58 +01:00
kalymos
ed2cd76408 Create blink-USB.gif 2025-03-17 17:55:01 +01:00
kalymos
4017bece24 renem isp 2025-03-14 17:13:19 +01:00
kalymos
d70ccc474d Create ISP gateway.png 2025-03-14 17:10:48 +01:00
kalymos
0659fcd692 Update README.md 2025-03-14 12:03:29 +01:00
kalymos
257c8282c5 Update PSNee modchip installation guide.pdf 8.6.1 2025-03-14 11:52:30 +01:00
kalymos
020bf1e879 Update PSNee modchip installation guide.pdf 2025-03-13 23:15:49 +01:00
kalymos
d2aa038e08 Update PSNee modchip installation guide.pdf 2025-03-13 23:09:28 +01:00