1
0
mirror of https://github.com/kalymos/PsNee.git synced 2026-01-11 23:53:07 +00:00
0
MCU.h: General Description
kalymos edited this page 2025-03-15 10:38:51 +01:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

MCU.h: General Description

The MCU.h file is a crucial library for configuring and managing the microcontroller used in the PSNee modchip. It adapts the code based on the selected microcontroller model (ATmega32U4, ATtiny85, etc.) and ensures the proper functioning of the modchips core features.

Main Purpose

Microcontroller Definition and Configuration:

  • Adapts the code to the chosen microcontroller model.
  • Defines the clock frequency and timer settings.

I/O (Input/Output) Management:

  • Configures microcontroller pins for communication with the PlayStation console.
  • Activates or deactivates specific pins based on the modchips state.

Timer and Interrupt Handling:

  • Uses CTC mode (Clear Timer on Compare Match) to generate precise signals.
  • Manages interrupts to process console signals in real time.

BIOS Patch Compatibility:

  • Some microcontrollers support BIOS modifications, while others do not.
  • Compatibility checks prevent compilation errors.