Hi everyone. I want to operate with different pins on LPC2378. I use MCB2300... I am trying to set different period to some pins. For example set P2.0 with 1s, and want to set P4.2 with 100ms. Can someone tell me how do I must get this? Thank
Petar
You haven't even mentioned exactly what is intended to control these pins. Did you plan to use timers or PWM or just software to toggle pins?
I am just trying to carry out some graphic and the pins is my way. I am not sure about the timer, because how can I programmed the processor to set 1s period on the P2.0 and 100ms on P4.2. I just tried with delay, but it didn't work :)
Have you remembered to set the interplexing control parameters of the reset and clocking registers?
I am not sure, what do I must write? I am a newbie yet in thus... So that's why I asked question like this :)
Why not just learn how to use a timer and implement a 1ms interrupt. Ever 100 interrupts you toggle one pin. Every 1000 interrupts you toggle the other pin. The ISR can make use of any GPIO pin, since no pin hardware mapping is used.
Ok, I will try to do something... Thank you :)