#include
#define uchar unsigned char
#define uint unsigned int
__CONFIG(0x3B31);
void delay(uint x)
{
uint a,b;
for(a=x;a>0;a--)
for(b=110;b>0;b--);
}
void main()
{
uchar i,temp;
TRISA=0x00;
while(1)
{
temp=1;
for(i=0;i<6;i++)
{
PORTA=~temp;//
temp=temp<<1;//
delay(200);
}
}
}
Previous article:PIC microcontroller 16*64 dot matrix screen proteus simulation
Next article:Common Problems with PIC Microcontrollers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- 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
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Download from the Internet--ARM Getting Started Notes
- Learn ARM development(22)
- Learn ARM development(21)
- Learn ARM development(20)
- Learn ARM development(19)
- Learn ARM development(14)
- Learn ARM development(15)
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- 104 capacitors are the most widely used, whether it is power supply filtering or ADC filtering, can any forum friends tell me? Why not 102...
- [Silicon Labs BG22-EK4108A Bluetooth Development Evaluation] 3. Bluetooth protocol test APP lighting and button detection
- [Goodbye 2021, hello 2022] Stop looking at refrigeration units and start clean air conditioning
- What is the difference between quick format and normal format?
- Wake-up function of pedometer bracelet based on F103 and X-NUCLEO-IKS01A3
- Recruiting MBSE part-time training instructors
- [Qinheng Trial] CH559 Development Environment Construction
- Detailed explanation of analog ground and digital ground
- Recently, when I logged into MYTI, I needed to verify my email address, but I didn’t receive any email from Ti in my mailbox. Has anyone encountered this before?
- STM8 serial port sending crashes, has anyone encountered this?