diff --git a/PSNee modchip installation guide.pdf b/PSNee modchip installation guide.pdf index 2e3cbb4..6894449 100644 Binary files a/PSNee modchip installation guide.pdf and b/PSNee modchip installation guide.pdf differ diff --git a/PSNee_V8.5/PSNee_V8.5/BIOS_patching.h b/PSNee_V8.6/PSNee_V8.6/BIOS_patching.h similarity index 100% rename from PSNee_V8.5/PSNee_V8.5/BIOS_patching.h rename to PSNee_V8.6/PSNee_V8.6/BIOS_patching.h diff --git a/PSNee_V8.5/PSNee_V8.5/MUC.h b/PSNee_V8.6/PSNee_V8.6/MUC.h similarity index 66% rename from PSNee_V8.5/PSNee_V8.5/MUC.h rename to PSNee_V8.6/PSNee_V8.6/MUC.h index 1d6b47b..baab000 100644 --- a/PSNee_V8.5/PSNee_V8.5/MUC.h +++ b/PSNee_V8.6/PSNee_V8.6/MUC.h @@ -1,18 +1,117 @@ -//Configuring the clock speed and associated registers. F_CPU / (TCCR0B |= (1< #include #include @@ -20,187 +119,91 @@ #include #include -// Globale interrupt seting -#define GLOBAL_INTERRUPT_ENABLE SREG |= (1<<7) -#define GLOBAL_INTERRUPT_DISABLE SREG &= ~(1<<7) +// Global interrupt control settings +#define GLOBAL_INTERRUPT_ENABLE SREG |= (1<<7) // Set the I-bit (bit 7) in the Status Register to enable global interrupts +#define GLOBAL_INTERRUPT_DISABLE SREG &= ~(1<<7) // Clear the I-bit (bit 7) in the Status Register to disable global interrupts -// Handling the main pins +// Main pin configuration for input and output -// Main pins input -#define PIN_DATA_INPUT DDRB &= ~(1< -#include -#include -#include -#include -#include - -// Globale interrupt seting -#define GLOBAL_INTERRUPT_ENABLE SREG |= (1<<7) -#define GLOBAL_INTERRUPT_DISABLE SREG &= ~(1<<7) - -// Handling the main pins - -// Main pins input -#define PIN_DATA_INPUT DDRB &= ~(1< @@ -468,8 +482,8 @@ #include // Globale interrupt seting -#define GLOBAL_INTERRUPT_ENABLE CPU.SREG |= (1<<7) -#define GLOBAL_INTERRUPT_DISABLE CPU.SREG &= ~(1<<7) +#define GLOBAL_INTERRUPT_ENABLE __asm__ __volatile__ ("sei" ::) //CPU.SREG |= (1<<7) +#define GLOBAL_INTERRUPT_DISABLE __asm__ __volatile__ ("cli" ::) //CPU.SREG &= ~(1<<7) // Handling the main pins @@ -551,6 +565,103 @@ #endif +#ifdef LGT8F328P + +#define F_CPU 32000000L +#define TIMER_TCNT_CLEAR TCNT0 = 0x00 +#define SET_OCROA_DIV OCR0A = 319; +#define SET_TIMER_TCCROA TCCR0A |= (1 << WGM01); +#define SET_TIMER_TCCROB TCCR0B |= (1 << CS00); +#define CTC_TIMER_VECTOR TIMER0_COMPA_vect + + +#include +#include +#include +#include +#include +#include + +// Globale interrupt seting +#define GLOBAL_INTERRUPT_ENABLE SREG |= (1<<7) +#define GLOBAL_INTERRUPT_DISABLE SREG &= ~(1<<7) + +// Handling the main pins + +// Main pins input +#define PIN_DATA_INPUT DDRB &= ~(1<