pc87591l National Semiconductor Corporation, pc87591l Datasheet - Page 434

no-image

pc87591l

Manufacturer Part Number
pc87591l
Description
Lpc Mobile Embedded Controllers
Manufacturer
National Semiconductor Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PC87591L
Manufacturer:
NS
Quantity:
5 510
Part Number:
PC87591L
Manufacturer:
MOT
Quantity:
5 510
Company:
Part Number:
pc87591l-VPC
Quantity:
18
Part Number:
pc87591l-VPCN01
Manufacturer:
NSC
Quantity:
5 510
Part Number:
pc87591l-VPCN01
Manufacturer:
NS/国半
Quantity:
20 000
www.national.com
B.
B.1
The following table is stored in the factory parameters section of the flash.
RevisionCode Interpretation
The ADC should be initialized after reset with the factory parameters setting that are stored in flash memory. The code below
is an example of how the data may be loaded into the ADC.
#define IBAI
#define IBD
#define ADCPINX
#define ADCPD
void CalibrateADC()
{
}
IBAI = 0x0000;
unsigned int i, count;
if ( (IBD & 0xff00) == 0x0100)
{
00xx
01xx
02xx
FFxx
Other - Reserved for future use.
IBAI= 0x0002;
for (i=1; i<= count ; i++)
count = IBD;
}
ADCPINX = 0x00;
ADCPD = 0x0001;
{
Software for Hardware Interface
FACTORY PARAMETERS
16
16
16
16
- Pre-production versions; contact NSC for usage guidelines.
- Production version xx of PC87591x devices (xx is a version number starting with 0x00).
- Production version xx of PC87591x devices with special handling noted in user information.
- A non-tested device; contact National Semiconductor for usage guidelines.
ADCPINX = (unsigned char)i;
IBAI = 2*i+2;
ADCPD
// Factory Parameters are programed with the correct version
= IBD;
Information Block Address
// change the index back to the default register.
// Lock the ADC calibration registers.}
007C
0000
0002
(*((volatile unsigned short *)0xF882))
(*((volatile unsigned short *)0xF880))
(*((volatile unsigned int *)0xFF2C))
(*((volatile unsigned char*)0xFF2A))
16
16
16
// Set address to RevisionCode
// Check that RevisionCode is 0x01yy;
// refer to user information on
// other cases.
// Set pointer in ADC register
// Set pointer in Flash
unsigned int RevisionCode
unsigned int count
Copy of SRID register indication for the
device revision number.
For PC87591E: FF0n
For PC87591S: FF2n
// Set address to ‘count’
// Copy from flash to ADC register
434
// Read the number of elements to copy
Data [Word]
16
16
Revision 1.07

Related parts for pc87591l