EnglishFrenchSpanish

OnWorks favicon

n32g430-lib download for Linux

Free download n32g430-lib Linux app to run online in Ubuntu online, Fedora online or Debian online

This is the Linux app named n32g430-lib whose latest release can be downloaded as n32g430-lib.zip. It can be run online in the free hosting provider OnWorks for workstations.

Download and run online this app named n32g430-lib with OnWorks for free.

Follow these instructions in order to run this app:

- 1. Downloaded this application in your PC.

- 2. Enter in our file manager https://www.onworks.net/myfiles.php?username=XXXXX with the username that you want.

- 3. Upload this application in such filemanager.

- 4. Start the OnWorks Linux online or Windows online emulator or MACOS online emulator from this website.

- 5. From the OnWorks Linux OS you have just started, goto our file manager https://www.onworks.net/myfiles.php?username=XXXXX with the username that you want.

- 6. Download the application, install it and run it.

n32g430-lib


Ad


DESCRIPTION

Nationstech N32G430 MCU library/startup code.

Use:

// set FLASH iCache, prefetch, latency
flash_icache(1);
flash_pref(1);
flash_lat(3);

// set AHB/APB1/APB2 dividers
ahb_div(AHB_DIV_1);
apb1_div(APB1_DIV_4);
apb2_div(APB2_DIV_2);

// start PLL
pll_on(0,0, 0, 16);
sclk_sel(SCLK_PLL);

// enable peripherals clocks
ahb_on(AHB_GPIOA | AHB_ADC | AHB_CRC);
apb1_on(APB1_TIM2);
apb2_on(APB2_AFIO | APB2_USART1);

// configure pin mode/type/speed/pullup/output
pin_mo(GPIOA,0, MO_OUT);
pin_ot(GPIOA,0, OT_PP);
pin_sr(GPIOA,0, SR_HI,DRV_12MA);
pin_pu(GPIOA,0, PU_NO);
pin_wr(GPIOA,0, 1);


// configure ADC
adc_on(ADC_HCLK_DIV2, ADC_PLL_DIV2, 0,ADC_CLK1M_DIV8);
adc_cal(0,1); // calibrate
adc_iref_on(1); // reference
adc_trig(1, ADC_TRIG_SOFT); // trigger source
adc_cont(0); // single conversion
adc_chn(1); // channel
adc_stime(0, ADC_28_5); // cample time
adc_start(0); // start conversion
while(!adc_ready()); // wait
uint16_t adc = adc_rd(); // read



Features

  • arm
  • n32g430
  • n32
  • startup



This is an application that can also be fetched from https://sourceforge.net/projects/n32g430-lib/. It has been hosted in OnWorks in order to be run online in an easiest way from one of our free Operative Systems.


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Eclipse Checkstyle Plug-in
    Eclipse Checkstyle Plug-in
    The Eclipse Checkstyle plug-in
    integrates the Checkstyle Java code
    auditor into the Eclipse IDE. The
    plug-in provides real-time feedback to
    the user about viol...
    Download Eclipse Checkstyle Plug-in
  • 2
    AstrOrzPlayer
    AstrOrzPlayer
    AstrOrz Player is a free media player
    software, part based on WMP and VLC. The
    player is in a minimalist style, with
    more than ten theme colors, and can also
    b...
    Download AstrOrzPlayer
  • 3
    movistartv
    movistartv
    Kodi Movistar+ TV es un ADDON para XBMC/
    Kodi que permite disponer de un
    decodificador de los servicios IPTV de
    Movistar integrado en uno de los
    mediacenters ma...
    Download movistartv
  • 4
    Code::Blocks
    Code::Blocks
    Code::Blocks is a free, open-source,
    cross-platform C, C++ and Fortran IDE
    built to meet the most demanding needs
    of its users. It is designed to be very
    extens...
    Download Code::Blocks
  • 5
    Amidst
    Amidst
    Amidst or Advanced Minecraft Interface
    and Data/Structure Tracking is a tool to
    display an overview of a Minecraft
    world, without actually creating it. It
    can ...
    Download Amidst
  • 6
    MSYS2
    MSYS2
    MSYS2 is a collection of tools and
    libraries providing you with an
    easy-to-use environment for building,
    installing and running native Windows
    software. It con...
    Download MSYS2
  • More »

Linux commands

  • 1
    a56
    a56
    A56 - Motorola DSP56001 assembler ...
    Run a56
  • 2
    a68g
    a68g
    a68g - Algol 68 Genie, an Algol 68
    compiler-interpreter ...
    Run a68g
  • 3
    copt
    copt
    copt - peephole optimizer SYSNOPIS:
    copt file.. DESCRIPTION: copt is a
    general-purpose peephole optimizer. It
    reads code from its standard input and
    writes an ...
    Run copt
  • 4
    copydatabase-1.3
    copydatabase-1.3
    copydatabase - Perform a
    document-by-document copy of one or more
    Xapian databases ...
    Run copydatabase-1.3
  • 5
    fweelin
    fweelin
    freewheeling � live looping musical
    instrument ...
    Run fweelin
  • 6
    fwexec
    fwexec
    fwexec - program to upload and rexecute
    image file to a connected NXT device ...
    Run fwexec
  • More »

Ad