FAQ
- M051 Base Series(95)
- M0518 Series(97)
- M0519 Series(43)
- M0564 Series(1)
- Mini51 Base Series(90)
- Nano100/102 Base Series(101)
- Nano103 Base Series(10)
- Nano110/112 LCD Series(100)
- Nano120 USB Series(111)
- Nano130 Advanced Series(110)
- NUC029 Series(94)
- NUC100/200 Advanced Series(102)
- NUC120/122/123/220 USB Series(116)
- NUC121/125 Series(1)
- NUC126 USB Series(2)
- NUC130/230 CAN Series(103)
- NUC131/NUC1311 CAN Series(98)
- NUC140/240 Connectivity Series(114)
- M451 Base Series(118)
- M451M Series(117)
- M452 USB Series(130)
- M4521 USB Series(1)
- M453 CAN Series(128)
- M463 CAN FD/USB HS Series(1)
- M467 Ethernet/Crypto Series(1)
- M471 Series(1)
- M479 Motor Control Series(1)
- M481 Base Series(4)
- M482 USB FS OTG Series(4)
- M483 CAN Series(4)
- M484 USB HS OTG Series(4)
- M485 Crypto Series(4)
- M487 Ethernet Series(4)
- M4TK Touch Key Series(25)
- NUC442/472 Series(130)
- NUC472 Series(1)
- NUC505 Series(138)
FAQ
How to read the actual N76E003 band-gap voltage? Issue Date:2016-12-22
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 band-gap value for N76E003, read the 2 bytes value after the UID address.
- There are 2 bytes after the UID address that store the actual band-gap value, but the actually valid bit is 12.
- The first byte is the upper 8 bits, and the lower 4 bits of the second byte are the lower 4 bits of the 12 bit.
- Reading and calculation steps:
- Read a bad-gap value with IAP by reading UID;
- Merge the upper 8 bits and the lower 4 bits;
- Use the following formula to convert to an actual voltage value.
Formula:
- Calculation example:
Read the 2 bytes value after the UID address, wherein the first bytevalue is 0x64, and the second bytevalue is 0x0E, merged as 0x64E = 1614. The conversion result is as follows:
- Example samples:
void READ_BANDGAP()
{
UINT8 BandgapHigh,BandgapLow;
set_IAPEN;
IAPAL = 0x0C;
IAPAH = 0x00;
IAPCN = READ_UID;
set_IAPGO;
BandgapHigh = IAPFD;
IAPAL = 0x0d;
IAPAH = 0x00;
IAPCN = READ_UID;
set_IAPGO;
BandgapLow = IAPFD;
BandgapLow = BandgapLow&0x0F;
clr_IAPEN;
Bandgap_Value = (BandgapHigh<<4)+BandgapLow;
Bandgap_Voltage = 3072/(0x1000/Bandgap_Value);
}
Products: | Microcontrollers ,8bit 8051 MCUs ,Low Pin Count 8051 Series ,N76E003 |
---|---|
Applications: | |
Function: | Peripherals,Analog,ADC |