Microcontrolador C8051f312 [cerrado]

No soy muy bueno en el lenguaje C, pero he escrito un código muy simple para un microcontrolador C8051F312. Mi código no funciona. Por favor, ayúdame, ¿qué hice mal?

#include C8051F310.h
#include stdio.h

sbit LED_16 = P1^7; // green LED: 1 = ON; 0 = OFF

void init(void)
{   
    // XBRN registers_init
    XBR0 = 0x00; 
    XBR1 = 0x00; // Enable the crossbar
    PCA0MD  = 0X00;


    // port_init
    P0MDOUT = 0x00; // Output configuration for P0
    P1MDOUT = 0x40; // Output configuration for P1
    P2MDOUT = 0x00; // Output configuration for P2
    P3MDOUT = 0x00; // Output configuration for P3
}

void main(void)
{
    init();

    while (1)
    {
        LED_16 = 1; // LED continuously illuminated
    }
}

Respuestas a la pregunta(1)

Su respuesta a la pregunta