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 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
- 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
Datasheet NUC140 : http://www.nuvoton.com/hq/enu/ProductAndSales/ProductLines/MicrocontrollerApplicationIC/ARMMicrocontroller/ARMCortexTMM0/Documents/NUC140%20Datasheet%20EN.pdf





0 comments:
Post a Comment