• Twitter
  • Facebook
  • Google+
  • Instagram
  • Youtube

Thursday, August 15, 2013

NUC140VE3CN Part1

Hi Guys, come back with me, indra!
How's your holiday? have you visited your family?
Happy EID MUBARAK :D




i'll explain about NUC140VE3CN. For newbie, it ain't so simple. if you know ain't no your friends understand it. surely, it's make you harder. just believe that YOU CAN!
Here this picture :


Lemme back the square one!


It's the one of 32-bit microcontrollers. It's running up to 50MHz for certain conditions.

Here it's, from name you know the story :




"What's a feature it give to us? is there something new?"

Let's us find out on Datasheet.

Here it's :



As you see on datasheet , NUC140 connectivity with USB 2.0 full speed.
//As if USB 3.0. okay Never mind i'll find someone like you.// 
That's joke. On the other hand, my lappi don't have USB 3.0. So, that aint gonna a problem.

First, you must know this :

  • Int8_t = signed char
  • uint8_t = unsigned char
  • int16_t = signed int
  • uint16_t = unsigned int
  • int32_t = signed long int
  • uint32_t = unsigned long int
  • int64_t = signed long long int
  • uint64_t = unsigned long long int
How To Access I/O?
  • Set GPIOx->PMD to be :
    • 00 >> input
    • 01 >> output
    • 10 >> Open-Drain
    • 11 >> Quasi Bidirectional
  • If you set output, set GPIOx->DOUT to be
    • "0" is Active Low
    • "1" is Active High
A shows an Active high connection & diagram B shows an Active low connection.
  • if you set input, set GPIOx->PIN to be
    • "0" is low
    • "1" is high
  • If you set Open drain, set GPIO->DOUT to be
    • "0" = pin drives a "low" output
    • "1" = pin output drives high that's controlled by external pull high resistor.
SOURCE CODE
        GPIOC->PMD.PMD12=1;    // Port C12 is output mode 
GPIOC->PMD.PMD13=1;    // Port C13 is output mode
  GPIOC->PMD.PMD14=1;    // Port C14 is output mode
GPIOC->DOUT = 0x0000;    // Port C is active-low

REFRENCE

NUC130/NUC140 Technical Reference Manual :http://www.keil.com/dd/docs/datashts/nuvoton/nuc1xx/da00-numicronuc130enc1.pdf



Schematic :  http://download.nuvoton.com/NuvotonMOSS/DownloadService/Member/DocumentsInfo.aspx?tp_GUID=HL0220110726094037

0 comments:

Post a Comment