#include "LPC11XX.h"
Keywords:NXP
Reference address:NXP_LPC1114_LED light program
#include "gpio.h" #include "main.h" void Delay_Sec(u8 Time) { u16 and; while(Time) { for(i=0;i<3000000;i++); Time--; } } void Delay_Ms(u16 Time) { u16 and; while(Time) { for(i=0;i<3000;i++); Time--; } } int main(void) { SystemInit(); //System initialization - mainly setting the main clock GPIOInit(); //IO port initialization--mainly to turn on the GPIO clock //GPIOSetDir( 0, 3, 1 ); //Set P0.3 to output (LPC1114 MCU, output needs to be set to 1, input needs to be set to 0) LPC_GPIO0->DIR |= (0x1<<3); //Set P0.3 to output while(1) { //GPIOSetValue( 0, 3, 0 ); //Write 0 to P0.3 LPC_GPIO0->DATA &= ~(0x1<<3); //Write 0 to P0.3 //for(i=0;i<0xFFFFF;i++); //delay Delay_Ms(1000); //delay //GPIOSetValue( 0, 3, 1 ); //Write 1 to P0.3 LPC_GPIO0->DATA |= (0x1<<3); //Write 1 to P0.3 //for(i=0;i<0xFFFFF;i++); //delay Delay_Ms(1000); //delay } }
Previous article:Design of temperature control system for high-precision biochemical analyzer based on ARM9
Next article:stm32 ultrasonic ranging program
- Popular Resources
- Popular amplifiers
Recommended Content
Latest Microcontroller Articles
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
He Limin Column
Microcontroller and Embedded Systems Bible
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
MoreSelected Circuit Diagrams
MorePopular Articles
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
MoreDaily News
- Pickering Launches New Future-Proof PXIe Single-Slot Controller for High-Performance Test and Measurement Applications
- Apple faces class action lawsuit from 40 million UK iCloud users, faces $27.6 billion in claims
- Apple faces class action lawsuit from 40 million UK iCloud users, faces $27.6 billion in claims
- The US asked TSMC to restrict the export of high-end chips, and the Ministry of Commerce responded
- The US asked TSMC to restrict the export of high-end chips, and the Ministry of Commerce responded
- ASML predicts that its revenue in 2030 will exceed 457 billion yuan! Gross profit margin 56-60%
- Detailed explanation of intelligent car body perception system
- How to solve the problem that the servo drive is not enabled
- Why does the servo drive not power on?
- What point should I connect to when the servo is turned on?
Guess you like
- LCD screen display effect is related to viewing angle and contrast
- Flip switch based on LIS2DW12 of PSOC6;
- Discussion about MicroPython Engineer's Pocket Toolbox
- Smart gaming dice supporting LED, Bluetooth, wireless charging
- Current status of domestic and foreign automotive radar products
- Prize-winning quiz | TE interconnect solutions help smart cities with intelligent monitoring
- How to set environment variables when installing modelsim and modelsim-altera at the same time
- What the hell is regional chain? Why are the big guys talking about it?
- Recruitment Posts
- [Atria AT32WB415 Series Bluetooth BLE 5.0 MCU] Adc test internal temperature sensor comparison