1284 views|0 replies

1662

Posts

0

Resources
The OP
 

MSP-EXP430F5529LP Development Board 001-GPIO [Copy link]

The code is very simple, adapted from the TI official website routine, as shown below (the compilation environment is IAR):

#include "io430.h"
int main( void )
{
volatile unsigned int i;
// Stop watchdog timer to prevent time out reset
WDTCTL = WDTPW + WDTHOLD;
P1DIR |= BIT0; // P1.0 set as output
while(1 ) // continuous loop
{
P1OUT ^= BIT0; // XOR P1.0
for(i=50000;i>0;i--); // Delay
}
//return 0;
}
Successfully run after downloading:

This post is from Microcontroller MCU
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list