Search found 116 matches

by a_ziliu
28 Mar 2017, 11:53
Forum: Expert Experience
Topic: The C code faq
Replies: 0
Views: 6014

The C code faq

The C code FAQ, to under the c code.
http://c-faq.com/
by a_ziliu
28 Mar 2017, 11:44
Forum: Expert Experience
Topic: fix const data in flash
Replies: 0
Views: 5452

fix const data in flash

volatile int const arrary[3] __attribute__ ((at(0x1000)))={0x01,0x02,0x03}
by a_ziliu
28 Mar 2017, 11:36
Forum: Expert Experience
Topic: Stack pointer initialization and heap bounds
Replies: 0
Views: 5743

Stack pointer initialization and heap bounds

Stack pointer initialization and heap bounds The C library requires you to specify where the stack pointer begins. If you intend to use ARM library functions that use the heap, for example, malloc(), calloc(), or if you define argc and argv command-line arguments for main(), the C library also requi...
by a_ziliu
28 Mar 2017, 10:52
Forum: Expert Experience
Topic: Configuring Stack using startup_device.s
Replies: 1
Views: 5988

Configuring Stack using startup_device.s

The startup_device.s file is provided by the device vendor in a BSP. The file will be copied into a µVision project automatically after selecting Device:Startup in the Manage Run-Time Environment window. It is used to configure the size of the stack that is used by exceptions and interrupt service r...
by a_ziliu
28 Mar 2017, 10:39
Forum: Nuvoton 8051
Topic: Can each channel of ADCs in the NuMicro? family microcontrollers with the same module be sampled simultaneously?
Replies: 0
Views: 7531

Can each channel of ADCs in the NuMicro? family microcontrollers with the same module be sampled simultaneously?

No, simultaneous sampling of multiple channels are not supported by ADCs with the same module. However, the NuMicro? M0519 series supports two ADC modules that can simultaneously sample channels from different modules. For example, in the NuMicro? M451 series: When AVDD works at 4.5V ~ 5.5V, the max...
by a_ziliu
28 Mar 2017, 10:39
Forum: Nuvoton 8051
Topic: How to change the N76E003 HIRC frequency for more accurate UART transmission?
Replies: 0
Views: 7479

How to change the N76E003 HIRC frequency for more accurate UART transmission?

The N76E003 HIRC frequency is 16 MHz and the deviation is less than 1% at room temperature. When using the baud rate up to 38400 for UArT transmission, 16 MHz cannot be divided by 38400 Hz, such that baud rate deviation is too large and the transmission cannot be stabilized. At this time, user can c...
by a_ziliu
28 Mar 2017, 10:37
Forum: Nuvoton 8051
Topic: How to read the actual N76E003 band-gap voltage?
Replies: 0
Views: 7131

How to read the actual N76E003 band-gap voltage?

The N76E003 ADC can select an internal band-gap voltage as the input pin, which can be used to get the ADC reference voltage, for more accurate ADC results. At room temperature, all N76E003 band-gap voltage values will be calibrated within the range of 1.17V to 1.27V. If you want to get the actual b...
by a_ziliu
28 Mar 2017, 10:37
Forum: Nuvoton 8051
Topic: How to calculate the window watchdog timer (WWDT) time-out interval?
Replies: 0
Views: 6612

How to calculate the window watchdog timer (WWDT) time-out interval?

The WWDT time-out interval is calculated as follows: Pre-scale Value * Counter Value / FWWDT Pre-scale Value: The pre-scale value counter Value: The maximum value of the counter, which is a constant 64 FWWDT: Clock source frequency of WWDT There are two kinds of WWDT clock sources for selection: HCL...