Updated data for ES

This commit is contained in:
sherlock 2025-10-16 02:17:32 +05:30
parent d9ac0bd296
commit 1c7296cf33
12 changed files with 185 additions and 77 deletions

View file

@ -3,29 +3,29 @@
int main(){
unsigned long x, i, j;
// from P1.24 -> 31
LPC_PINCON->PINSEL0 = 0; // values
LPC_PINCON->PINSEL0 = 0; // values
LPC_GPIO0->FIODIR = 0xFF<<15;
LPC_GPIO0->FIODIR = 0xFF<<15;
x = 1<<15; // new variable
while(1){
x = 1<<15;
x = 1<<15;
// LOOP to fill 24->31 incrementally
for(i=0;i<8;i++){
LPC_GPIO0->FIOSET=x;
LPC_GPIO0->FIOSET=x;
x = x<<1;
for(j=0; j<800000; j++);
}
// delay
// LOOP to empty 24->31 incrementally.
x = 1<<15;
x = 1<<15;
for(i=0;i<8;i++){
LPC_GPIO0->FIOCLR=x;
x = x<<1;
for(j=0; j<800000; j++);
}
}
}