1318 views|0 replies

3832

Posts

18

Resources
The OP

Learning about basic io based on MSP430F5438 [Copy link]

1. Familiar with the clock system of MSP430 2. Operate GPIO [cpp] view plain copy // Clock default situation // FLL clock FLL selects XT1 // Auxiliary clock ACLK selects XT1 32768Hz // Main system clock MCLK selects DCOCLKDIV 1048576Hz // Subsystem clock SMCLK selects DCOCLKDIV 1048576Hz // If XT1 fails to start, ACLK automatically switches to REFO, // FLL automatically switches to REFO // In the case of XT1 startup failure, P7.0 and P7.1 peripheral functions are not initialized #include  
int main(void) { WDTCTL = WDTPW+WDTHOLD; // Stop watchdog P4DIR |= BIT0; // P4.0 output status while(1) { P4OUT ^= BIT0; // Flip P4.0 __delay_cycles(60000); // Software delay } }  

This post is from Microcontroller MCU

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Related articles more>>

    EEWorld
    subscription
    account

    EEWorld
    service
    account

    Automotive
    development
    circle

    Robot
    development
    community

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