hi dears
i use this code on keil v5.16a. when i clear a register , the pin position dont chane to 0, and it stay o 1. but in version 4.7 it works correctly. thank you.
#include "LPC177x_8x.h"
#define t 2000
void Delay (uint32_t Time) { uint32_t i;
i = 0; while (Time--) { for (i = 0; i < 50; i++); } }
int main (void) { // ---------------- Configuration ---------------
LPC_GPIO3->DIR = 1<<25 ; /* LEDs PORT3.25 are Output */ while(1) {
LPC_GPIO3->SET = 1<<25; Delay(t);
//LPC_GPIO3->DIR->CLR = 1<<25 ; LPC_GPIO3->CLR = 1<<25; Delay(t); } }