I am trying to generate a digital pattern using the following code. I only got 12MHz and thought the speed was supposed to be 24MHz (48MHz/2) for LPC11U24. What did I make a mistake? I used pin5 for the output.
I am trying to generate a digital pattern using the following code. I only got 12MHz and thought the speed was supposed to be 24MHz (48MHz/2) for LPC11U24. What did I make a mistake? I used pin5 for the output.
--
<<code>>
#include "mbed.h"
int main() {
LPC_GPIO-> DIR[0] |= (0x00000200);
LPC_GPIO-> MASK[0] |= (0xFFFFFDFF);
while(1) {
//
LPC_GPIO-> PIN[0]=(0x00000200);
LPC_GPIO-> PIN[0]=(0x00000000);
LPC_GPIO-> PIN[0]=(0x00000200);
LPC_GPIO-> PIN[0]=(0x00000000);
LPC_GPIO-> PIN[0]=(0x00000200);
LPC_GPIO-> PIN[0]=(0x00000000);
LPC_GPIO-> PIN[0]=(0x00000200);
LPC_GPIO-> PIN[0]=(0x00000000);
//
}}
<</code>>
Thanks for your reply. Can you kindly show me how to do it?
Igor,
Thanks for your reply. Can you kindly show me how to do it?
Important Information for this Arm website
This site uses cookies to store information on your computer.
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
Cookie Policy
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.
Access Warning
You do not have the correct permissions to perform this operation.
I am trying to generate a digital pattern using the following code. I only got 12MHz and thought the speed was supposed to be 24MHz (48MHz/2) for LPC11U24. What did I make a mistake? I used pin5 for the output.
--